|
Building
Building instructions for Libwm
IntroductionLibwm is built using a CMake-based system. CMake configures and generates project files or Makefiles for your favorite compiler system. Libwm has been built with various versions of GCC and GNU Make, Microsoft Visual C++ Express Edition 2008 and Apple Xcode. Requirements
sudo apt-get install cmake libboost1.35-dev libc6-dev libx11-dev sudo apt-get install mesa-common-dev # or nvidia-glx-XXX-dev for OpenGL dev files sudo apt-get install doxygen graphviz texlive # if you want to build the API docs with diagrams and .pdf's Getting the source codeThe latest development source code can be cloned from the Mercurial repositories. hg clone https://libwm.googlecode.com/hg/ libwm Configuring the buildCMake is used to configure the build system and generate the actual build files (Makefiles, Visual Studio project files, etc). You can use the command line cmake or the cmake-gui if you prefer GUI's. mkdir libwm/build cd libwm/build ccmake .. If the default FindBoost.cmake is unable to locate your Boost installation, you can specify the location of your boost installation using a command line parameter ("-DBOOST_ROOT=C:\Program Files\boost_1.37.0\"), by using the Add Entry-button in the GUI to define the BOOST_ROOT variable or by using the CMAKE_PREFIX_PATH environment variable. Build the libraryAfter generating the build system you can build using the Makefiles or project files generated by CMake. Below is an example using make. Alternatively, you can open the generated project files in your IDE. make make doc make pdf make package make package_source |
Sign in to add a comment
Minor typo, I believe it should be "cmake" instead of "ccmake" under "Configuring the build".
Nope, it's not a typo. I put ccmake (the console/curses gui) instead of the command line cmake intentionally there so users would find the compile time configuration options easier. You could also use cmake-gui.