Plus I hope Christophe you have a techbase's wiki account now :)<br>and that you kept your suggestions for my pages.<br>++<br><br><div class="gmail_quote">2010/7/1 Sylvain Paré <span dir="ltr"><<a href="mailto:sylvain.pare@gmail.com">sylvain.pare@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Christophe!<br><br>good job ! :)<br><br>For me I finished my work.. hum despite some independantes issues like <br>
can't see marble widget in the embdedded (in qtcreator) version of qt designer => tried all I could so the solution was not from my side<br>
can't build a mingw debug marble version because of qt's debug lib build some where with/for MSVC , again not can't do anything.<br><br>Why do you say that perhaps now it is possible to build the debug version ?<br>
<br>(I work the night this week so I am not very fresh...)<br><br>CU<br><br>Sylvain<br><br><br><br><div class="gmail_quote">2010/7/1 Torsten Rahn <span dir="ltr"><<a href="mailto:tackat@t-online.de" target="_blank">tackat@t-online.de</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi Christophe,<br>
<br>
Could you add this information to<br>
<br>
<a href="http://techbase.kde.org/Projects/Marble/WindowsCompiling" target="_blank">http://techbase.kde.org/Projects/Marble/WindowsCompiling</a><br>
<br>
I'd really like Marble one Windows to be a first citizen.<br>
I think we can only accomplish this if documentation for compiling it becomes<br>
good. :-)<br>
<br>
Best Regards,<br>
<font color="#888888">Torsten<br>
</font><div><div></div><div><br>
On Thursday 01 July 2010 11:46:20 you wrote:<br>
> Hi there,<br>
><br>
> I thought i'd dump some thoughts here about compiling Marble on Windows<br>
> (depsite the techpages put up on the marble website).<br>
><br>
> I'd appreciate any hints or corrections. Also, feel free to add these<br>
> informations to the site if there is any interest.<br>
><br>
> Marble can be compiled using two different compilers, either MingW or<br>
> Microsoft Visual C++ (MSVC).<br>
><br>
> The Windows version distributed on the KDE website is compiled using the<br>
> MSVC compiler. For it to work, you'll also need the MSVC compiled<br>
> version of QT (available at<br>
> <a href="http://qt.nokia.com/downloads/windows-cpp-vs2008" target="_blank">http://qt.nokia.com/downloads/windows-cpp-vs2008</a>).<br>
><br>
> These are precompiled binaries of the QT Framework, done with MSVC.<br>
><br>
> Once you got these installed, make sure that you add the bin Path of the<br>
> framework to your PATH variable. E.g. "C:\Qt\4.6.3\bin". This will point<br>
> the system to the DLLs of the framework eventually needed by any Qt<br>
> application.<br>
><br>
> Now, once you pulled the sources from SVN into a fresh directory, you<br>
> can open a command line window (with administrator privileges - on Vista<br>
> and Windows 7, you need to hold down SHIFT and Control when executing<br>
> "CMD.exe" from the start button menu). You need to make sure that you<br>
> got those privileges, otherwise the build will fail due to missing<br>
> rights to write files later on during linking and installing.<br>
><br>
><br>
> Make sure to set the environment variables for the MS Visual C++<br>
> compiler by doing "vcvarsall.bat" in the tool subdirectory of your<br>
> Microsoft Visual C++ installation.<br>
><br>
> Example:<br>
><br>
> C:\>cd "\Program Files\Microsoft Visual Studio 9.0\VC"<br>
><br>
> C:\Program Files\Microsoft Visual Studio 9.0\VC>vcvarsall<br>
> Setting environment for using Microsoft Visual Studio 2008 x86 tools.<br>
><br>
> Then you can issue the build commands (thanks to Patrick Spendrin for<br>
> that):<br>
><br>
> cmake -G "NMake Makefiles" -DQTONLY=ON<br>
> -DCMAKE_INSTALL_PREFIX=C:\marble-tmp && nmake && nmake install<br>
><br>
> Additionally, if you would like to optimize things a bit, you can also<br>
> add compiler options like<br>
><br>
> cmake -G "NMake Makefiles" -DQTONLY=ON -DCMAKE_INSTALL_PREFIX=C:\Temp<br>
> -DCMAKE_CXX_FLAGS="/O2 /GL /arch:SSE2" -DCMAKE_BUILD_TYPE=Release &&<br>
> nmake && nmake install<br>
><br>
> /02 is an option for optimizing for speed<br>
> /GL is "overall program optimization" and<br>
> /arch:SSE2 optimizes for SSE2 commands<br>
><br>
> type "cl -h" for more available options on the MSVC compiler.<br>
><br>
> Once issued, you will get the build kicked off. First, the cmake<br>
> cross-compiler will make the MakeFile, and Nmake will then compile it,<br>
> while nmake install will install the application at the path specified<br>
> at CMAKE_IMSTALL_PATH Prefix.<br>
><br>
> Once marble "installed", you need to manually copy the missing Qt<br>
> Framework DLLs as well as the missing imageformat DLL for importing tiles.<br>
><br>
> The following DLLs go from the Qt/bin directory right next to the<br>
> marble.exe file in the installation directory:<br>
><br>
> QtCore4.dll<br>
> QtGui4.dll<br>
> QtNetwork4.dll<br>
> QtSvg4.dll<br>
> QtWebKit4.dll<br>
> QtXml4.dll<br>
><br>
> Additionally, you need to create a directory in the "plugins" folder<br>
> named "imageformats". This is the plugin for different image formats. In<br>
> Marble 0.8.0, there was just one DLL in there, namely "qjpeg4.dll",<br>
> which is the support for JPEG file tiles in Marble.<br>
><br>
> [NOTE: what about PNG support? Would that be "qmng4.dll" to be added?]<br>
><br>
> The "qjpeg4.dll" is not build yet after downloading and installing the<br>
> MSVC version of the Qt Framework, yet you will find a MS VC Project file<br>
> in your Qt source directory (e.g.<br>
> "C:\Qt\4.6.3\src\plugins\imageformats\imageformats.dsw"). Open that up,<br>
> set the release configuration in the compiler and compile the project.<br>
><br>
> Note that the output files will be found in another place! Namely in the<br>
> plugins folder of Qt (e.g. "C:\Qt\4.6.3\plugins\imageformats")<br>
><br>
> From there, you can copy the qjpeg4.dll needed, and you should be all<br>
> set - you now got a fresh Marble version compiled, eventually even with<br>
> optimizations!<br>
><br>
><br>
> Sylvain, maybe it is now possible to build debug versions of the<br>
> libmarble widget as you intended to? CMAKE accepts Debug builds, and<br>
> putting up the Debug-Version of the Qt-DLLs should eventually do the<br>
> trick for you.<br>
><br>
> If you care about explaining me what you were after (forgot about it,<br>
> sorry), I may be able to help you out (this time) :-)<br>
><br>
><br>
> Greets,<br>
><br>
> Christophe Leske<br>
> <a href="http://multimedial.de" target="_blank">multimedial.de</a><br>
><br>
> PROFILE: <a href="http://www.linkedin.com/in/multimedial" target="_blank">www.linkedin.com/in/multimedial</a><br>
> ----------------------------------------<br>
> <a href="http://www.multimedial.de" target="_blank">www.multimedial.de</a> - <a href="mailto:info@multimedial.de" target="_blank">info@multimedial.de</a><br>
> Vogteistrasse 19 - 51647 Gummersbach<br>
> ++ 49 (0) 22 61 - 30 21 59-0<br>
> ----------------------------------------<br>
><br>
> _______________________________________________<br>
> Marble-devel mailing list<br>
> <a href="mailto:Marble-devel@kde.org" target="_blank">Marble-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org" target="_blank">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>