robvdl/MapEditor — Issue #1: Get the project working on Windows
Author: robvdl
Created: 2011-12-27 09:06:03+00:00
State: open

At the moment I am not in a big rush to get the project compiling on Windows, but it would be nice in the long term. There are some problems to deal with when getting the project working on Windows:

* The icons loaded using QtIconLoader and freedesktop.org icon naming will not work on Windows, we are going to have to store icons for Windows in the .qrc resource file as a fallback. For consistency with the Linux version we may want to use the Oxygen icons from KDE for this.
* The project base path (where projects are saved to) on Linux is /home/username/MapEditor, however this is not good for Windows, as this will end up being C:\Users\username\MapEditor. It would be much better to have a folder MapEditor under the "My Documents" folder instead, but we probably need to compile against Windows headers to get the location of this folder. Any Windows only code should be in Q_WS_WIN macro blocks so it isn't compiled on other operating systems, this macro is provided by Qt.
* We are going to have to figure out how to compile leveldb and snappy on Windows. I know there is a Windows port of leveldb, but we may not actually need it anymore if leveldb compiles straight on Windows, this will need some research.