linux 下 QT5.12编译mysql出错

g++ -c -pipe -O2 -g -std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I. -I-L/usr/lib/x86_64-linux-gnu -I-lmysqlclient -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtSql/5.12.0 -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtSql/5.12.0/QtSql -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtCore/5.12.0 -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtCore/5.12.0/QtCore -I/opt/Qt5.12.0/5.12.0/gcc_64/include -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtSql -I/opt/Qt5.12.0/5.12.0/gcc_64/include/QtCore -I.moc -I/opt/Qt5.12.0/5.12.0/gcc_64/mkspecs/linux-g++ -o .obj/qsql_mysql.o qsql_mysql.cpp
In file included from qsql_mysql.cpp:40:

qsql_mysql_p.h:60:10: fatal error: mysql.h: No such file or directory
   60 | #include 
      |          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:829: .obj/qsql_mysql.o] Error 1

请求大神们帮助一下!谢谢!

你可能感兴趣的:(linux 下 QT5.12编译mysql出错)