On 27 Jul 2007, at 19:48, Michael Williams wrote:
> Note: This is a repost per Joe Strout's suggestion to post to the
> "plugins" list. Joe has replied, but I'd also like to get the list's
> thoughts.
>
>
>
>
> Hi All,
>
> I'm currently developing a program that requires the use of a few odd
> file formats (e.g. FITS, etc.). Obviously RB doesn't support opening
> or manipulating this file format (does it?). Therefore I need to
> incorporate the functionality of an existing C/C++ library (as a
> plugin or otherwise) into my RB project.
>
> I need this to be cross-platform.
It's annoying and awkward. A lot of work to set up!
I'll tell you my setup.
One MacBookPro. Parallels. Linux and WinXP installed on Parallels.
I use CodeWarrior to cross-compile for Win32 on MacOSX. I use gcc on
Linux, with a makefile I wrote myself. For Mac, I use Xcode.
Then, I compile the plugin on each platform, and the results go into
an "ElfData" folder on the Mac! With linux, I've set up file-sharing
so it goes into the right folder on the Mac side. Then I turn that
into an RB plugin using plugin converter. Yes it's all one plugin.
The RB plugin format is a "virtual volume" so you can put multiple
files in one plugin.
I mostly test on the Mac, but I test at least once for all. I had to
write a long big testing suite, that auto-tests my plugin! As long as
my "unit test" app works, I'm fine!
Phew. What an effort.
If you want to make it easier... just do it for one platform, and
then port the plugin to the others ;)
> Will I need to create separate
> plugins for each? I'd prefer the MBS approach in having only one
> plugin that is cross-platform. How, exactly, is this achieved?
RB plugin converter, as mentioned above.
> Will I
> need to map each and every function manually or is the plugin system
> intuitive enough to expose functionality?
Nope. You gotta map each one individually! :) Nice eh?
> I've been looking through the SDK documentation but it doesn't seem
> very well organized or up to date.
I think it's up to date. Organised.... not so sure what you are
after. Certainly it doesn't leave us with a simple job ahead of us.
But then we are plugin developers, not REALbasic developers.
> If possible, I'd appreciate a tutorial or some information that
> provides direction from beginning to end in a *clear*, *concise*
> manner
I just gave one? :P
> on how to include an entire existing C/C++ library into an RB
> project.
Just add the source code to your project. In Xcode you drag the files
to the files area....
The tricky bit is letting RB know about the classes. For that, you
must create REALclassDefinitions, REALpropertyDefinitions, and all
the rest of it.
You'll probably need to wrap each C++ library class with your own
classes.
I think Frank's portaudio plugin may be of example help! Take a look
there, it's supposedly a very good plugin. (I never had much time to
test audio stuff ;( )
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
From Sat 28 Jul 2007 02:40:09 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id E988C3760C0B; Fri, 27 Jul 2007 17:40:38 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.5 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
by xmail.realsoftware.com (Postfix) with ESMTP id 270133760C00;
Fri, 27 Jul 2007 17:40:37 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP id A3F744D0013;
Fri, 27 Jul 2007 19:40:26 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de
[80.67.18.16])
by lists.realsoftware.com (Postfix) with ESMTP id 417F24D0008
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 27 Jul 2007 19:40:22 -0500 (CDT)
Received: (qmail 14377 invoked from network); 28 Jul 2007 00:40:28 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 105 dot
89])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay04.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
28 Jul 2007 00:40:28 -0000
To: realbasic-plugins at lists dot realsoftware dot com
Subject: Realbasic 2007r3 does not see plugin changes
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Sat, 28 Jul 2007 02:40:09 +0200
Message-ID: <1i1xwox dot qmkoid1x49epvM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.8 (Mac OS X version 10.4.9 (PPC))
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
Hi,
what can we do?
I replace the plugins in the plugins folder but Realbasic does not
precompile and/or not recompile the cached compiled code.
Users are complaining. One every day since the release of r3 :-(
Gru=DF
Christian
-- =
Over 800 classes with 15000 functions in one REALbasic plug-in. =
The Monkeybread Software Realbasic Plugin v7.4. =
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
From Fri 27 Jul 2007 20:30:35 -0600
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id BBA693764BB8; Fri, 27 Jul 2007 19:30:42 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-3.1 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
by xmail.realsoftware.com (Postfix) with ESMTP id DAB963764BA7;
Fri, 27 Jul 2007 19:30:41 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP id B61C54D0610;
Fri, 27 Jul 2007 21:30:31 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
by lists.realsoftware.com (Postfix) with ESMTP id 83E144D0605
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 27 Jul 2007 21:30:27 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
by mail.verex.com (Postfix) with SMTP id 2FD9278AD53
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 27 Jul 2007 20:30:35 -0600 (MDT)
Date: Fri, 27 Jul 2007 20:30:35 -0600
Subject: Re: Realbasic 2007r3 does not see plugin changes
From: joe at strout dot net
To: realbasic-plugins at lists dot realsoftware dot com
In-Reply-To: <1i1xwox dot qmkoid1x49epvM%support at monkeybreadsoftware dot de>
X-Mailer: VerEx Email Gateway
Message-Id: <20070728023035 dot 2FD9278AD53 at mail dot verex dot com>
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
On Jul 28, 2007, at 00:40 UTC, Christian Schmitz wrote:
> I replace the plugins in the plugins folder but Realbasic does not
> precompile and/or not recompile the cached compiled code.
I think you may be referring to this:
<http://support.realsoftware.com/feedback/viewreport.php?reportid=zhjblwzz>
Best,
- Joe
--
Joe Strout -- joe at strout dot net
Strout Custom Solutions, LLC
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|