Projects/Marble/WindowsCompiling

This page present only how to build Marble on windows. Here is an other howto about using libmarblewidget in a application built for windows. You should also have already how to too.

Marble project uses CMake to manage the building process depending of your needs : operating system, build options.. So, first of all, you need to download the latest CMake binary for windows. Install it and don't forget during the installation to check "define cmake path in environment variables" or something like that.

Marble is a Qt dependent application ("No way!?" "Way!!" :) ) so you also need Qt. Download the latest Qt sdk for windows and install it.

You have to add mingw's path and qmake's path in the environment variable. (use C:\Qt\20xx.xx.x\MinGW\bin and C:\Qt\20xx.xx.x\qt\bin )(follow those instructions if needed). To check that cmake.exe, gcc.exe and qmake.exe are in your %PATH% :

open a commandline-window (start->run program->cmd)

run "cmake" , it should give you a help message and show you what compilation options it found

run "gcc -v" , it should give you version info

run "qmake" , it should give you help output

(Hint: make sure not to add the directory %QT-installation-dir%/bin but rather %QT-installation-dir%/qt/bin, there are for some reason incompatible dll's that might lead to crashes)

cmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release .. (add -DWITH_DESIGNER_PLUGIN=ON if you want the MarbleWidget Plugin )(note that the "-DCMAKE_BUILD_TYPE=Release" is important because without it you will have trouble like no downloading tiles etc)

mingw32-make (you can add "-j2" if you have a 2 cores cpu)

mingw32-make install (Note: if you are under Windows seven you must be root to install marble in the standard place. See this )

Now if all went well you should find marble.exe in Program Files>marble> directory.