| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hello! I have written a plugin on Windows XP that uses the Xerces library. I had no problems, the plugin and Xerces do their jobs. But on Mac I have two different problems depending on the Xerces library I bind to the plugin: (1) The building is not successfull (unresolved externals) or (2) the building is successfull, but the plugin is not loaded. Can anybody help me? Alois Blaimer |
|
#2
| |||
| |||
| One problem with external libraries was touched by Alex recently. Alexander Staroverov, "Problem with overloaded global operators new and delete in XCODE for InDesign CS3 MACOSX" #, 1 Aug 2008 12:48 am </webx?13@@.59b5ffd3> In short, operator delete might go thru Adobe's inlined brew when undesired. So write 'extern "C" ' wrappers for all occurences of new + delete that work on the library's own classes. I think Xerces is also used inside InDesign. It could be that the binary loader prefers already loaded instances rather than your specified library. Do you refer to it as shared library or statically linked? Have a look at otool, nmedit and nm (see the man pages), they might help a bit to tweak the binaries. Finally you could hook into ISaxHandler and friends instead of using Xerces at all. Dirk |
|
#3
| |||
| |||
| Hallo! I am really confused. Now I am using the BasicDialog sample with no modifications. I only bind the Xerces library to the project. The result is that the BasicDialog plugin is not loaded by InDesign. Is there nobody who is using Xerces in Adobe InDesign plugin development? Alois Blaimer |
|
#4
| |||
| |||
| Perhaps you are just having a problem with the way you are linking the framework. Where is the framework installed on your system? Are you expecting it to load the framework from a standard install location or perhaps from the plugin bundle itself. Also, be sure to check the console log when your are launching with your plugin. I can't recall, but there may be an entry created detailing the path the plugin is trying to load the Xerces library from. |
|
#5
| |||
| |||
| Hello Chris! I am working with InDesgin CS3 Debug on Mac. How to get the console log? Alois Blaimer |
|
#6
| |||
| |||
| Hallo! The framework is installed in /xerces-c-src_2_8_0. It has a subdirectory lib where all the build libraries are. The libraries are build with debug option, because I use InDesign CS3 debug version. I have taken the libxerces-c.a library, which seems to me to be a static library, and binded it in XCode 3.0 to the BasicDialog sample. I build the BasicDialog sample und put the plugin in the subdirectory Plug-Ins of Adobe InDesign. When I start InDesign CS3 the error message "CFBundleLoadExecutable faild for plugin BasicDialog.sdk.InDesignPlugin. My system: Mac OS X 10.5.4 XCode 3.0 Alois Blaimer |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.