[Marble-devel] HOWTO (in progress) - build a libmarble application on windows with Qt Creator, MinGW, CMake
Sylvain Paré
sylvain.pare at gmail.com
Mon May 17 16:51:27 CEST 2010
Hello everyone,
Some news :
First, build Marble:
- don't need any more to copy C:\Qt\2010.02.1\mingw to C:\mingw because
of adding mingw's path in the environment variables
- you can install marble also with Qt Command Prompt with
D:\marbleSVN\marble-build>mingw32-make install
Remaining issues :
no openstreetmap download! =>big blue marble => *How to fix it ?*
Then, level 2 : build an application using marble widget
I have that kind of project developed under linux for now so I have to
adapted my .pro to fits windows' paths like this:
win32 {
INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble)
LIBS += D:/marbleSVN/marble-build/src/lib/libmarblewidget.dll.a
}
unix {
LIBS += -L/usr/local/lib \
-lmarblewidget
}
then import my project into Qt creator and build it.
But When I try to execute i have "Program exited with code 03"
and a popup windows entitled "Microsoft Visual C++ Runtime Library"
"runtime error
Program: D:\mysoft\bin\mysoft.exe
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information"
so I still don't know what is wrong.. why MS VC++??
I am trying to do it all out of Qt creator to see if it is because of it but
I did an svn up and now* I can't build..*
=> http://pastebin.com/eJ6EJBib <http://pastebin.com/nQ7cQWXt>
So plz fix it :)
CU for the next step
Sylvain
2010/5/12 Christophe Leske <info at multimedial.de>
> Am 11.05.2010 18:22, schrieb Sylvain Paré:
>
> Hi Simon,
> Thank you for your help!
> It point me out that I did a mistake when adding mingw and qmake in my
> %PATH.
> So I succeed to build my makefile in Qt Create with cmake just after having
> my paths well defined.
>
>
> Hello Sylvain,
>
> thank you very much for this interesting HowTo.
>
> I have had some help by Patrick Spendrin in the past, trying to get the
> marble widget working in QTCreator, and we came as far as you did (sorry,
> but I couldn't post or recall the steps for it, we fiddled with it for a
> couple of hours to get it that far just to notice then that QtCreator is
> apparently built with the VC++ compiler and not MingW, which makes the lib
> incompatible if i remember well). Anyway, we never got the widget lib to
> work in QtCreator, so I am still very interested in that.
>
> I would also like to learn more about the build system and the project
> structure in general, and got myself another book on Qt yesterday. This
> said, i am a freelance developer and therefore don't have that much time to
> experiment. Is there a good primer or tutorial on how marble is structured
> or how to get a head start on the source code or project in general?
>
> Thanks again,
>
> --
> Christophe Leske
> www.multimedial.de - info at multimedial.dehttp://www.linkedin.com/in/multimedial
> Vogteistrasse 19 - 51647 Gummersbach
> +49(0)177 249 70 31
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100517/394be55e/attachment.htm
More information about the Marble-devel
mailing list