Tuesday, December 8, 2009

VXL on Snow Leopard

This is a short entry on getting vxl-libraries working on Snow Leopard. Hopefully an easy task.

In my case I’ve created a folder /projects/vxl, then check out code for developers like this:
svn co https://vxl.svn.sourceforge.net/svnroot/vxl/trunk vxl
Or you can also check out the code anonymously by replacing https with
svn co http://vxl.svn.sourceforge.net/svnroot/vxl/trunk vxl

This will create a folder /projects/vxl/vxl which can be rename to /projects/vxl/src.

At this point you are ready to build your binaries. Create a folder /projects/vxl/bin to place the binaries. Here create a folder bin/debug and bin/release to keep the two configurations separate.
To build the binaries you need cmake, for the mac there is a gui application but you can always use the command line cmake and ccmake utulities. I like gui’s so I usually use the gui.

In Cmake-gui, fill the paths for source and binaries(debug or release). Press configure. It will first ask you hat type of binaries to build. I go for Unix Makefiles. You may need to press configure few times until CMake is done asking you for variables. In this entry I am not gonna cover specifics about which entries you need to build certain projects.

When cmake is done showing variables in red(missing), it will highlight the generate button, press it. The unix make files are all set and you can now go to the terminal cd to your binaries and type make.


  1. If you want to use xcode to run make you may want to name your binaries under Debug and Release, with capital letters, that is the defult name that Xcode uses for configuration.
    Additionally, while configuring the project in Cmake, make sure the variable CMAKE_BUILD_TYPE matches your desired configuration. i.e Debug/Release

  2. I'm trying to build VXL under Snow Leopard, but I have no success...
    Could you please let me know how you built it?
    I always end up with an error in Make process...
    Many thanks!