Driver alwas not found (windows)
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
Code:
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.
Re: Driver alwas not found (windows)
Statically built applications can't use regular plugins.
Re: Driver alwas not found (windows)
Yes. And now i tried shared aplication, and get this problem.
Sorry, about my english.
Re: Driver alwas not found (windows)
Quote:
Originally Posted by
wysota
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?
Re: Driver alwas not found (windows)
Quote:
Originally Posted by
wirasto
Yes. And now i tried shared aplication, and get this problem.
Where exactly did you put the plugin files?
Quote:
Originally Posted by
saa7_go
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 ;)
Re: Driver alwas not found (windows)
I try in every folder that I mention earlier
Re: Driver alwas not found (windows)
Quote:
Originally Posted by
wysota
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?
Quote:
Originally Posted by
wirasto
I try in every folder that I mention earlier
Where do you put libmysql.dll?
Re: Driver alwas not found (windows)
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