PDA

View Full Version : Problem building QMYSQL



Eternal
10th October 2009, 01:58
Hello,

I'm trying to build QMYSQL, but when i do nmake i get this: qsql_mysql.moc: No such file or directory

The moc command from the makefile seems to have no error. As i can see on Makefile.Debug it should be creating the .moc file at Debug dir from the project.

Im running on Windows Vista Business, Qt 4.3.5.

I was trying to follow the instructions from http://wiki.qtcentre.org/index.php?title=Building_the_QMYSQL_plugin_on_Wind ows_using_MinGW

schnitzel
24th October 2009, 06:38
Try these instructions:
http://qt.nokia.com/doc/4.0/sql-driver.html#how-to-build-the-plugin-on-windows

Then open Qt command prompt, go to
\<QT install directory>\qt\src\plugins\sqldrivers\mysql

I don't have nmake, so I used mingw32-make. I had some problems with long filenames at first, but then figured out the 8.3 filenames.

hth,
-a

Eternal
25th October 2009, 01:32
Well, i had already resolved my problem.

The problem was becuse of the wrong instructions gave by people. Well, maybe incomplete instructions. I was trying nmake because the instructions said to and I don't have make.

But nmake only work with MS compiled binaries, not the case from the win binaries package. I had to use the mingw32-make and everything works fine.

Thank you,