(some explanation) |
|||
| Line 16: | Line 16: | ||
##create a build directory (mkdir build) | ##create a build directory (mkdir build) | ||
##<code bash>cd build</code> | ##<code bash>cd build</code> | ||
| − | ##<code bash>cmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release ..</code> (add -DWITH_DESIGNER_PLUGIN=ON if you want the MarbleWidget Plugin ) | + | ##<code bash>cmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release ..</code> (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) |
##<code bash>mingw32-make</code> (you can add "-j2" if you have a 2 cores cpu) | ##<code bash>mingw32-make</code> (you can add "-j2" if you have a 2 cores cpu) | ||
##<code bash>mingw32-make install</code> (Note: if you are under Windows seven you must be root to install marble in the standard place. See [http://www.howtogeek.com/howto/windows-vista/run-a-command-as-administrator-from-the-windows-vista-run-box/ this] ) | ##<code bash>mingw32-make install</code> (Note: if you are under Windows seven you must be root to install marble in the standard place. See [http://www.howtogeek.com/howto/windows-vista/run-a-command-as-administrator-from-the-windows-vista-run-box/ this] ) | ||
This page present only how to build Marble on windows. There will be an other howto about using libmarblewidget in a application build for windows.
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble
cd build
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 )
Test it... Yeah!
Tested with CMake 2.8.1, Qt sdk 2010.02.1 ( Qt 4.6.2 ; Qt Creator 1.3.1 ; MinGW 3.15 ; GCC4.4.0 ) and rev. 1128605 of marble