-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up development environment in Windows
This article describes how to develop tiled in Windows. If you are interested in using tiled, checkout a precompiled setup at http://www.mapeditor.org In this article is described,
- How to get the sources of tiled
- How to get tiled compiled running Windows
In case you just want to look at the sources or have a local copy of the sources visit https://github.com/bjorn/tiled and click the 'Download' button to download as a zip file.
In case you want to make bugfixes or develop on features it is recommended to use the version control system ''git''
So first you will need to install a tool to access git on Windows. The package ''mysysgit'' is recommended for use on Windows. It can be downloaded here http://code.google.com/p/msysgit/downloads/list
Once you have installed that package successfully, you can continue reading at [Contributing to Tiled], since the mysysgit package is capable of running all the same commands as in native linux/unix. (In case of questions according the right setup, get in [contact] with us)
Tiled is based on Qt, which is a widespread framework for developing graphical user interfaces. The Qt SDK framework can be downloaded here http://qt.nokia.com/downloads
Another dependency for tiled is zlib, which is used to compress the saved files. The needed packages can be downloaded here http://ovh.dl.sourceforge.net/project/mingw/MinGW/zlib/zlib-1.2.5-1/
You will need to download the ''-dev'' and and ''-dll'' package there.
Once you have extracted the files (If you have problems extracting the .tar.lzma files, look at http://www.7-zip.org/), you will need to copy these files to the location, where the Qt SDK was installed to.
After extracting the files you will have a folder structure with ''include'' and ''lib'' in the ''-dev'' package or ''bin'' in the ''-dll'' package.
Copy these folders over to the mingw directory of the Qt SDK installation (default should be C:\QtSDK\mingw)
Now you should be done, check if you can compile tiled now either by opening QtCreator, which comes with with the Qt SDK, or in the mysysgit command prompt.
This image shows typical compile errors within QtCreator, when zlib was not istalled correctly: