Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8480557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:19:35+00:00 2026-06-10T19:19:35+00:00

I am having real problem with compiling MySQL libraries for Qt in Windows and

  • 0

I am having real problem with compiling MySQL libraries for Qt in Windows and Mac. Essentially, I cannot use mysql with a Qt application because of missing the file QMYSQL. I am pretty much new when it comes to configure and install applications in Unix-like systems. However, building libraries for Qt looks like this. I have read a little bit about GNU C and GNU Make to understand what is done but it is still overwhelming me.

The guide in Qt Project says I should have folder include and lib/opt in which I should have libmysql.lib file. There’s no such folder like opt/ but there is the file libmysql.lib and libmysql.dll in /lib folder. Qt Project website does not say that but I have copied everything to C:/QtSDK/QtSources/4.8.1/src/plugins/sqldriver/mysql where I also found mysql.pro. I run this command:

qmake "INCLUDEPATHS+=include" "LIB+=libmysql.lib" mysql.pro

and the program generated a Makefile for me. When I run “make”, or “make release” etc. make stops always at the same point and states there is no “mysql.lib” file. I cannot find this file anywhere.

Does anybody has any idea how to do it? Please, at least direct me where I could start looking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:19:37+00:00Added an answer on June 10, 2026 at 7:19 pm

    The following has worked for me: Unfortunately, I had to install the whole Qt(v 4.8.2) from sources. I strongly recommend it. It has a huge impact on your experience, although it may sometimes be a real pain.

    I have:

    • installed the latest MinGW 4.7.0 using self-intaller + additional tools
    • installed the latest MySQL Database engine + Connector/C via intaller MSI (ZIP archive did not worked) in a folder without spaces in its name (C:\Mysql-libs\ etc.)
    • built makefile by calling configure with following parameters:

      configure -debug-and-release -opensource -shared -platform win32-g++-4.6 -plugin-sql-mysql -I C:\ApacheMysqlPhp\Mysql\include -L C:\ApacheMysqlPhp\Mysql\lib -L C:\ApacheMysqlPhp\Mysql\lib\opt -plugin-sql-odbc -developer-build -no-qt3support -openssl -I C:\openssl\OpenSSL-Win32\include -L C:\openssl\OpenSSL-Win32

    • and finally

      mingw32-make.exe

    Special attention should be on
    -platform win32-g++4.6
    if MinGW 4.6.x+ is used. It did not seem to work when I used
    -platform win32-g++ etc. I hope it will help the others to build MySql libraries for Qt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a real problem with this because I just can't get my head
We're having a real problem with people checking in code that doesn't work because
Hi guys i've never written a comparator b4 and im having a real problem.
I'm having a real strange problem using GCC for ARM with the optimizations turned
(EDIT: I have asked the wrong question. The real problem I'm having is over
I'm having a real problem tracking down why i'm getting the error $(#checkIn).datepicker is
Since long time i been having a real problem with the different ways that
I'm having real headaches trying to work out a problem I have at the
I'm having real problems posting to a webservice, and it seems that the problem
I'm having a real problem with retrieving the value of a radio button using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.