Building Apache Axis2/C on Mac OS X Mountain Lion 10.8.4
Join the DZone community and get the full member experience.Join For Free
this should work on other mountain lion versions as well, but i have not tested it. first of all, let’s install a set of dependencies required for the build process.
the easiest way (at least for me) was to install them through macports .
note: you need to install xcode and the xcode command lilne tools for macports to work. xcode is a (very) large download. so, it will take some time to install. but, an advantage is many tools ask you to install xcode since it brings in a lot of useful dependencies useful for dev. provided by apple itself. so, you’ll need it anyway if you’re planning to do some c development
after installing macports, you need to install automake, autoconf, libtool, libxml2 and pkgconfig. type in the following command:
sudo port install automake autoconf libtool libxml2 pkgconfig
now, we are set to build the source. check it out using the following command:
svn co https://svn.apache.org/repos/asf/axis/axis2/c/core/trunk axis2-c-trunk
this will checkout the source code the a directory named axis2-c-trunk. now, we need to apply
this patch that fixes a constants issue
. download it and put it inside the directory axis2-c-trunk. now execute the following commands to patch the source:
cd axis2-c-trunk patch -p0 < unavailable_constants_macosx_fix.patch
now, you are ready to build the source. just execute the build.sh with the following command:
that should create a successful build in the axis2-c-trunk/deploy directory. if it didn’t you probably would need
this patch as well
. patch your source the same way as above, and try running the build script again:
patch -p0 < mac_os_build_fix.patch ./build.sh
Published at DZone with permission of Tharindu Mathew, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.