Qt qmysql windows


















Did you make sure the incdir and libdir are containing the files mentioned in my second instruction link? Christian-Ehrlicher Do not be mad man. I just not realize how to build sql-driver.

Now I am install the qmake, perhep this time work and reinstall the mysql. Can you tell me what is the file that include in the "incdir" and "libdir" folder? I reinstalled the mysql, but cannot find the folder such as your described in instruction.

Thank you very much. I solved it two days ago. BTW, I do not think 32 bit vision is useful, if I am wrong please point out. Mysql's serves is only offer 64 bit, so the libmysql. That is why I cannot build the drive at first 2 days lol. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project " How can i solve this? Your files solved my problem. Qt Forum.

You could try diagnosing the issue with strace - it seems like the QMYSQL driver might need some run-time library dependencies to work. When I had the same problem with the MySQL driver the message was something like 'The version was compiled with other options than this Qt version'.

It seemed like the Qt sources, that shipped with the Qt SDK at that time, were not compatible with its binaries. Got the same problem and some Google research and intuition finally solved it. Using Qt5. At that moment, none of those solved for me, and i decided to look further in synaptic packages, and realize that libqt5sql5-mysql version 5. If you want to deploy run the program on the other system, copy the dll's into the same folder as the executable.

The MySQL driver, and other sql-drivers, have to be placed in a subfolder called "sqldrivers". An example of the application folder structure:. This is an indicator of an incorrect path to MySQL.

If you get an error the path is incorrect, else you will go to the folder where MySQL is installed. I am on the 7th step, Copy libmysql. I changed it in the post. When using this method, it worked perfectly when making the. I also had to include these lines in my. While some people may find that this is uneccessary, if you are having problems, this might be the solution. Hope this is useful. There's no words to say how grateful I am!

Then I found your "tutorial", I followed the steps, and it worked immediately! Just thank you :. Are you sure you didn't forget step 6? Also make sure you changed the version 4. I have follow all the step as you mention. I generated release and debug. That's very strange, the only explanation I can think of is that the files aren't placed in the correct folder Make sure you are using the Qt Command Prompt Step 4.

Another possibility is to look into Cygwin or build it using Visual Studio. In This path I copied all the four files. I dont find any Qtsoureces folder. Is it correct? Normally if you completed step 2 the folder should be there However it might be that in the commercial version the directory has a different name, but I doubt it.

Do you have multiple versions of Qt installed? If so, are you using building with the correct version in the project? I'd like to thank you! Your post is precise and it worked perfectly!

It is necessary to pay attention to details! It worked with Qt 4. Thanks a lot! I'm currently downloaded the new Qt 5. I can not find an QtSDK from 5.



0コメント

  • 1000 / 1000