Trouble creating QMYSQL plugin for macOs.
-
wrote on 19 Dec 2024, 23:58 last edited by he_R0
I am getting errors building the QMYSQL plugin for MacOS after following the documentation .
Errors:
ld: warning: ignoring file '/usr/local/mysql-9.1.0-macos14-arm64/lib/libmysqlclient.24.dylib': found architecture 'arm64', required architecture 'x86_64'
Undefined symbols for architecture x86_64:
...I haven't been able to find the answer online and AI solutions haven't worked either. What am I missing?
-
wrote on 20 Dec 2024, 00:38 last edited by
If you have an ARM Mac then you should be building for "arm64" and not "x86_64".
To persuade the linker that you're on an ARM Mac, try erasing the build directory and appending
-DCMAKE_OSX_ARCHITECTURES="arm64"
on the qt-cmake command lineIf you're still having problems, you can look for example here
-
If you have an ARM Mac then you should be building for "arm64" and not "x86_64".
To persuade the linker that you're on an ARM Mac, try erasing the build directory and appending
-DCMAKE_OSX_ARCHITECTURES="arm64"
on the qt-cmake command lineIf you're still having problems, you can look for example here
wrote on 20 Dec 2024, 05:39 last edited by he_R0@hskoglund -DCMAKE_OSX_ARCHITECTURES="arm64" did not work; the additional command in your post fixed the issue. Thank you.
-
1/3