Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

PyQt build fails on mac if DYLD_LIBRARY_PATH is set in CONFIGURE_COMMAND #78

Open
aharshac opened this issue Feb 16, 2020 · 1 comment · Fixed by #126
Open

PyQt build fails on mac if DYLD_LIBRARY_PATH is set in CONFIGURE_COMMAND #78

aharshac opened this issue Feb 16, 2020 · 1 comment · Fixed by #126

Comments

@aharshac
Copy link

aharshac commented Feb 16, 2020

In pyqt.cmake, if DYLD_LIBRARY_PATH is set in the CONFIGURE_COMMAND, build fails with an sqlite3 error.

Querying qmake about your Qt installation...
dyld: Symbol not found: _sqlite3_intarray_bind
Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Expected in: /Users/harsha/Documents/cura4-env/env_py/lib/libsqlite3.dylib
in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the
--qmake flag to specify the correct version of qmake.

However, removing "DYLD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib" from pyqt_command builds successfully.

set(pyqt_command
    ${Python3_EXECUTABLE} configure.py
    --sysroot ${CMAKE_INSTALL_PREFIX}
    --qmake ${CMAKE_INSTALL_PREFIX}/bin/qmake
    --sip ${CMAKE_INSTALL_PREFIX}/bin/sip
    --confirm-license
)
@Ghostkeeper
Copy link
Contributor

This was necessary for Linux because there the PyQt library doesn't respect the RPath, apparently: 4f46651

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.

@jellespijker jellespijker linked a pull request Apr 12, 2022 that will close this issue
10 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants