I don't think it's qmake, more probably make itself.
The problem is that during compilation time the compiler has to be able to find proper include files and libraries so that it can build the plugin. Because of some feature/bug, the build process doesn't accept whitespaces in path names. This is one thing.Also I tried to install mysql to c:\mysql but I have a problem with driver not loaded. So I need to have two directories of mysql one is for default path installation and other for do the qmake
But the problem is also that those mysql libraries have to be found by the system, so that it can initialise the plugin when it is to be used by Qt. To do that, the system needs to be informed where those libraries are (that's what the installation process of MySQL does - it registers those libraries within the system).
If you install MySQL in a place where both of the above mentioned conditions are met, you can have a single directory and a working driver without any special actions from your side. But if you fail to meet one of those conditions, the driver will either not compile or not run and you have to "patch" your system by copying appropriate files to appropriate places.
So let me say it one last time, so that everyone having problems with MySQL driver under Windows can see the issue:
Problems with compiling/running the MySQL (or any other) driver are not related to Qt but to faulty installation of MySQL or to bugs within the tool chain used to build the driver.
You can get rid of all the problems by pointing MySQL installation to a proper (non-default) place, that doesn't contain whitespaces, like C:\MySQL in the first place!






Reply With Quote
Bookmarks