Hi Jon,

I've been trying to convert my UB plugin template to support this, but have
run into some problems.  When I change a target's "Mach-O Type" to be Bundle
rather than Dynamic Library, I get the following compile error during
linking:

i686-apple-darwin8-g++-4.0.1: -compatibility_version only allowed with
-dynamiclib

This happens with both the supplied SDK Mach-O template and my own adapted
UB template.

I've managed to get rid of this error (and a similar "current-version"
error) by clearing the values of "Current Library Version" and
"Compatability Version" from both the project build settings (where they
were both set to "$(inherited)") and the target build settings (where they
were both set to "1").

I then have a second compile error, and this one I can't get rid of:

/usr/bin/ld: -single_module or -multi_module flags can only be used when
-dylib is also specified

Any ideas how I can stop this error when compiling as MH_BUNDLE? I'm using
Xcode 2.4.

Dave.

> From: Jonathan Johnson <[EMAIL PROTECTED]>
> Reply-To: REALbasic Plugins <[email protected]>
> Date: Wed, 3 Jan 2007 17:48:21 -0600
> To: REALbasic Plugins <[email protected]>
> Subject: Change of Suggested Mach-O Plugin Format
> 
> For future versions of REALbasic, we have implemented loading plugins
> directly in memory for Mach-O plugins using new APIs in 10.3 and
> higher. We now suggest that all universal binaries be built as bundles
> instead of dynamic libraries.
> 
> This does not mean that the plugins will become folder bundles, but
> rather the Mach-O type will be Bundle (MH_BUNDLE from Mach-O/Loader.h).
> 
> In Xcode, this setting is called "Mach-O Type". Changing this setting
> from "Dynamic Library" to "Bundle" will work properly in 2006r4 and
> later, and in future versions of REALbasic, these plugins will be
> loaded directly in memory and not written out to disk.
> 
> This is not a requirement, and old plugins will continue to function
> normally. This should only be done to the Universal Binary, however,
> as 2006r3 and prior did not know how to load up MH_BUNDLE plugins. If
> you're shipping a separate PowerPC Mach-O library, continue using the
> Dynamic Library type for backwards compatibility.
> 
> Thanks,
> Jon
> 
> 
> -- 
> Jonathan Johnson
> [EMAIL PROTECTED]
> REAL Software, Inc.
> 
> 
> _______________________________________________
> 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>


_______________________________________________
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>

Reply via email to