grame-cncm / faustlive

Advanced self-contained prototyping environment for the Faust programming language
Other
80 stars 18 forks source link

build puts binary into source-directory #25

Open umlaeute opened 5 years ago

umlaeute commented 5 years ago

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:

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