[CS3 Mac]: Linking with Xerces (XML)

This is a discussion on [CS3 Mac]: Linking with Xerces (XML) within the Adobe Indesign forums in Adobe Tools category; 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...

Go Back   Application Development Forum > Adobe Tools > Adobe Indesign

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-21-2008, 07:22 AM
Alois_Blaimer@adobeforums.com
Guest
 
Default [CS3 Mac]: Linking with Xerces (XML)

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
Reply With Quote
  #2  
Old 08-21-2008, 01:34 PM
Dirk_Becker@adobeforums.com
Guest
 
Default Re: [CS3 Mac]: Linking with Xerces (XML)

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
Reply With Quote
  #3  
Old 08-22-2008, 03:34 AM
Alois_Blaimer@adobeforums.com
Guest
 
Default Re: [CS3 Mac]: Linking with Xerces (XML)

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
Reply With Quote
  #4  
Old 08-22-2008, 05:20 PM
Chris_Parrish@adobeforums.com
Guest
 
Default Re: [CS3 Mac]: Linking with Xerces (XML)

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.
Reply With Quote
  #5  
Old 08-25-2008, 01:45 AM
Alois_Blaimer@adobeforums.com
Guest
 
Default Re: [CS3 Mac]: Linking with Xerces (XML)

Hello Chris!

I am working with InDesgin CS3 Debug on Mac.

How to get the console log?

Alois Blaimer
Reply With Quote
  #6  
Old 08-25-2008, 04:31 AM
Alois_Blaimer@adobeforums.com
Guest
 
Default Re: [CS3 Mac]: Linking with Xerces (XML)

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.