diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index d3a774c25..ac090737e 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -33,7 +33,8 @@ include(friction-ffmpeg) add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}") if(${LINUX_DEPLOY}) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") + #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") + set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib") endif() option(USE_SKIA_SYSTEM_LIBS "Use skia (third-party) system libraries on Linux" ON) diff --git a/src/scripts/build_vfxplatform_package.sh b/src/scripts/build_vfxplatform_package.sh index 07e2e0a68..e893a7fdf 100755 --- a/src/scripts/build_vfxplatform_package.sh +++ b/src/scripts/build_vfxplatform_package.sh @@ -135,7 +135,8 @@ echo "[Paths]" > ${BUILD}/${FRICTION_PKG}/opt/friction/bin/qt.conf echo "Prefix = .." >> ${BUILD}/${FRICTION_PKG}/opt/friction/bin/qt.conf echo "Plugins = plugins" >> ${BUILD}/${FRICTION_PKG}/opt/friction/bin/qt.conf -(cd ${BUILD}/${FRICTION_PKG}/opt/friction/bin ; patchelf --set-rpath '$ORIGIN/../lib' friction) +#(cd ${BUILD}/${FRICTION_PKG}/opt/friction/bin ; patchelf --set-rpath '$ORIGIN/../lib' friction) + (cd ${BUILD}/${FRICTION_PKG}/opt/friction/lib ; for so in *.so*; do patchelf --set-rpath '$ORIGIN' ${so}