faustlive
faustlive copied to clipboard
build puts binary into source-directory
trafficstars
Following the build/README instructions, to build FaustLive:
cd Build
mkdir flbuild
cd flbuild
qmake ..
make
i don't see any generated binaries in the Build/flbuild/ directory.
Instead, all built-artifacts (currently only the FaustLive binary itself) are put into Build/FaustLive/.
This is bad, as it doesn't satisfy the out-of-tree build expectations, namely:
- to be able to build from a read-only source-directory (without having to copy the sources to a writable directory)
- to be able to build multiple flavours at the same time (withouth having to duplicate the sources)
afaict, the solution is simply to change the DESTDIR line in Build/FaustLive.pro (removing the $$PWD) to:
DESTDIR = FaustLive
This allows me to do things like:
$ for q in 4 5
do
mkdir /tmp/faustlive-qt${q}
cd /tmp/faustlive-qt${q}
QT_SELECT=${q} qmake /media/cdrom/FaustLive-2.5.2/Build && make -j8
done
$
and have a QT4 version in /tmp/faustlive-qt4/FaustLive/FaustLive and a QT5 version in /tmp/faustlive-qt5/FaustLive/FaustLive