Workout on Windows

Over the last couple of days I've been experimenting with getting Workout to work on Windows. With the help of some tricks borrowed from the Marble and Quassel teams (and even, *blush*, lifting a few lines of code from the Quassel sources), I got it to work.

It's not 100% done (configuration does not yet work and neither does hardware discovery, which will require some extra effort on Windows due to the absence of Solid), but it's running and mostly working:

Note that this is a Qt-only version. I did try building it with the KDE-on-Windows project and even had an app that started, but in the end decided to make a "pure" Qt version, mainly for packaging and distribution reasons.

Of course a KDE-on-Windows-version is still possible to make: The KDE version (be it on Linux or somewhere else) is not being negatively affected by this at all.

1 Comments

glad says:

Don't blush when lifting code from others, that is why the source is open, so we can learn from others and don't have to reimplement stuff that is already implemented.

When I wanted to make ktikz work on Windows I happily inspected the code of qmp3gain (http://sourceforge.net/projects/qmp3gain/), they also have an NSIS script which allows to create a Windows installer. Now ktikz has also the necessary qmake and NSIS code in svn to make the Qt-only version work and installable under Windows (svn co svn://hackenberger.at/svnroot/ktikz/trunk ktikz). You can also have a look at the code of Texmaker (http://www.xm1math.net/texmaker/) but beware: the c++ code is quite ugly.

Is Solid installed with "KDE on Windows"? If yes, then you can do like I did with poppler, namely copy the Solid dlls to the correct place and then compile everything (see INSTALL.Windows and app/app.pro in the ktikz svn for a detailed description of how I did it for poppler (BTW I know that my way of getting poppler is ugly, but I could not find any (yes: any) other way)).