2008-07-27 17:50:05 +00:00
|
|
|
Building LMMS got quite simple since 0.4.0 as everything is managed
|
|
|
|
|
by cmake now. Therefore make sure you have CMake (>= 2.6.0 recommended) and
|
|
|
|
|
then run
|
2006-08-13 20:32:22 +00:00
|
|
|
|
|
|
|
|
|
2008-07-27 17:50:05 +00:00
|
|
|
mkdir build
|
|
|
|
|
cd build
|
2009-05-06 20:22:12 -07:00
|
|
|
cmake ../
|
2008-07-27 17:50:05 +00:00
|
|
|
make
|
|
|
|
|
sudo make install
|
2006-08-13 20:32:22 +00:00
|
|
|
|
2008-07-27 17:50:05 +00:00
|
|
|
This way an out-of-tree build is performed. You can also run "cmake ." directly
|
|
|
|
|
in the root of source-tree although this is not recommended. When performing an
|
|
|
|
|
out-of-tree build after there's already an in-tree build, make sure to run
|
|
|
|
|
"make distclean" before running cmake inside build-directory.
|
2005-09-22 13:49:52 +00:00
|
|
|
|
2008-09-30 11:10:52 +00:00
|
|
|
If you want to use custom compiler flags simply set the environment variables
|
|
|
|
|
CFLAGS and CXXFLAGS.
|
|
|
|
|
|
2008-07-27 17:50:05 +00:00
|
|
|
After running cmake (the 3rd command above) you can see a summary of things
|
|
|
|
|
that are going to be built into LMMS or built as plugins. Install the
|
|
|
|
|
according libraries and development files if a certain feature is not enabled.
|
|
|
|
|
Then remove CMakeCache.txt and run cmake again.
|
2005-09-22 13:49:52 +00:00
|
|
|
|
2009-05-06 20:22:12 -07:00
|
|
|
If you want to supply an install prefix to cmake, add the flag:
|
|
|
|
|
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=<prefix>
|
|
|
|
|
|
|
|
|
|
Where <prefix> can be /usr, /usr/local, /opt, etc. The default is /usr/local.
|
|
|
|
|
|