[Qt-interest] Problem building SQLITE database drivers

William Lugg wlugg at prairienetworks.com
Sat Jul 25 02:47:12 CEST 2009


I am attempting to build the SQLITE database driver plugin under QT 4.5 on a 
Kubuntu 9.04 machine with the packages libsqlite3-0-3.6.10-1ubuntu0.2 and 
sqlite3-3.6.10-1ubuntu0.2 installed through apt-get.

Qt was installed via the 4.5 (2009.03) SDK that include Qt Creator and all the 
4.5 files.

I first tried using the ./configure approach described at 
http://doc.trolltech.com/4.5/sql-driver.html#qsqlite-for-sqlite-version-3-and-
above, using the command "./configure -opensource -plugin-sql-sqlite -
L/usr/lib", but that yielded the error:

Basic XLib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in 
/usr/local/qtsdk-2009.03/qt/mkspecs/linux-g++.

I assume this means that it couldn't find the lib file that it needs to link to, 
but I couldn't figure out how to tell it that the file I believe it needs is in 
the /usr/lib folder.

So, I tried the manual approach described in the aforementioned web site, but 
I got the error:

QMAKESPEC has not been set, so configuration cannot be deduced.                                                                            
Error processing project file: 
/usr/local/qtsdk-2009.03/qt/src/plugins/sqldrivers/sqlite/sqlite.pro                                        

FWIW, the SQLITE environment variable mentioned in the sample code is empty, 
and since the apt-get handles package installation, I'm not really sure what I 
should set it to, If anything.

Obviously, this got me nowhere too.  I know this should be a simple task and 
I'm probably missing the obvious, but could somebody help me see what it is?

Thanks in advance for any help you might be able to offer.
----
Bill Lugg
  Milstar Software Support
  Peterson AFB, CO
  No Micro$oft products were used to create this email.  
  God rules and if he needed a computer it would run Linux!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090724/74ad7e55/attachment.html 


More information about the Qt-interest-old mailing list