From: Pedro Lopez-C. <ped...@gm...> - 2006-11-05 22:24:38
|
Hi, I have committed to the Rosegarden repository (branches/reorganisation) some preliminary CMake build system support files. It is far from be finished. It doesn' t install anything, and most of the 3rd library checks are still pending, but it may be used instead of reorganise-makefile and see what it looks. What is CMake? CMake is a replacement for the autotools. It is an open-source system using configuration text files that generates good old makefiles which can be used to manage complex compile/build tasks. More info here: http://www.cmake.org/Wiki/CMake_FAQ http://www.cmake.org/HTML/Documentation.html You need at least CMake 2.4 for KDE support. If your distribution already ships cmake-2.4.2, it should be fine. The latest release is 2.4.3 which can be downloaded from here: http://www.cmake.org/HTML/Download.html First of all, to build the branch you need to download the reorganisation branch as explained here: http://www.rosegardenmusic.com/getting/ using a command like this (all in the same line): $ svn co https://svn.sourceforge.net/svnroot/rosegarden/branches/reorganisation/rosegarden rosegarden-reorg This will create a directory named "rosegarden-reorg" containing the sources. To build it, you only need the following commands: $ cd rosegarden-reorg $ cmake . $ make But the above method should be discouraged, as it will use the same source directories to store the CMake generated files, and the binary files generated by the compiler. Instead, you are encouraged to try an "out-of-sources" alternative, like this: $ cd rosegarden-reorg $ mkdir build $ cd build $ cmake .. $ make All the generated files will reside in the build/ directory, which can be safely erased when you don't need it anymore. Remember that the "make install" and uninstall targets are currently missing. There is also a "ccmake" interactive program, allowing you to choose options and explore default settings. It will be more useful later, when the build system arrive to a more mature state. Regards, Pedro |