User forums > Help

Problem with Dynamic Library CB target on MacOSX

<< < (2/4) > >>

Pecan:
You're right, my bad. It is -bundle, not -dynamic. The codeblocks.so and other core libraries are -dynamic.

Also: Quotes about lazy pointer errors during stripping (-s)

--- Quote ---I did some Googling and found this:
http://lists.boost.org/boost-build/2005/11/12114.php

Although it doesn't say exactly what is going on, it does state that there is a connection between stripping the debug symbols and the lazy binding problem. This would explain why this happens for Intel Macs and not for PPC Macs: in the "ppc" flavour, stripping is disabled. This is a relic from the time when PPC was equivalent to Mac, but nowadays we support Linux and BSD on PPC and OS X on Intel.

--- End quote ---

And this does happen on the ppc, not just intel.
It catches me about once a month.


bnilsson:
-bundle was working fine, thanks.
wxSmith built by the CB project works the same way as built from command, which I guess is a proper criteria for success.

Would it be possible to have this "-bundle" setting from start when building CB for MacOSX to avoid confusion for new users?

Game_Ender:
It looks like you have to create a wxSmith-Mac.cbp project file (groan), or you could add a build script that sets that based on platform.

bnilsson:
This is not specific to wxSmith.
Any dynamic library that would be built by CB would have -bundle instead of -shared since -shared is not supported on MacOSX.

afb:
To clarify, there are two kinds of shared libraries present on Mac OS X:
"dynamic libraries" (.dylib) such as libcodeblocks.dylib or libwx_mac-2.6.dylib
"bundles" (.bundle or .so) for plugins such as libcompiler.so or libdebugger.so

The dynamic libraries are normally wrapped in a .framework bundle (with headers),
just as program binaries are normally wrapped in a .app bundle (with the resources)

So which of the two -shared should be converted to, that depends on the project...
(on Linux, for instance, both of these two types of shared libraries are .so files)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version