From b5855f0e496f2f9267c9a3eb29191f2ed7a3cfef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 1 Jan 2018 16:02:52 +0100 Subject: Rework compilation so we don't have to use LD_LIBRARY_PATH --- build.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index bfde7c4..6848d31 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,14 @@ #!/bin/sh -mkdir -p build - ROOT="$(dirname "$(readlink -f "$0")")" +mkdir -p build cd build -qtchooser -run-tool=qmake -qt=5 "$ROOT" -make sub-qtmips_cli sub-qtmips_gui +# Compile +qtchooser -run-tool=qmake -qt=5 "$ROOT" "QMAKE_RPATHDIR += ../qtmips_machine" +make + +# Link executables to more suitable place +ln -fs qtmips_cli/qtmips_cli cli +ln -fs qtmips_gui/qtmips_gui gui -- cgit v1.2.3