Open aharshac opened 4 years ago
This was necessary for Linux because there the PyQt library doesn't respect the RPath, apparently: https://github.com/Ultimaker/cura-build-environment/commit/4f46651002ccfa50cd5bdce714db64dd0eb30f36
I'm thinking that in this ${CMAKE_INSTALL_PREFIX}/lib
path for you there might be a different libsqlite3.dylib
file that is incompatible with PyQt? Like an older SQLite version? Maybe that's why it's failing?
Otherwise an exception can be made that this only happens on Linux, but for simplicity I'd rather keep it the same if not completely necessary.
In pyqt.cmake, if
DYLD_LIBRARY_PATH
is set in the CONFIGURE_COMMAND, build fails with an sqlite3 error.However, removing
"DYLD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib"
frompyqt_command
builds successfully.