Multimedial (Talk | contribs) |
Multimedial (Talk | contribs) |
||
| Line 11: | Line 11: | ||
*using the Microsoft Visual C++ compiler (steps below were tested with MSVC++ 2008 Express edition). | *using the Microsoft Visual C++ compiler (steps below were tested with MSVC++ 2008 Express edition). | ||
| − | === Compiling Marble using MingW === | + | === Compiling Marble using MingW === |
#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 [http://www.computerhope.com/issues/ch000549.htm instructions] if needed). To check that cmake.exe, gcc.exe and qmake.exe are in your %PATH% : | #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 [http://www.computerhope.com/issues/ch000549.htm instructions] if needed). To check that cmake.exe, gcc.exe and qmake.exe are in your %PATH% : | ||
| Line 19: | Line 19: | ||
##run "qmake" , it should give you help output | ##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) | ##(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 : <code bash="bash">svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble</code> (Note: this is for the development version. You may want a more stable version. So look for the appropriate url) | #Then check out marble's svn : <code bash="bash">svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeedu/marble</code> (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 : | ||
| Line 28: | Line 28: | ||
##<code bash="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="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="bash">mingw32-make</code> (you can add "-j2" if you have a 2 cores cpu) | ##<code bash="bash">mingw32-make</code> (you can add "-j2" if you have a 2 cores cpu) | ||
| − | ##<code bash="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="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] ) |
#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. | ||
| − | Test it... Yeah! | + | Test it... Yeah! |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
=== Compiling Marble using Microsoft Visual C++ === | === Compiling Marble using Microsoft Visual C++ === | ||
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 (Note: this is for the development version. You may want a more stable version. So look for the appropriate url)
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 for the MingW part, and the Qt SDK 4.6.3 for MSVC.