realbasic-plugins
[Top] [All Lists]

Re: Frameworks = MachO

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Frameworks = MachO
From: Garth Hjelte <garth at chickensys dot com>
Date: Fri, 17 Mar 2006 17:20:04 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <4 dot 3 dot 2 dot 7 dot 2 dot 20060316172247 dot 02b7d138 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060316105715 dot 0570b780 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060316095349 dot 054c7eb8 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313140350 dot 0386dc20 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313132649 dot 036a1a98 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313125457 dot 03b29678 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313125457 dot 03b29678 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313132649 dot 036a1a98 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060313140350 dot 0386dc20 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060316095349 dot 054c7eb8 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060316105715 dot 0570b780 at mail dot chickensys dot com> <4 dot 3 dot 2 dot 7 dot 2 dot 20060316172247 dot 02b7d138 at mail dot chickensys dot com>
At 12:48 PM 3/17/2006 -0500, you wrote:

> Sounds pretty hacky.
>
> The real question to me would be: how does REALBasic regard
> "FooLib.dylib" as where it is? The docs are sketchy, it just says "if
> it is on your system." What does that mean? On Windows you have a set
> way of doing this: same folder, system folder, environment path.
>
> My solution actually is
>
> #if DebugBuild
>    Soft Declare Sub Foo Lib "@executable_path/../../../FooLib.dylib" ()
> #else
>    Soft Declare Sub Foo Lib
> "@executable_path/../Frameworks/FooLib.dylib" ()
> #endif
>
> And make sure I have all my dylib(s) in the same folder as my .rbp
> file.
>

Because the IDE provides no support for adding items to a bundle at
build time, any solution is a hack.  I'm sure you'll find one that you
like.

Yeah, I hope RB fills out this need. So far I'm pretty happy with RB2006, although it's starting to show signs of dodginess like the other versions. I hope they take advantage of this "lull" of needed technology and sturdies up the whole program. Gosh, I just get so tired of completely recompiling the app every time the IDE build starts. It's like the word "efficiency" has no more meaning. =)

Garth Hjelte
Sampler User
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>