Multimedial (Talk | contribs) |
Neverendingo (Talk | contribs) m (Text replace - "<code bash=" to "<syntaxhighlight lang=") |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{improve|This page does not reflect Marble's move from svn to git.}} | ||
| + | |||
This page present only how to build Marble on windows. [[Projects/Marble/MarbleWindows|Here]] is an other howto about using libmarblewidget in a application built for windows. You should also have already read [http://edu.kde.org/marble/obtain.php this] too. | This page present only how to build Marble on windows. [[Projects/Marble/MarbleWindows|Here]] is an other howto about using libmarblewidget in a application built for windows. You should also have already read [http://edu.kde.org/marble/obtain.php this] too. | ||
| Line 20: | Line 22: | ||
##(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) | ##(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) | ||
##If one of those command are not known then something is wrong. | ##If one of those command are not known then something is wrong. | ||
| − | #Then check out marble's svn : < | + | #Then check out marble's svn : <syntaxhighlight lang="bash">svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble</syntaxhighlight> (Note: this is for the development version. You may want a more stable version. So look for the appropriate url) |
#now you can compile marble : | #now you can compile marble : | ||
##open the cmd-window | ##open the cmd-window | ||
##cd to the marble dir | ##cd to the marble dir | ||
##create a build directory (mkdir build) | ##create a build directory (mkdir build) | ||
| − | ##< | + | ##<syntaxhighlight lang="bash">cd build</syntaxhighlight> |
| − | ##< | + | ##<syntaxhighlight lang="bash">cmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release ..</syntaxhighlight> (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) |
| − | ##< | + | ##<syntaxhighlight lang="bash">mingw32-make</syntaxhighlight> (you can add "-j2" if you have a 2 cores cpu) |
| − | ##< | + | ##<syntaxhighlight lang="bash">mingw32-make install</syntaxhighlight> (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] ) |
#Now if all went well you should find marble.exe in Program Files>marble> directory. | #Now if all went well you should find marble.exe in Program Files>marble> directory. | ||
| This section needs improvements: Please help us to
cleanup confusing sections and fix sections which contain a todo This page does not reflect Marble's move from svn to git. |
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 read this too.
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble
cd buildcmake -G "MinGW Makefiles" -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release ..
mingw32-make
mingw32-make installTest 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 for the MingW part, and the Qt SDK 4.6.3 for MSVC.