PDA

View Full Version : Driver alwas not found (windows)



wirasto
30th August 2010, 07:13
I tried deploy Qt aplication on other computer (Ms. Windows). But I always get driver not load (mysql).

I copy mysql plugin in plugins and plugins/sqldrivers directory but still not found.
Tried create directory C:/myplugin and load from main.cpp with


QApplication a(argc, argv);
a.addLibraryPath("C:/myplugin");

But, still not found :(

What's wrong ??

all the time, for deploy on windows I always compile static my qt application.

wysota
30th August 2010, 07:45
Statically built applications can't use regular plugins.

wirasto
30th August 2010, 07:59
Yes. And now i tried shared aplication, and get this problem.

Sorry, about my english.

saa7_go
30th August 2010, 08:02
Statically built applications can't use regular plugins.

If we build the plugin as a static plugin, can we use it in a statically built application?

wysota
30th August 2010, 08:14
Yes. And now i tried shared aplication, and get this problem.
Where exactly did you put the plugin files?


If we build the plugin as a static plugin, can we use it in a statically built application?
Yes, provided you link with them at compilation time. But it's hard to call that plugins then ;)

wirasto
30th August 2010, 08:20
I try in every folder that I mention earlier

saa7_go
30th August 2010, 08:35
Yes, provided you link with them at compilation time. But it's hard to call that plugins then ;)
Why it is hard to call the plugins?


I try in every folder that I mention earlier
Where do you put libmysql.dll?

wysota
30th August 2010, 08:41
Then go back to the docs about plugins and see what folder they should be residing in instead of blindly trying your luck and doing the same mistake every time. It's in the second sentence of this paragraph: The Plugin Directory