Re: How can I use a C-library (libXML) in an MacOS project?



In article <op.sz0zngn9mcs9m0@phoenix>,
"Daniel Bleisteiner" <news@xxxxxxx> wrote:

>I'm currently trying to port an InDesign plugin initially developed on the
>Windows platform to MacOS InDesign! I'm forced to use CodeWarrior for that
>task because the InDesign SDK doesn't support any other environment.
>
>The plugin uses to external C libraries call libCURL and libXML. I have a
>real problem trying to use those libraries for the MacOS port.
>
>I've started with libCURL and finally skipped that library because I can
>replace it by calling the command line tool. But I need libXML to parse
>XML properly!
>
>My problem is, that everything compiles just fine - but the linker doesn't
>find the library while linking. I've added the path to the accesspaths and
>there lies a libXML.dylib and libXML.la - both are not found or used!

With CodeWarrior you have to show the files in the project manager
window. They are then either linked in at that time if they are static
libraries or are used to resolve symbolics at link time and actually
linked in at runtime with DLL's

>I've also tried to add those libraries to the project but I can't find a
>way to add them. Their filetype isn't supported as far as I see. But those
>are standard C libraries - can this be possible? Is there any way to
>capsule the library using another CodeWarrior project and make it
>accessible this way to the MacOS project?

If you can't add them to the project dylib shoujld be, you will have to
add them with the file mapping. as a Mach-O Importer

Look in the CodeWarrior Examples, for the Mach-0 example for dynamic
libraries to see how it is done.

>
>Please help me out... I'm stuck and I could not find any answer on this
>topic so far! Thanks!

Ron

--
CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
-- http://www.codewarrior.com/community --

Ron Liechty - ron.liechty@xxxxxxxxxxxxx - http://www.codewarrior.com
.



Relevant Pages

  • How can I use a C-library (libXML) in an MacOS project?
    ... I'm currently trying to port an InDesign plugin initially developed on the Windows platform to MacOS InDesign! ... I have a real problem trying to use those libraries for the MacOS port. ... Is there any way to capsule the library using another CodeWarrior project and make it accessible this way to the MacOS project? ...
    (codewarrior.mac)
  • Re: linking gcc built libs
    ... >I am statically linking some image libraries I built wwith gcc ... I am linking with the BSD libraries using ... What versio of CodeWarrior are you using? ...
    (comp.sys.mac.programmer.codewarrior)
  • Re: Shared Libraries and Stubs
    ... > interfaceLib or other stub libraries) you have to run them in the ... > You can find this in the Other Metrowekrs Tools folder as CodeWarrior ... > You might want to consider creating a Carbon Application which will run ... > CarbonLib which encompasses almost all of the OS 9 extensions. ...
    (codewarrior.mac)
  • Re: linking gcc built libs
    ... >> did you rebuild your precompiled headers and libraries after upgrading ... You must at least upgrade your precompiled headers. ... >libraries. ... CodeWarrior links with libraries made by XCode ...
    (comp.sys.mac.programmer.codewarrior)
  • Re: Wanted: Programmer to build utility for Mac
    ... run in this environment? ... I actually have CodeWarrior 6 Academic. ... Can this still be used to build stuff for MacOS 8.6 Open Transport ... Does it have the necessary libraries / headers etc already or would I ...
    (comp.sys.mac.programmer.codewarrior)