Compiling on Windows

Mike's cross-platform FreeEMS tuning application, written in C++ using QT. With Mike's natural coding talent and Fred's intimate requirement knowledge it went from concept to full tuning capability in just 8 weeks!
Post Reply
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

Compiling on Windows

Post by malcom2073 »

Fred requested that I post up a process for getting EMS compiling on windows, here it is:

Three prerequisite applications:
MinGW 4.8.2: http://download.qt-project.org/developm ... v3-rev3.7z
Qt 4.8.6-mingw: http://download.qt-project.org/official ... .8.6-1.exe
Cmake for windows: http://www.cmake.org/

You will need to add Qt, cmake, and mingw bin directories to your PATH system variable.
After these are installed, get the latest copy of qjson: http://qjson.sourceforge.net/ and use cmake to compile it. Compiling it is done in a similar way to Linux from a command line, mkdir build; cd build; cmake ..; make. This should auto-detect mingw and qt versions, and build qjson for you.
Once qjson is finished, it needs to be installed in c:\libs\qjson. This means you will have c:\libs\qjson\libs\*.dll and c:\libs\qjson\include\qjson\*.h. This is where EMS looks for it.

Get a copy of EMStudio (http://github.com/malcom2073/emstune.git), from the command line where you extracted the tar (or the directory you cloned into) run qmake (from your qt installation), make, and then you should be good to go!


A word about this, this is NOT the process I use. I use a cross compiling process that I am not willing to detail out due to the amount of time and effort required to get such a system up and running. There's really no advantage to cross compiling other than not requiring more than one machine for a build server. In todays virtualized world, that is mostly a non issue.

If anyone wants to give this a shot and see if I missed anything, it would be appreciated. This same process is good if you want to develop on EMStudio, just install QtCreator from qt's main website and point it at the top level EMStudio emstune.pro file.
Post Reply