are you sure that yours application (release) don't use debug libs?
check dependency of application.
are you sure that yours application (release) don't use debug libs?
check dependency of application.
Hi,
The application dir contains the debug and release libs.
I checked with "Dependency Walker" and the dir contains the needed libs.
I have a computer that has the MySQL database and another computer that is the client. I have the application in the client computer. If I exec the application on the client, I get "Driver Not Loaded" error, but If I share the app dir and I exec the application from the server computer(using the shared dir), it works.
The server computer is the developer computer.
Thanks,
Òscar Llarch i Galán
do you use sql-plugins? if yes, then try to copy QTDIR/plugins/sqldrivers dir to yours app directory.
Hi,
I did it as I told you in the first post.
Thanks,
Òscar Llarch i Galán
so, you application dir has next structure
right?appdir
|----sqldrivers
| |---- qsqlmysql4.dll
| |-----qsqlmysql4d.dll
|----myapp.exe
josepvr (25th February 2009)
Hi,
Yes, in appdir also there are the Qt4 libs
Òscar Llarch i Galán
And the MySQL DLL is in PATH?
J-P Nurmi
Hi,
Yes, the MySQL is in the Path. AI have also tryied to copy the MySQL release DLL into the appDir and the release app gets the same error and the debug app is connecting well.
Thanks,
Òscar Llarch i Galán
Hi,
I have one question that I don't really understand.
The Envoirment variable "LIB" points to "%MYSQL%\lib\debug".
When Qt is compiled, the MySQL debug driver is linked on debug lib and MySQL release driver is linked on release lib?
So when I try to start the application and the Qt MySQL drivers are linked to the debug MySQL lib, the Qt driver don't find the correct MySQL lib.
Thanks,
Òscar Llarch i Galán
use path for LIB variable
LIB=%MYSQL%\lib\opt;
Hi,
Yes, it's what I was thinking.
So, the opt lib will be linked when compiling the app.
Thank you very much,
Another question to Visual Studio users: How can I force to link with different libs? As opt MySQL lib for release and debug MySQL lib for debug?
Thanks,
Òscar Llarch i Galán
try to add needed library manually.
e.g. go to "Project->%1 Properties" (%1 your project name), then go to "Linker->Input" and add in "Additional Dependecies" neede library.
Bookmarks