[Marble-devel] Using Marble library with Qt Embedded

Dennis Nienhüser earthwings at gentoo.org
Wed May 23 11:25:47 UTC 2012


I started looking into it yesterday but Qt Embedded wasn't compiling on 
my system due to some known bug where glib and webkit interfere.

I'd suggest trying to move all marble plugins away first (just remove 
them from lib/marble/plugins in the installation directory of marble) 
and see if that changes things. Might be some threading issue, the 
parser plugins working on startup for example run in their own thread each.

Regards,
Dennis

Am 23.05.2012 11:12, schrieb Jeremie Scheer:
> Any idea ?
>
> Is it simply possible to use Marble in a Qt Virtual Framebuffer with 
> Qt Embedded ?
>
> I think it should be, because I found this link on the Internet 
> http://wm161.net/2008/07/26/marble-under-qtembedded-linux/ . A little 
> bit old but it shows that Marble could run under Qt Embedded.
>
> I can't see what is the origin of the bug because I've no QThread or 
> QMutex in my application. It can only come from the compilation of 
> Marble...
>
> My Qt Embedded is configured like this:
>
>     configure -embedded x86_64 -no-cups -no-nis -depths 16,18 -qvfb
>     -prefix /usr/local/Trolltech/QtEmbedded-4.7.2 -glib
>     -confirm-license -qt-sql-sqlite
>
>
> And I configure Marble to build against Qt like this:
>
>     PATH=/usr/local/Trolltech/QtEmbedded-4.7.2/bin:$PATH cmake
>     -DQTONLY=ON ../marble_qvfb/
>
>
> Regards,
>
> Jérémie SCHEER
>
>
> On 05/22/2012 04:13 PM, Jeremie Scheer wrote:
>> Hi,
>>
>> I'm currently trying to use a Marble library built against _Qt 4.7.4 
>> Embedded x86_.
>>
>> My application using Marble is built against the same Qt and is 
>> running in a Qt Virtual Framebuffer with a QWS Server.
>>
>> In the Qt project file, I simply added : /LIBS = -lmarblewidget/ to 
>> link with Marble. And when running the application, I defined the 
>> environment variable /LD_LIBRARY_PATH=/usr/local/lib/ where Marble 
>> libraries are installed.
>>
>> The problem is : when I run the application, before any instruction 
>> can be executed, it crashes on :
>>
>> QMutex::lock: Deadlock detected in thread 0x7f1fe30bb740
>>
>>
>> Here is my application code :
>>
>>     #include <QtGui/QApplication>
>>     #include <marble/MarbleWidget.h>
>>     #include <marble/MarbleModel.h>
>>     #include <marble/global.h>
>>     #include <QWSServer>
>>
>>     using namespace Marble;
>>
>>     int main(int argc, char** argv)
>>     {
>>         QApplication app(argc,argv);
>>         QWSServer *sw =  QWSServer::instance ();
>>
>>         // Create a Marble QWidget without a parent
>>         MarbleWidget *mapWidget = new MarbleWidget();
>>
>>         // Load the OpenStreetMap map
>>        
>>     mapWidget->setMapThemeId("earth/openstreetmap/openstreetmap.dgml");
>>         mapWidget->setProjection(Mercator);
>>
>>         mapWidget->show();
>>
>>         return app.exec();
>>     }
>>
>>
>> If I build the same application (without the QWS Server) and Marble 
>> against Qt x86, it works well.
>>
>> Is there anything I did wrong with Qt Embedded ?
>>
>> Thanks,
>> -- 
>> Jérémie Scheer
>> Software Engineer
>> Tel: +33 (0)9 72 29 41 44
>> Fax: +33 (0)9 72 28 79 26
>> ARMadeus Systems - A new vision of the embedded world
>> http://www.armadeus.com
>>
>>
>> _______________________________________________
>> Marble-devel mailing list
>> Marble-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/marble-devel
>
>
> -- 
> Jérémie Scheer
> Software Engineer
> Tel: +33 (0)9 72 29 41 44
> Fax: +33 (0)9 72 28 79 26
> ARMadeus Systems - A new vision of the embedded world
> http://www.armadeus.com
>
>
> _______________________________________________
> 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/20120523/22d992af/attachment.html>


More information about the Marble-devel mailing list