[Qt-interest] QSQLITE problems on clean install
Neville Dastur
qt at dastur.me.uk
Fri Jan 15 00:18:42 CET 2010
And yet another that might help again to just compile in statically as
per: http://qt.nokia.com/doc/4.6/plugins-howto.html#static-plugins
Neville Dastur wrote:
> The other option is just to compile directly into your application. I
> need a very slightly modified version of the sqlite driver, so I have
> just copied the files: qsql_sqlite.cpp qsql_sqlite.h sqlite3.c
> sqlite3ext.h sqlite3.h into my project source tree. This also allows me
> to use the latest sqlite sources.
>
> Then in main() register your own driver:
> QSqlDatabase::registerSqlDriver("SQLITE_[PREFIX FOR YOUR DRIVER]", new
> QSqlDriverCreator<QSQLiteDriver>);
>
> and use as before. This does seem to save me all sort of troubles.
>
> Please correct me if wrong but as this is clearly <10% of the code it is
> fine to compile in "statically" so to speak and still be compatible with
> the LGPL.
>
> Jason Woodall wrote:
>
>> Thanks Neville (posted to qt-interest for integrity),
>>
>> I have had them in both locations, and then each location separately.
>> neither seems to work, though I am positive this is a Microsoft SxS
>> issue.
>>
>> My dev partner just built under Qt Creator (using Mingw) and it works
>> fine. We may just switch to this build model for release.
>>
>> Neville Dastur wrote:
>>
>>> I have once come across a problem with the MS CRT dlls being only a
>>> folder. Try copying the contents of Microsoft.VC80.CRT to your
>>> application directory too.
>>>
>>>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list