I downloaded a new file qt-4.3.2 from the Trolltech site. I copied the source directory from the download into my current installation.
The next thing I did was installing the x86 version from mysql.com. (mysql 5.0.51a)
And I did what the Trolltech QMYSQL guide said.
But after I ran the command : sudo make I get this
But if I run the command nano ../../../sql/drivers/mysql/qsql_mysql.h from the same location as make. I'm in the qsql_mysql.h file.sudo make
Password:
make -f Makefile.Debug
c++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/macx-g++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../lib/QtSql.framework/Versions/4/Headers -I../../../../include/QtSql -I../../../../include/QtSql -I../../../../include -I/usr/include/mysql -Idebug -I. -F/usr/local/Trolltech/Qt-4.3.2/lib -o debug/main.o main.cpp
In file included from main.cpp:41:
../../../sql/drivers/mysql/qsql_mysql.h:49:19: error: mysql.h: No such file or directory
../../../sql/drivers/mysql/qsql_mysql.h:100: error: expected `)' before '*' token
make[1]: *** [debug/main.o] Error 1
make: *** [debug] Error 2
So it does exist!?
I'm a little bit confused right now, the make files says that the directory doesn't exist but the nano command says it does.
What do I have to do know?
Last edited by cyberboy; 1st February 2008 at 17:53. Reason: add information
Bookmarks