Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
14 user(s) are online (7 user(s) are browsing Forums)

Members: 0
Guests: 14

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: QSqlDatabase: QSQLITE driver not loaded

Subject: Re: QSqlDatabase: QSQLITE driver not loaded
by BSzili on 2015/1/20 15:37:26

@alfkil
Drats! I thought those were only linker warnings, and the sobjs are loaded at the program startup. I tried copying the missing files to sdk:local/newlib/lib, but it made no difference.
I know you ported CMake, but it crashes on my system (it gets into an endless loop), so I opted to use a makefile.

Edit: aha! Memory is a good thing, the more the better. Anywaya, for this problem, the reason the link fails, is that you have not added every dependency of every link object to the link line in your makefile. Ie. If libqtsql.so depends on libsqlite3.so, your link should look smth like this, that is with every nondependant object last:

ln <whatever> -l QSql <whatever > -l sqlite3 <whatever >

Otherwise the connection is not made, and your code will fail.
Powered by XOOPS 2.0 © 2001-2014 The XOOPS Project