Re: [xml] libxml2 and CW8 on Mac OS X
- From: Rush Manbert <rush manbert com>
- To: Charles Ouimet <libxml analysco com>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 and CW8 on Mac OS X
- Date: Tue, 13 Dec 2005 09:41:03 -0800
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
http://www.zlatkovic.com/pub/libxml/). 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://
www.explain.com.au/oss/libxml2xslt.html) 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?
Thanx!
-C
I downloaded the sources and built it with make.
Here are the commands I used to build the debug multi threaded version:
export CFLAGS='-g -O0'
export CPPFLAGS='-g -O0'
./configure --prefix=PutYourPrefixPathHere --with-gnu-ld --without-iconv
--without-zlib --disable-shared --with-debug --with-mem-debug
make
If you don't need a static library, and can live with whatever version
the system has on it, libxml2 is already available on a Mac in /usr/lib
Hope it helps,
Rush
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]