THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/11/2009 at 02:47, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Turned out that this was not related to the source, but to compiler settings (compiling R11 on SnowLeopard is a bit strange sometimes. This again raises the question: How to check if a dylib contains the right code?
Kabe
If you want to find out which architectures are supported by a library your can use the nm tool for this (it should also work with a dylib).
Start up the terminal and type "nm -arch YourRequiredArchtecture YourLibrary". If the library contains the architecture you'll get a symbol listing (which might also be handy if you have link problems or want to know how something is exported). Otherwise you'll get the message that the library doesn't contain the specified architecture.
Example usage:
nm -arch i386 /whereever/check_library.a
nm -arch x86_64 /whereever/check_library.a
nm -arch ppc /whereever/check_library.a
nm -arch ppc64 /whereever/check_library.a
Regarding where to start debugging: If PluginStart isn't called, C4DPL_INIT_SYS is the point to look at (as it is called on init. of the resources).
Best regards,
Wilfried Behne