Re: [xml] libxml2 and CW8 on Mac OS X

Firstly, there is no equivalent to the Windows .lib file on Mac OS X. Mac OS X is a Unix environment, so you have either static or shared libraries. Mac OS X has a feature called "frameworks" - these are shared libraries with some additional packaging conventions to make the library easier to distribute and load.

The "Gnome libxml Combo" disk image provides a number of frameworks. I suggest you read the Apple documentation on frameworks, and check the CW doco to see if/how it supports frameworks. Since large parts of the Mac OS X system is in the form of frameworks (look in /System/ Library/Frameworks), I'd be very surprised if CW does not allow you to link against a framework.

Steve Ball, Explain

On 13/12/2005, at 3:51 PM, Charles Ouimet wrote:

Hello all,

I need to integrate libxml2 into a CodeWarrior 8.3 project on Mac.

On Windows, I was able to create a brand-new CW8.3 project that statically links against libxml2_a.lib (using the binary snapshot from Using the headers and the .lib was not a problem.

How can I do the same on Mac?

How can I get Mac OS X to give me a .lib file like on Windows? CW8.3 will not recognize the file named "libxml" from the "Gnome libxml Combo" disk image (.dmg file I downloaded from http:// as a valid library to link against.

For the sake of it, I downloaded the tarball with the source and compiled it. However, I can't find any useful file to use in my Carbon Library.

Using Xcode is unfortunately not an option for me.

Is there a .mcp project file I can use to build libxml as a library CodeWarrior for Mac will recognize and allow me to link against?


xml mailing list, project page
xml gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]