Am Samstag, 21. April 2007 16:51:38 schrieb Bruce Dubbs: > I have an application that makes use of the mysql support in qt. I was > following the instructions for qt-3.3.8 but added -qt-sql-mysql to > configure. > > The make failed. Upon looking at the error message, it seems that > ./src/sql/drivers/mysql/qsql_mysql.h could not find mysql.h. > > My system has installed mysql.h as /usr/include/mysql/mysql.h. My > version of mysql is a bit dated as it is 5.0.21 and the current version > is at 5.0.37. > > Modifying qsql_mysql.h to read: > > #include <mysql/mysql.h> > > allowed the make to complete, but I haven't tested it yet. > > Has anyone else seen this? Should we create a sed to apply this to the > qt section of the book? > > sed -i -e 's:mysql.h:mysql/&:' src/sql/drivers/mysql/qsql_mysql.h > > -- Bruce
Hi Bruce, I built Qt3 with MySQL support, too, without really needing it. I just used the -I option of configure to add /usr/include/mysql to the search paths. Qt3's configure doesn't seem to check if the requirements are met, but I guess, it just assumes, you know what you do, when you activate the bindings to a DB excluding sqllite. Regards, Christoph -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
