Trouble creating QMYSQL plugin for macOs.
Solved
General and Desktop
-
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?
-
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
-