What does the -d parameter stand for? What happens if you omit it?
What does the -d parameter stand for? What happens if you omit it?
The -d parameter is shown in the manual "Building the QMYSQL plugin on Windows using MinGW".
But i will try it without -d.
Hi,
i have reinstalled Qt, MinGW and Sql.
I used the "Building the QMYSQL plugin on Windows using MinGW" again.
But if i insert the following line into the comand-line:
C:\Qt\Qt\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=C:\Qt\Sql\
include" "LIBS+=C:\Qt\Sql\lib\opt\liblibmysql.a" mysql.pro
I get this error:
Der Befehl "qmake" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Can anybody say me, what i forgot?
I'm not sure if I understood the German part but looks like there is no qmake in PATH. Add C:\Qt\Qt\bin to PATH or try using the "Qt Command Prompt" (there's a shortcut in Start-menu).
J-P Nurmi
Hi,
sorry i forgot to translate it. But you understand it correctly.
I have set the environment variable to C:\Qt\Qt\bin.
But i get the same error. I didn´t find the command-prompt.
Have i run the configure.exe before, to create the libaries?
I thought you said you had already installed Qt as in, installed a binary package. But anyway, yes you have to actually build Qt if you grabbed a source package. See Installing Qt/Windows for more details. At the same time you can pass required options to configure script to enable MYSQL plugin. See "configure -help" for more details. Once you proceed to configure step, make sure to examine its output. You should look for something like
MYSQL support ...... plugin
J-P Nurmi
Ok i configured Qt with the neccessary parameters and started again to build the sql-plugin.
I insert qmake -o Makefile....... It works.
But if i insert mingw32-make to build
qsqlmysql.dll and libqsqlmysql.a
I get this error:
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++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\i
nclude\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..
\..\..\..\include" -I"c:\Qt\Sql\include" -I"c:\Qt\Qt\include\ActiveQt" -I"tmp\mo
c\debug_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\
main.o main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\i
nclude\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..
\..\..\..\include" -I"c:\Qt\Sql\include" -I"c:\Qt\Qt\include\ActiveQt" -I"tmp\mo
c\debug_shared" -I"." -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\
qsql_mysql.o ..\..\..\sql\drivers\mysql\qsql_mysql.cpp
C:/Qt/Qt/bin/moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT
_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_
SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\.
.\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include" -I"c:\
Qt\Sql\include" -I"c:\Qt\Qt\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"
..\..\..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 ..\..\..\sql\drivers\mysql\qsq
l_mysql.h -o tmp\moc\debug_shared\moc_qsql_mysql.cpp
the command "C:/Qt/Qt/bin/moc.exe" is wrong
or does not exists.
mingw32-make[1]: *** [tmp/moc/debug_shared/moc_qsql_mysql.cpp] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/Qt/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug-all] Error 2
You don't have Qt installed. "configure" doesn't perform the installation, it only preconfigures Qt for building. Then you have to actually build the framework. Read the associated readme file and the wiki entry or just follow the onscreen instructions.
Does C:\Qt\Qt\bin\moc.exe exist or not? I guess such confusion with "/"'s and "\"'s could be caused also by having msys/cygwin in path.
J-P Nurmi
Bookmarks