Windows

Create MySQL driver for Qt5 on Windows

This tutorial explains how to create the MySQL driver for Qt5 on Windows using MinGW. If you are looking for the tutorial to do this with Qt4, click here.

Step 1

Download all the needed software.

  • Qt (libraries and source code)
    This are two separate files! E.g. qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe and qt-everywhere-opensource-src-5.0.1.zip
  • MySQL Community Server (E.g. mysql-5.5.30-win32.msi)
    I didn't use version 5.6 because the .msi only allowed me to install the 64-bit version of the Client C API Library, which apparently gives errors later in the tutorial. So make sure you get the 32-bit verison! If you really want version 5.6, an option might be to download the 32-bit version of the source files and use those. Note that I didn't test this option, so I can't help you with that.

Step 2

Install the downloaded software.

  • Install Qt, the components I
  • ...

E-Sheet launch

This weekend (15-16 September) the ice hockey competitions of the Royal Belgian Ice hockey Federation (RBIHF) start, this is an important moment for the E-Sheet project.

For those who don't know it yet I created the E-Sheet application for the RBIHF. The main purpose of the application is to make the administration of the games easier and faster. The biggest improvement is that the game sheets don't have to be written down and reentered afterwards on the RBIHF website, by using the E-Sheet the data is only entered once and synchronized with the RBIHF servers. Another positive note is that there is less change of cheating; e.g. adding players after the game has started.

In addition to the program I also build a website. The website runs on Drupal 7 and is multilingual there are three languages available; English, Dutch and French. The website consists out of...

Building Poppler on Windows using MinGW

The E-Sheet project needed to be able to create and view PDF's. After looking around, I noticed a lot of people proposed to use Poppler, but to use it I needed to build the libraries. Since there isn't much information out there, I could only base my tries on this tutorial.

Downloads

  • Poppler (I used poppler-0.18.4)
  • Qt4 or the sources if you want to compile Qt as well. I tried them both and both were successful, so it's up to you.
  • MinGW download the installer (e.g. mingw-get-inst-20111118.exe)
  • CMake
  • Freetype
  • ...

Create MySQL driver for Qt on Windows

As you might have seen I'm working on the E-Sheet project of the Royal Belgian Ice Hockey Federation (RBIHF). This project is created with Qt on a Windows system and requires a connection to a MySQL database. Since Qt doesn't deliver the MySQL driver by default, I had to created it myself. You can recognize the problem from the following error: Driver not loaded.

I checked out several tutorials but they were either unsuccessful or extremely slow or even both. The main reason they were unsuccessful is that they aren't compatible with the new Qt versions (4.7.x and up). I listed a few of them below:

  • Qt Documentation
    This one should work, but will take a lot of time, since you have to compile Qt. Another problem was that while configuring Qt the following error occurred: Perl not found
  • ...