当前位置:   article > 正文

Mac m1下Qt6.2.4的Mysql驱动插件编译配置和加载_ld: warning: ignoring file '/usr/local/mysql-8.0.3

ld: warning: ignoring file '/usr/local/mysql-8.0.31-macos12-arm64/lib/libmys

编译驱动插件参考如下:

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/351505
推荐阅读
相关标签
  

闽ICP备14008679号