diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2017-10-27 16:51:27 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2017-10-27 14:58:24 +0000 |
commit | c73c0c23d582262d9579b5c511fe90be30fc56cc (patch) | |
tree | ccc867471ea83ce059f4624d5bea6447ba296883 /mkspecs | |
parent | f4d2f7ccaa743eac5cda9daa3750a2ae4ddb87cb (diff) |
ivigenerator: Fix the deploy-virtualenv.sh to create usable virtualenvs
On some systems libpython needs to be copied into the virtualenv to
make the python executable work. As we can't change the rpath easily
we need to use LD_LIBRARY_PATH in the qmake integration to make the
system find the correct lib.
The script now also copies the needed libcrypto.so and libssl.so from
the system to the virtualenv as they are needed by the hashlib module
Change-Id: Ib7911f6d69c743892397581f91991ef415321aa3
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/ivigenerator.prf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf index b4f291d..b65b34f 100644 --- a/mkspecs/features/ivigenerator.prf +++ b/mkspecs/features/ivigenerator.prf @@ -49,8 +49,12 @@ QTEST_ENVIRONMENT = $$upper($$(QTEST_ENVIRONMENT)) else: ENV += IVIGENERATOR_CONFIG="$$shell_path($$QTIVI_BUILD_ROOT/src/tools/ivigenerator/.config)" } -equals(QMAKE_HOST.os, Windows): VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/Scripts/python.exe -else: VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/bin/python +equals(QMAKE_HOST.os, Windows) { + VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/Scripts/python.exe +} else { + VIRTUALENV_PYTHON = $$VIRTUALENV_PATH/bin/python + ENV += LD_LIBRARY_PATH="$$shell_path($$VIRTUALENV_PATH/bin)" +} IVI_GENERATOR = $$VIRTUALENV_PYTHON $$IVI_GENERATOR_PATH/generate.py # TODO make this work with multiple input files, or only support one QFACE_SOURCE |