赞
踩
编译驱动插件参考如下:
Mac Qt 6.2.2 MySQL驱动_U3_Bono的博客-CSDN博客
我遇到的问题:执行$cmake --build . 时出现Failed
[1/1] Linking CXX shared module plugins/sqldrivers/libqsqlmysql.dylib
FAILED: plugins/sqldrivers/libqsqlmysql.dylib
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -g -DNDEBUG -O2 -arch x86_64 -isysroot /Users/XXX/Qt/6.2.4/macos/lib/QtCore.framework/Versions/A/QtCore -framework DiskArbitration -framework IOKit && cd /Users/XXX/build-sqldrivers/mysql && /Users/XXX/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -E make_directory /Users/XXX/bsqldrivers/plugins/sqldrivers/libqsqlmysql.dylib.dSYM/Contents/Resources/DWARF/qsqlmysql
ld: warning: ignoring file /usr/local/mysql-8.0.30-macos12-arm64/lib/libmysqlclient.dylib, building for
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。