[Marble-devel] HOWTO (in progress) - build a libmarble application on windows with Qt Creator, MinGW, CMake

Sylvain Paré sylvain.pare at gmail.com
Fri May 21 17:48:44 CEST 2010


Yeah!!
I works!
Enfin... not completly..
I mean I succeed to build and launch my libmarblewidget dependent
application without error/crash (at least not depending on marble :) )!!
So here the trick : "mingw32-make *release*" !
the release build does not return error when we launch it!

But!

The marble widget in my app is just a black rectangle where right and left
clicks work as usual ( contextual menu etc)
Like with the standalone marble application => NO map! instead of being blue
it is black...
I think it is normal as it does not work in marble itself.
So again : ANYONE having a clue??

One other thing :
marble's widget do not show in Qt designer while the make install stage did
copy
libMarbleWidgetPlugin.dll,  libMarbleNavigatorPlugin.dll and
libLatLonEditPlugin.dll
in C:\Qt\2010.02.1\qt\plugins\designer.
(I added this path in Qtdesign even if it is a bit dumb but widgets still
missing)
I don't know why..
So for the Qt creator integration it is not stil here.

Anyway step two, building a libmarblewidget application passed!
Here is the way (i will not put it on the techbase untill I don't see
openstreetmap map in my app):
modify your .pro to fits windows' paths like this:
win32 {
    INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble)
    LIBS += $$quote(C:/Program Files/marble/libmarblewidget.dll)
}
unix {
    LIBS += -L/usr/local/lib \
    -lmarblewidget
}
run "qmake"
run "mingw32-make *release*"
It should be trivial in Qtcreator to build too.

After that the next step is the integration in Qt creator/designer (perhaps
some Qt/Nokia guys are hanging here..)

So now I am waiting from people for some help with those remaining issues.

CU

Sylvain


2010/5/21 Sylvain Paré <sylvain.pare at gmail.com>

> Nope! You are realy in rush :p
> it is only the first step : building marble on windows.just this.
>
> 2010/5/21 Christophe Leske <info at multimedial.de>
>
> Am 21.05.2010 12:23, schrieb Sylvain Paré:
>> > Hi.
>> >
>> > As there is actually no more issue for building marble on windows I
>> > just wrote on howto on the wiki/techbase :
>> > http://techbase.kde.org/Projects/Marble/WindowsCompiling
>> > Simon I took some of your hints.
>> > If anyone has something to say.. let's talk!
>> Hi,
>>
>> i am most interested in this and test it over the weekend.
>> I am currently in a hurry, but does that mean that one can now build
>> applications in QTCreator using the marble-Lib?
>>
>> That would be great,
>>
>> merci bien,
>>
>> Christophe Leske
>> multimedial.de
>>
>> PROFILE: www.linkedin.com/in/multimedial
>> ----------------------------------------
>> www.multimedial.de - info at multimedial.de
>> Vogteistrasse 19 - 51647 Gummersbach
>> +49(0)180102-06600296//+49(0)177-2497031
>> ----------------------------------------
>>
>> _______________________________________________
>> Marble-devel mailing list
>> Marble-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/marble-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/marble-devel/attachments/20100521/5574358d/attachment.htm 


More information about the Marble-devel mailing list