Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.2
-
-
3642ce6e4 (dev), 07dc64974 (6.8), 0983c2dbb (6.7), f1aa9a386 (tqtc/lts-6.5)
Description
Qt's Database plugin does not build with Oracle instant client for Mac/ARM.
With following configuration:
./Qt6.7/configure -debug -c++std c++20 -no-framework -force-debug-info -prefix $HOME/Qt/6.7.2-debug -sql-oci -- -DOracle_LIBRARY=$HOME/ocisdk/libclntsh.dylib -DOracle_INCLUDE_DIR=$HOME/ocisdk/include
It complains:
ld: file not found: @rpath/libnnz.dylib for architecture arm64
This worked with all x86 instant clients when building for x86.
By adding "-L <path to oracle libs>" or remove "-Wl,-flat_namespace,-U,_environ " makes it work.
Attachments
For Gerrit Dashboard: QTBUG-127342 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
581081,4 | CMake: Fix build of oci plugin on arm macOS with the classic linker | dev | qt/qtbase | Status: MERGED | +2 | 0 |
581154,2 | CMake: Fix build of oci plugin on arm macOS with the classic linker | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
581218,2 | CMake: Fix build of oci plugin on arm macOS with the classic linker | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
581472,2 | CMake: Fix build of oci plugin on arm macOS with the classic linker | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |