|Version 17 (modified by 17 years ago) ( diff ),
MussaGL Build Info
You will need to make sure the following are all installed in order to build from source.
- CMake >= v2.4
- Qt4.1.x - Linux | Mac OS X | Windows >= 4.1.2
- Boost C++ Libraries >= 1.33.1
- Mussagl Source (See download section)
Windows XP Requirements
MingGW Qt4 on windows requires the MinGW compiler. Thankfully the Qt installer will offer to install it for you. The CMake scripts do assume that MinGW and boost are being installed into the default locations of C:\MinGW and C:\Boost. If you install them elsewhere you will need to adjust several CMake variables.
You'll also probably want to put MinGW, CMake, and darcs on your system path. How To Manage Environment Variables in Windows XP
OS X Universal Build
Qt4 is fairly easy to install.configure make make install
usually works. The biggest problem I've seen is that one might need to tell Qt to use internal versions of some graphics libraries if one is intending to redistribute the binary being built.
Boost is more challenging to build. First one needs to obtain BJam for ones platform. Then if one has limited disk space one might need to limit which libraries that are built. Currently we're using: program_options, test, python, spirit, filesystem and some of the string processing algorithms.
For windows users there's a copy of a build tree at http://woldlab.caltech.edu/~diane/proj/win32-boost-mingw-build.tar.bz2
Note: Requires cmake version >= 2.4
To check your current version, type:
If you don't have CMake binaries are available for download at http://cmake.org/HTML/Download.html
CMake takes the place of the GNU autotools effectively replacing the "configure" step (and the automake and autoconf steps as well). The big advantage is that since CMake implements its own macro language one doesn't need to know portable bash scripting and m4 to write new build tests, like one does when using autotools. This makes building on windows dramatically easier.
Once one has the dependencies one can actually build mussa.
First checkout mussa using darcs (Hopefully soon there will be source distributions as well as binary distributions).
darcs get http://woldlab.caltech.edu/svn/mussa.darcs mussa cd mussa mkdir build cd build cmake .. make
To run the unittests from with in the build directory type
CMake could not find a dependency.
CMake includes a program
that allows one to view and edit the CMake configuration variables. I'm still a bit new at properly creating a CMake configuration so it's very likely that one will need to use the "advanced" view which shows all of the configuration variable in order to find what is NOT_DEFINED. (Or was it "NOT_FOUND")?
To see all of the build commands run make like this:
To see the output of the unittests