Axis2/C How To Build On OS X 10.5 Universal

May. 2008

How To Build On OS X 10.5 Universal


Download and expand the Unix/Linux source.


Create an install directory if you don't want to use the default.


set the AXIS2C_HOME env var.

setenv AXIS2C_HOME /<some path for install dir>/


cd into the expanded Axis2 dir


run configure with this command:

env CFLAGS="-O -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc7400 -arch x86_64 -arch ppc64" LDFLAGS="-arch i386 -arch ppc7400 -arch x86_64 -arch ppc64" ./configure --disable-dependency-tracking   --enable-libcurl=yes --enable-openssl=yes



NOTE: --disable-dependency-tracking is important for Universal binary builds

NOTE: if you want to install into a non-default dir add --prefix=${AXIS2C_HOME} for configure



Currently there is a file that must be fixed for OS X:

modify dir_handler.c and remove const for the function file_select (there are two places to fix this)


run make and make install




To use HTTPS you need to uncomment the https stuff in ${AXIS2C_HOME}/axis2.xml


Have fun.


SD.