Hey guys,
Just got SpatiaLite working with my Qt application in Windows /
VS2008.
To get SQLite to build properly with Qt, these changes must be made in
the 4.7.1\src\3rdparty\sqlite.pri file.
Remove the OMIT_EXTENSION flag, it should look like this:
DEFINES += SQLITE_ENABLE_LOAD_EXTENSION SQLITE_ENABLE_RTREE
SQLITE_OMIT_COMPLETE
I'm pretty sure I also used the latest SQLite release instead of the
default Qt build.
After making the change, you need to recompile Qt. From the VS2008
Command Prompt(Tools):
Qt\4.7.1\configure
Qt\4.7.1\nmake
This may take a while. After compilation, add the SpatiaLite .dll's
to your application directory, and you should be
able to load them with a SELECT query.
Hope this helps anyone looking for this info.
John