[Svxlink-devel] CMake is now the official build system fir SvxLink
Brought to you by:
sm0svx
From: SM0SVX <sm...@us...> - 2014-06-26 11:49:18
|
Hi, I have now merged the cmake branch into trunk which means that CMake is now the official build system for SvxLink. The old build system still works but I suggest you migrate to using cmake since the old build system will not be maintained indefinitely but for now they work in parallel. One other thing that have changed is that potentially distribution specific files (e.g. start scripts, logrotate conf, udev conf etc) are not installed anymore by a "make install". These files have to be added manually by package maintainers. Files for different distribution can be found here: https://sourceforge.net/p/svxlink/svn/HEAD/tree/trunk/distributions/ However, these files are not actively maintained but contributions are welcome. Building using CMake is normally done in a separate build directory to keep the source tree clean. A normal usage pattern is: cd src mkdir build cd build cmake .. make make install This will build SvxLink and install everything under /usr/local. To make a testrun to see what will be installed, the DESTDIR variable may be used: make install DESTDIR=/tmp/svxlink That will install everything under /tmp/svxlink but this is not a usable installation but only for testing or package building. Use the very useful "tree" utility to get a view of the installed files: tree /tmp/svxlink The install paths is changed by setting CMake variables. A standard install, like when installing a binary package, would look like this: cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc \ -DLOCAL_STATE_DIR=/var .. CMake normally only have to be run one time to configure the build system. After that just a "make" will do it. CMake will be executed automatically if needed. A little bit more information is available in the INSTALL file which is located in the top source directory: https://sourceforge.net/p/svxlink/svn/HEAD/tree/trunk/src/INSTALL 73's de SM0SVX / Tobias |