Hi Simon,<br>Thank you for your help!<br>It point me out that I did a mistake when adding mingw and qmake in my %PATH.<br>So I succeed to build my makefile in Qt Create with cmake just after having my paths well defined.<br>
<br>So I style don't know how to indicate to cmake the path of mingw , qo my dirt copy of qt's mingw is still in place but<br>if I sum up stages to build marble with Qt creator:<br>(refert to my previous mail to details informations, and I wtil will make a propore howto at the end)<br>
<ul><li>installation of Qt</li><li>installation of CMake</li><li>add mingw's path and qmake's path in the <span><span style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" title="">environment variable</span></span></li>
<li>svn co marble; create 'marble-build' dir</li><li>as explained <a href="http://doc.qt.nokia.com/qtcreator-1.1/creator-cmake-support.html" target="_blank">here</a> import the marble\CMakeLists.txt passing
"-DQTONLY=ON ../" argument</li><li>cmake terminate normally</li><li>then build it</li><li>and try to execute => libmarblewidget.dll is missing..</li></ul>I do not have time today to test it further but I made a dirt copy/past of libmarblewidget.dll near marble.exe and then marble could launch but no map.<br>
<br>FYI -DQTONLY=on is needed :<br>ERROR: Could not find KDE4 kde4-config<br>Call Stack (most recent call first):<br>CMakeLists.txt:25 (find_package)<br>-- Configuring incomplete, errors occurred!<br><br>Cu tomorrow for the next update.<br>
<br>Sylvain<br><br>ps: I did it in the console: cmake -G "MinGW Makefiles" -DQTONLY=on .. ;mingw32-make; mingw32-make install. And then marble was properly launchable with map ( except openstreetmap which staid blue, no dl) . So in Qt creator it just miss an install stage.<br>
<br><br><br><div class="gmail_quote">2010/5/11 Simon Schmeißer <span dir="ltr"><<a href="mailto:mail_to_wrt@gmx.de" target="_blank">mail_to_wrt@gmx.de</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 Sylvain,<br>
<br>
Am Montag, 10. Mai 2010 19:37:41 schrieb Sylvain Paré:<br>
<div>> Hello every one,<br>
><br>
> As I told it some times ago I am trying to build my application using<br>
> libmarble on windows(xp) with Qt Creator.<br>
> I will post here all the whole process and problems encountered gradually.<br>
> You are welcome to help me to solves those issues if you have answers! :)<br>
><br>
> At last when the work-through will be found, I will sum it up here as a<br>
> proposal for an HOWTO on the KDE Techbase.<br>
><br>
</div>cool<br>
<div><br>
> So here is the beginning until the first blocking point :<br>
><br>
> First build Marble:<br>
><br>
> - installation of Qt sdk<br>
</div>> 2010.02.1<<a href="http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.02.1.exe" target="_blank">http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.02.1.exe</a><br>
<div>> >(Qt Creator 1.3.1 Qt 4.6.2 MinGW 3.15 GCC4.4.0)<br>
> - installation CMAKE<br>
</div>> 2.8.1<<a href="http://www.cmake.org/files/v2.8/cmake-2.8.1-win32-x86.exe" target="_blank">http://www.cmake.org/files/v2.8/cmake-2.8.1-win32-x86.exe</a>>,<br>
<div>> during the installation check the box " Add CMake to the system"<br>
> - following this <a href="http://edu.kde.org/marble/obtain.php" target="_blank">http://edu.kde.org/marble/obtain.php</a> => svn co marble;<br>
> create 'marble-build' dir in the new checked out folder<br>
> - as explained<br>
</div>> here<<a href="http://doc.qt.nokia.com/qtcreator-1.1/creator-cmake-support.html" target="_blank">http://doc.qt.nokia.com/qtcreator-1.1/creator-cmake-support.html</a>>impor<br>
<div><div></div><div>> t the marble\CMakeLists.txt passing "-DQTONLY=ON ../" argument<br>
> - you obtain this message error :<br>
><br>
> CMake Error: CMake was unable to find a build program corresponding to<br>
> "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to<br>
> select a different build tool.<br>
> CMake Error: CMake was unable to find a build program corresponding to<br>
> "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to<br>
> select a different build tool.<br>
> CMake Error: Error required internal CMake variable not set, cmake may be<br>
> not be built correctly.<br>
> Missing variable is:<br>
> CMAKE_C_COMPILER_ENV_VAR<br>
> CMake Error: Error required internal CMake variable not set, cmake may be<br>
> not be built correctly.<br>
> Missing variable is:<br>
> CMAKE_C_COMPILER<br>
> CMake Error: Could not find cmake module<br>
> file:D:/marbleSVN/marble-build/CMakeFiles/CMakeCCompiler.cmake<br>
> CMake Error: Error required internal CMake variable not set, cmake may be<br>
> not be built correctly.<br>
> Missing variable is:<br>
> CMAKE_CXX_COMPILER_ENV_VAR<br>
> CMake Error: Error required internal CMake variable not set, cmake may be<br>
> not be built correctly.<br>
> Missing variable is:<br>
> CMAKE_CXX_COMPILER<br>
> CMake Error: Could not find cmake module<br>
> file:D:/marbleSVN/marble-build/CMakeFiles/CMakeCXXCompiler.cmake<br>
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<br>
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<br>
> -- Configuring incomplete, errors occurred!<br>
><br>
> - I haven't found yet how to solve this (i.e indicate to CMake the path<br>
> of MinGW, I set an environment variable but it did not fix this.. if you<br>
> have the answer.) properly so I just copy/paste C:\Qt\2010.02.1\mingw<br>
> to C:\mingw<br>
> - now when you retry to import your cmake project in Qt Creator you have<br>
> this error :<br>
><br>
> -- The C compiler identification is unknown<br>
><br>
> -- The CXX compiler identification is unknown<br>
><br>
> -- Check for working C compiler: C:/mingw/bin/gcc.exe<br>
><br>
> -- Check for working C compiler: C:/mingw/bin/gcc.exe -- broken<br>
><br>
> CMake Error at C:/Program Files/CMake<br>
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):<br>
><br>
> The C compiler "C:/mingw/bin/gcc.exe" is not able to compile a simple<br>
> testprogram.<br>
><br>
> It fails with the following output: Change Dir:<br>
> D:/marbleSVN/marble-build/CMakeFiles/CMakeTmp<br>
><br>
><br>
> Run Build Command:C:/mingw/bin/mingw32-make.exe "cmTryCompileExec/fast"<br>
><br>
> C:/mingw/bin/mingw32-make.exe -f CMakeFiles\cmTryCompileExec.dir\build.make<br>
><br>
> CMakeFiles/cmTryCompileExec.dir/build<br>
><br>
> mingw32-make.exe[1]: Entering directory<br>
><br>
> `D:/marbleSVN/marble-build/CMakeFiles/CMakeTmp'<br>
><br>
> "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report<br>
><br>
> D:\marbleSVN\marble-build\CMakeFiles\CMakeTmp\CMakeFiles 1<br>
><br>
> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj<br>
><br>
> C:\mingw\bin\gcc.exe -o CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj<br>
><br>
> -c D:\marbleSVN\marble-build\CMakeFiles\CMakeTmp\testCCompiler.c<br>
><br>
> mingw32-make.exe[1]: ***<br>
><br>
> [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] Error 1<br>
><br>
> mingw32-make.exe[1]: Leaving directory<br>
><br>
> `D:/marbleSVN/marble-build/CMakeFiles/CMakeTmp'<br>
><br>
> mingw32-make.exe: *** [cmTryCompileExec/fast] Error 2<br>
><br>
><br>
> CMake will not be able to correctly generate this project.<br>
><br>
> Call Stack (most recent call first):<br>
><br>
> CMakeLists.txt:1 (project)<br>
><br>
> -- Configuring incomplete, errors occurred!<br>
><br>
><br>
> So here where I am!<br>
><br>
> If any one can help...<br>
<br>
</div></div>I'll try to do so ...<br>
<br>
1. check that cmake.exe and gcc.exe are in your %PATH%<br>
- open a commandline-window (start->run programm->cmd)<br>
- run "cmake" - it should give you a help message and show you what<br>
compilation options it found<br>
- run "gcc -v" it should give you version info<br>
- run "qmake" it should give you help output<br>
<br>
if any of those doesn't work you need to add the relevant path to the system<br>
variable:<br>
<a href="http://www.computerhope.com/issues/ch000549.htm" target="_blank">http://www.computerhope.com/issues/ch000549.htm</a><br>
<br>
(Hint: make sure not to add the directory %QT-installation-dir%/bin but rather<br>
%QT-installation-dir%/qt/bin, there are for some reason incompatible dll's<br>
that might lead to crashes)<br>
<br>
2. now you can compile marble<br>
open the cmd-window<br>
cd to the marble dir<br>
create a build directory (mkdir build)<br>
cd build<br>
cmake -G "MinGW Makefiles" ..<br>
(I don't think you need to pass the -DQTONLY=on as it will build qtonly by<br>
default if no kde-libraries are found)<br>
<br>
3. check that marble runs<br>
<br>
4. find out what you need to do if you want to integrate it into Qt Creator<br>
<br>
however I would not try to load marble in qt-creator but rather only use<br>
marble as a static library (.a) that is linked into or as a dynamic library<br>
(.a +.dll) and use Qt Creator only for your custoum code, this might save you<br>
some troubles?<br>
<div>><br>
> I will continue to search a solution tomorrow<br>
><br>
</div>good luck<br>
> CU<br>
><br>
> Sylvain (aka GarthPS)<br>
><br>
cu<br>
Simon<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>
</blockquote></div><br>