QT6.3+mysql8.0+Mac
Unsolved
Qt 6
-
hi all
Qt6 use a new way to build mysql drive, and I build it failed.environment:
Qt 6.3.0
MySQL 8.0.29(64bit)I input these commands:
mkdir build-sqldrivers cd build-sqldrivers qt-cmake -G Ninja <qt_installation_path>/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.<so|dylib>" cmake --build . cmake --install .
I got error when I input cmake --build .
[3/11] Building CXX object mysql/CMake...rPlugin_autogen/mocs_compilation.cpp.o FAILED: mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o /usr/bin/clang++ -DGL_SILENCE_DEPRECATION -DQMYSQLDriverPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_PLUGIN -DQT_SQL_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/apple/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/include -I/users/apple/Qt/6.3.0/Src/qtbase/src/plugins/sqldrivers/mysql -I/Users/apple/build-sqldrivers/mysql -I/Users/apple/build-sqldrivers/include -isystem /usr/local/mysql/include -isystem /Users/apple/Qt/6.3.0/macos/lib/QtCore.framework/Headers -iframework /Users/apple/Qt/6.3.0/macos/lib -isystem /Users/apple/Qt/6.3.0/macos/mkspecs/macx-clang -isystem /Users/apple/Qt/6.3.0/macos/include -isystem /Users/apple/Qt/6.3.0/macos/lib/QtCore.framework/Headers/6.3.0 -isystem /Users/apple/Qt/6.3.0/macos/lib/QtCore.framework/Headers/6.3.0/QtCore -isystem /Users/apple/Qt/6.3.0/macos/lib/QtSql.framework/Headers/6.3.0 -isystem /Users/apple/Qt/6.3.0/macos/lib/QtSql.framework/Headers/6.3.0/QtSql -isystem /Users/apple/Qt/6.3.0/macos/lib/QtSql.framework/Headers -g -DNDEBUG -O2 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -Werror "-Wno-error=#warnings" -Wno-error=deprecated-declarations -fapplication-extension -std=c++17 -MD -MT mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o -MF mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o.d -o mysql/CMakeFiles/QMYSQLDriverPlugin.dir/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp.o -c /Users/apple/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp In file included from /Users/apple/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/mocs_compilation.cpp:2: /Users/apple/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/EWIEGA46WW/moc_qsql_mysql_p.cpp:10:10: error: non-portable path to file '"../../../../../../Users/apple/Qt/6.3.0/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h"'; specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path] #include "../../../../../../users/apple/Qt/6.3.0/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "../../../../../../Users/apple/Qt/6.3.0/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h" 1 error generated. [8/11] Building C object sqlite/CMakeF...qtbase/src/3rdparty/sqlite/sqlite3.c.o ninja: build stopped: subcommand failed.
-
@wanning007 said in QT6.3+mysql8.0+Mac:
/Users/apple/build-sqldrivers/mysql/QMYSQLDriverPlugin_autogen/EWIEGA46WW/moc_qsql_mysql_p.cpp:10:10
specified path differs in case from file name on disk
I see
/Users/apple/...
in that path but/users/apple/...
in#include "../../../../../../users/apple/Qt/6.3.0/Src/qtbase/src/plugins/sqldrivers/mysql/qsql_mysql_p.h"
How has that come about?