Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
[wxSmith] wxSmithContribItems not loaded on Mac OS X
afb:
The current Makefile is trying to link the wxSmithContribItems with wxSmith, using the static linker. This doesn't work on Mac OS X, where the plugins are loaded using the dynamic linker.
--- Code: ---ERROR: /Users/afb/codeblocks/CodeBlocks.app/Contents/Resources/share/codeblocks/plugins/libwxsmithcontribitems.so: not loaded (missing symbols?)
--- End code ---
It is trying to load a shared library that doesn't exist:
--- Code: ---CodeBlocks.app/Contents/Resources/share/codeblocks/plugins/libwxsmithcontribitems.so:
@executable_path/libcodeblocks.0.dylib (compatibility version 1.0.0, current version 1.1.0)
@executable_path/libwx_macu-2.6.0.dylib (compatibility version 3.0.0, current version 3.1.0)
/usr/local/share/codeblocks/plugins/libwxsmith.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
--- End code ---
Will remove this later, for now I just patched the Makefile so that it compiles in order to not break build.
Hopefully it will find the symbols, by loading wxSmith bundle.
afb:
Never mind, fixed it. wxSmith had the same issue, so neither would load.
EDIT: Nope, not fixed. Still needs a solution, wxSmith{,ContribItems}
doesn't load now for Mac OS X, until a new Makefile.am can be written.
byo:
Hmm, what's that "new Makefile.am" ?
afb:
For some reason wxSmith now builds as a dylib, not as a bundle.
byo:
--- Quote from: afb on April 23, 2007, 11:41:33 pm ---For some reason wxSmith now builds as a dylib, not as a bundle.
--- End quote ---
I've recently removed <tt>-module</tt> option from <tt>libwxsmith_la_LDFLAGS</tt>, maybe that's the reason. Before removing this flag, there was some warning while linking wxSmithContribItems on linux.
BYO
Navigation
[0] Message Index
[#] Next page
Go to full version