语句为:cdC:\Qt\qt\src\plugins\sqldrivers\mysqlqmake-oMakefile"INCLUDEPATH+=C:\MySQL\include""LIB+=C:\MySQL\lib\opt\libmysql.a"mysql.pro运行后提示:WARNING:(internal):1:U...
语句为:
cd C:\Qt\qt\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIB+=C:\MySQL\lib\opt\libmysql.a" mysql.pro
运行后提示:
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
然后没管,继续运行
C:\Qt\mingw\bin\mingw32-make
提示错误:
C:/Qt/mingw/bin/mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/qt/src/plugins/sqldrivers/mysql'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\qt\plugins\sqldrivers\libqsqlmys
qld4.a -o ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll tmp/obj/debug_shared/ma
in.o tmp/obj/debug_shared/qsql_mysql.o tmp/obj/debug_shared/moc_qsql_mysql.o -L
"c:\Qt\qt\lib" -L"c:\Qt\qt\lib" tmp\obj\debug_shared\qsqlmysqld_resource_res.o -
llibmysql -lQtSqld4 -lQtCored4
'g++' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/qt/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug-all] Error 2
另外如果设置了bin目录的path,则提示如下
C:\Qt\qt\src\plugins\sqldrivers\mysql>mingw32-make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/qt/src/plugins/sqldrivers/mysql'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\qt\plugins\sqldrivers\libqsqlmys
qld4.a -o ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll tmp/obj/debug_shared/ma
in.o tmp/obj/debug_shared/qsql_mysql.o tmp/obj/debug_shared/moc_qsql_mysql.o -L
"c:\Qt\qt\lib" -L"c:\Qt\qt\lib" tmp\obj\debug_shared\qsqlmysqld_resource_res.o -
llibmysql -lQtSqld4 -lQtCored4
c:/qt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot
find -llibmysql
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/qt/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug-all] Error 2
展开