[setup] tweak included system libs on Linux

based on https://github.com/Ultimaker/cura-build/blob/master/packaging/setup_linux.py.in
+ add root "lib" folder to the LD_LIBRARY_PATH
This commit is contained in:
Yann Lanthony 2018-08-06 15:34:40 +02:00
parent 4d19b388fd
commit a05030f7fc
2 changed files with 68 additions and 7 deletions

View file

@ -73,10 +73,12 @@ def setupEnvironment():
qtPluginsDir = os.path.join(rootDir, "qtPlugins")
sensorDBPath = os.path.join(aliceVisionShareDir, "cameraSensors.db")
voctreePath = os.path.join(aliceVisionShareDir, "vlfeat_K80L3.tree")
# Linux: "lib" contains shared libraries that needs to be in LD_LIBRARY_PATH
libPath = os.path.join(rootDir, "lib")
env = {
'PATH': aliceVisionBinDir,
'LD_LIBRARY_PATH': aliceVisionBinDir,
'LD_LIBRARY_PATH': [aliceVisionBinDir, libPath],
'QT_PLUGIN_PATH': [qtPluginsDir],
'QML2_IMPORT_PATH': [os.path.join(qtPluginsDir, "qml")]
}