This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Trouble with examples build

Tags: None
(comma "," separated)
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 5:50 am
As you can see follow, all binaryes use Qt5 libraries. But, when I run it with gdb, something call /usr/lib/x86_64-linux-gnu/libQtGui.so.4

ldd /home/user/build-untitledM1-Desktop-Debug/untitledM1 | grep marble
libmarblewidget.so.18 => /usr/local/lib/libmarblewidget.so.18 (0x00007ff07d6eb000)


readelf -d /usr/local/lib/libmarblewidget.so
Dynamic section at offset 0x6ee610 contains 45 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libastro.so.1]
0x0000000000000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Xml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Widgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKitWidgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Svg.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Script.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Quick.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Qml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5OpenGL.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5PrintSupport.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKit.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Network.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Positioning.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Sensors.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Gui.so.5]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000e (SONAME) Library soname: [libmarblewidget.so.18]
0x000000000000000c (INIT) 0x1901a8
0x000000000000000d (FINI) 0x558a58
0x0000000000000019 (INIT_ARRAY) 0x8d2b78
0x000000000000001b (INIT_ARRAYSZ) 3568 (bytes)
0x000000000000001a (FINI_ARRAY) 0x8d3968
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x1b8
0x000000006ffffef5 (GNU_HASH) 0x15bf0
0x0000000000000005 (STRTAB) 0x7d490
0x0000000000000006 (SYMTAB) 0x2b908
0x000000000000000a (STRSZ) 634297 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x8f1e08
0x0000000000000002 (PLTRELSZ) 152784 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x16acd8
0x0000000000000007 (RELA) 0x11efd0
0x0000000000000008 (RELASZ) 310536 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x11ef40
0x000000006fffffff (VERNEEDNUM) 4
0x000000006ffffff0 (VERSYM) 0x11824a
0x000000006ffffff9 (RELACOUNT) 1223
0x0000000000000000 (NULL) 0x0


readelf -d /usr/local/lib/libastro.so
Dynamic section at offset 0x42048 contains 29 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000e (SONAME) Library soname: [libastro.so.1]
0x000000000000000c (INIT) 0x7a20
0x000000000000000d (FINI) 0x39834
0x0000000000000019 (INIT_ARRAY) 0x242000
0x000000000000001b (INIT_ARRAYSZ) 56 (bytes)
0x000000000000001a (FINI_ARRAY) 0x242038
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x1b8
0x000000006ffffef5 (GNU_HASH) 0xbd8
0x0000000000000005 (STRTAB) 0x39e8
0x0000000000000006 (SYMTAB) 0x1600
0x000000000000000a (STRSZ) 9563 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000003 (PLTGOT) 0x2422b0
0x0000000000000002 (PLTRELSZ) 5424 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x64f0
0x0000000000000007 (RELA) 0x62f8
0x0000000000000008 (RELASZ) 504 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x6248
0x000000006fffffff (VERNEEDNUM) 4
0x000000006ffffff0 (VERSYM) 0x5f44
0x000000006ffffff9 (RELACOUNT) 9
0x0000000000000000 (NULL) 0x0


gdb output
Starting program: /home/user/build-untitledM1-Desktop-Debug/untitledM1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe590c700 (LWP 3996)]
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
[New Thread 0x7fffe4cae700 (LWP 3997)]
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open

Program received signal SIGSEGV, Segmentation fault.
0x00007fffde9612bc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4


readelf -d /home/user/build-untitledM1-Desktop-Debug/untitledM1
Dynamic section at offset 0x5288 contains 44 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libmarblewidget.so.18]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKitWidgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Quick.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5OpenGL.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5PrintSupport.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Qml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKit.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Widgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Positioning.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Sensors.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Network.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Gui.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x0000000000000001 (NEEDED) Shared library: [libGL.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000f (RPATH) Library rpath: [/home/user/qt5/qtbase/lib]
0x000000000000000c (INIT) 0x402b90
0x000000000000000d (FINI) 0x40440c
0x0000000000000019 (INIT_ARRAY) 0x605000
0x000000000000001b (INIT_ARRAYSZ) 16 (bytes)
0x000000000000001a (FINI_ARRAY) 0x605010
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x400260
0x000000006ffffef5 (GNU_HASH) 0x4005a0
0x0000000000000005 (STRTAB) 0x401230
0x0000000000000006 (SYMTAB) 0x400810
0x000000000000000a (STRSZ) 3929 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x6055b0
0x0000000000000002 (PLTRELSZ) 2088 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x402368
0x0000000000000007 (RELA) 0x4022d8
0x0000000000000008 (RELASZ) 144 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x402268
0x000000006fffffff (VERNEEDNUM) 3
0x000000006ffffff0 (VERSYM) 0x40218a
0x0000000000000000 (NULL) 0x0
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 6:06 am
There is backtrace
bt
#0 0x00007fffde9612bc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007ffff7deaf80 in ?? () from /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7deb077 in ?? () from /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7def363 in ?? () from /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff7deabd6 in ?? () from /lib64/ld-linux-x86-64.so.2
#5 0x00007ffff7deeb4a in ?? () from /lib64/ld-linux-x86-64.so.2
#6 0x00007fffe9d30f66 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#7 0x00007ffff7deabd6 in ?? () from /lib64/ld-linux-x86-64.so.2
#8 0x00007fffe9d312ec in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#9 0x00007fffe9d30ee1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2
#10 0x00007fffefe12af2 in QLibraryPrivate::load_sys (this=0x6c5200)
at plugin/qlibrary_unix.cpp:230
#11 0x00007fffefe0dabb in QLibraryPrivate::load (this=0x6c5200)
at plugin/qlibrary.cpp:514
#12 0x00007fffefe0dd9a in QLibraryPrivate::loadPlugin (this=0x6c5200)
at plugin/qlibrary.cpp:562
#13 0x00007fffefe02fb1 in QPluginLoader::load (this=0x6c3770)
at plugin/qpluginloader.cpp:240
#14 0x00007fffefe02e19 in QPluginLoader::instance (this=0x6c3770)
at plugin/qpluginloader.cpp:197
#15 0x00007ffff788522a in Marble::PluginManagerPrivate::loadPlugins (
this=0x68bd80)
at /home/user/marble/sources/src/lib/marble/PluginManager.cpp:210
---Type <return> to continue, or q <return> to quit---
#16 0x00007ffff7886945 in Marble::PluginManager::renderPlugins (this=0x693f08)
at /home/user/marble/sources/src/lib/marble/PluginManager.cpp:73
#17 0x00007ffff7881b36 in Marble::LayerManager::Private::addPlugins (
this=this@entry=0x6ba5f0)
at /home/user/marble/sources/src/lib/marble/LayerManager.cpp:201
#18 0x00007ffff78824ab in Marble::LayerManager::LayerManager (this=0x6ba470,
model=0x68de18, parent=<optimized out>)
at /home/user/marble/sources/src/lib/marble/LayerManager.cpp:88
#19 0x00007ffff77fb909 in Marble::MarbleMapPrivate::MarbleMapPrivate (
this=0x6ba440, parent=0x68de30, model=0x68de18)
at /home/user/marble/sources/src/lib/marble/MarbleMap.cpp:161
#20 0x00007ffff77fc1c9 in Marble::MarbleMap::MarbleMap (this=0x68de30,
model=0x68de18)
at /home/user/marble/sources/src/lib/marble/MarbleMap.cpp:243
#21 0x00007ffff77efb1d in MarbleWidgetPrivate (parent=0x7fffffffe200,
this=0x68de10)
at /home/user/marble/sources/src/lib/marble/MarbleWidget.cpp:105
#22 Marble::MarbleWidget::MarbleWidget (this=0x7fffffffe200,
parent=<optimized out>)
at /home/user/marble/sources/src/lib/marble/MarbleWidget.cpp:170
#23 0x000000000040334b in main (argc=1, argv=0x7fffffffe3a8)
at ../untitledM1/main.cpp:18

adabrowski
Registered Member
Posts
14
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 6:51 am
Hi,

I can't really tell what's happening. Seems like you got this "almost" running at least. Marble produces a lot of "QIODevice::write: device not open" spam in my app too. Don't know where libQtGui v 4 is linked, you have to find this - good luck!
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 7:49 am
Ok, Adam, thank you for help.

May be somebody else can give me some advice?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 7:52 am
Given the crash is in QtGui, I strongly suspect it is trying to load the Oxygen style plugin. Are you able to find out what other libraries are loaded to verify this?

Another way of seeing if this is the case is to pass the argument "-style plastique" to the example Marble application, which should force it to not use the Oxygen style.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 8:15 am
'marble-qt' application run successfull. I can not to build examples for marble from git sources (it can not find headers). Can I someway pass this argument for widget in my app?
I am trying to find causer of QtGui call now.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 8:40 am
I'm afraid not - if your application is already loaded successfully, and is written in Qt 5 though, it shouldn't be attempting to load Qt 4. The style argument I mentioned is something passed at the start of an application, and always affects the whole application.

Could you try getting a full backtrace? This may help us in finding out why it is trying to load a Qt 4 plugin.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 8:48 am
May it be relevant?
readelf -d /usr/local/lib/marble/plugins/libAnnotatePlugin.so
Dynamic section at offset 0x27d58 contains 53 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libQtCore.so.4]
0x0000000000000001 (NEEDED) Shared library: [libQtDBus.so.4]
0x0000000000000001 (NEEDED) Shared library: [libQtGui.so.4]
0x0000000000000001 (NEEDED) Shared library: [libQtXml.so.4]
0x0000000000000001 (NEEDED) Shared library: [libQtSvg.so.4]
0x0000000000000001 (NEEDED) Shared library: [libQtNetwork.so.4]
0x0000000000000001 (NEEDED) Shared library: [libmarblewidget.so.18]
0x0000000000000001 (NEEDED) Shared library: [libastro.so.1]
0x0000000000000001 (NEEDED) Shared library: [libQt5Xml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKitWidgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Quick.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Qml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5OpenGL.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5PrintSupport.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKit.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Network.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Positioning.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Sensors.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Svg.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Widgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Gui.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Script.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000e (SONAME) Library soname: [libAnnotatePlugin.so]
0x000000000000000f (RPATH) Library rpath: [/home/user/qt5/qtbase/lib]

Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 8:53 am
May be I do not understand some, but I think, that is all backtrace. There is full gdb session:

user@debian:~$ gdb /home/user/build-untitledM1-Desktop-Debug/untitledM1
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user/build-untitledM1-Desktop-Debug/untitledM1...done.
(gdb) r
Starting program: /home/user/build-untitledM1-Desktop-Debug/untitledM1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe57ad700 (LWP 5125)]
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
[New Thread 0x7fffe4b4f700 (LWP 5126)]
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open
QIODevice::write: device not open

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe28622bc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
#0 0x00007fffe28622bc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007ffff7deaf80 in ?? () from /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7deb077 in ?? () from /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7def363 in ?? () from /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff7deabd6 in ?? () from /lib64/ld-linux-x86-64.so.2
#5 0x00007ffff7deeb4a in ?? () from /lib64/ld-linux-x86-64.so.2
#6 0x00007fffe9d30f66 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#7 0x00007ffff7deabd6 in ?? () from /lib64/ld-linux-x86-64.so.2
#8 0x00007fffe9d312ec in ?? () from /lib/x86_64-linux-gnu/libdl.so.2
#9 0x00007fffe9d30ee1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2
#10 0x00007fffefe12af2 in QLibraryPrivate::load_sys (this=0x6b4350)
at plugin/qlibrary_unix.cpp:230
#11 0x00007fffefe0dabb in QLibraryPrivate::load (this=0x6b4350) at plugin/qlibrary.cpp:514
#12 0x00007fffefe0dd9a in QLibraryPrivate::loadPlugin (this=0x6b4350) at plugin/qlibrary.cpp:562
#13 0x00007fffefe02fb1 in QPluginLoader::load (this=0x6bb480) at plugin/qpluginloader.cpp:240
#14 0x00007fffefe02e19 in QPluginLoader::instance (this=0x6bb480) at plugin/qpluginloader.cpp:197
#15 0x00007ffff788522a in Marble::PluginManagerPrivate::loadPlugins (this=0x66c0a0)
at /home/user/marble/sources/src/lib/marble/PluginManager.cpp:210
#16 0x00007ffff7886945 in Marble::PluginManager::renderPlugins (this=0x68d078)
at /home/user/marble/sources/src/lib/marble/PluginManager.cpp:73
#17 0x00007ffff7881b36 in Marble::LayerManager::Private::addPlugins (this=this@entry=0x6b8b80)
at /home/user/marble/sources/src/lib/marble/LayerManager.cpp:201
#18 0x00007ffff78824ab in Marble::LayerManager::LayerManager (this=0x6b8a00, model=0x6941a8,
parent=<optimized out>) at /home/user/marble/sources/src/lib/marble/LayerManager.cpp:88
#19 0x00007ffff77fb909 in Marble::MarbleMapPrivate::MarbleMapPrivate (this=0x6b89d0,
parent=0x6941c0, model=0x6941a8)
at /home/user/marble/sources/src/lib/marble/MarbleMap.cpp:161
#20 0x00007ffff77fc1c9 in Marble::MarbleMap::MarbleMap (this=0x6941c0, model=0x6941a8)
at /home/user/marble/sources/src/lib/marble/MarbleMap.cpp:243
#21 0x00007ffff77efb1d in MarbleWidgetPrivate (parent=0x7fffffffe1f0, this=0x6941a0)
at /home/user/marble/sources/src/lib/marble/MarbleWidget.cpp:105
#22 Marble::MarbleWidget::MarbleWidget (this=0x7fffffffe1f0, parent=<optimized out>)
at /home/user/marble/sources/src/lib/marble/MarbleWidget.cpp:170
#23 0x000000000040334b in main (argc=1, argv=0x7fffffffe398) at ../untitledM1/main.cpp:19
(gdb)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 10:36 am
It could be relevant. Where are you installing the Marble which you have self-compiled?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 10:49 am
It located in /usr/local
I used
cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=1 -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_PREFIX_PATH=/opt/Qt/5.2.1/gcc_64/lib/cmake/ -DCMAKE_CXX_FLAGS='-fPIC' -DQT5BUILD=1 ../marble/

as Adam sayed.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 11:04 am
Okay, that is the cause of the problem then.

Either the Marble you're building is contaminated with both Qt 4 and Qt 5 elements, or you have an existing Qt 4 installation of Marble which is being mixed with the Qt 5 Marble. This is not a supported configuration in either case.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 11:11 am
I have not installed marble except self build.
And it runs ok.
What in my actions could result in the mixing Qt4 and Qt5?
I do not understand, why marble-qt work, and app with marble widged do not.

readelf -d /usr/local/bin/marble-qt

Dynamic section at offset 0x6b338 contains 45 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Xml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Widgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5PrintSupport.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Network.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKitWidgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5WebKit.so.5]
0x0000000000000001 (NEEDED) Shared library: [libmarblewidget.so.18]
0x0000000000000001 (NEEDED) Shared library: [libastro.so.1]
0x0000000000000001 (NEEDED) Shared library: [libQt5Quick.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Qml.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5OpenGL.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Positioning.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Sensors.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Svg.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Gui.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Script.so.5]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000000c (INIT) 0x427168
0x000000000000000d (FINI) 0x456d1c
0x0000000000000019 (INIT_ARRAY) 0x66add0
0x000000000000001b (INIT_ARRAYSZ) 40 (bytes)
0x000000000000001a (FINI_ARRAY) 0x66adf8
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x0000000000000004 (HASH) 0x400260
0x000000006ffffef5 (GNU_HASH) 0x402db0
0x0000000000000005 (STRTAB) 0x40f5c8
0x0000000000000006 (SYMTAB) 0x4052c0
0x000000000000000a (STRSZ) 75977 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0x66b750
0x0000000000000002 (PLTRELSZ) 16728 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x423010
0x0000000000000007 (RELA) 0x422c98
0x0000000000000008 (RELASZ) 888 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffe (VERNEED) 0x422c28
0x000000006fffffff (VERNEEDNUM) 3
0x000000006ffffff0 (VERSYM) 0x421e92
0x0000000000000000 (NULL) 0x0

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Trouble with examples build

Fri Apr 11, 2014 11:20 am
Which build process installed /usr/local/lib/marble/plugins/libAnnotatePlugin.so?
You can check the file install_manifest.txt in your Marble build directory to see if it installed it.

If it didn't, then this is an installation remnant from something in the past - which needs to be removed.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Mechatronic
Registered Member
Posts
24
Karma
0

Re: Trouble with examples build

Fri Apr 11, 2014 11:26 am
/home/user/marble/build/install_manifest.txt contains string
/usr/local/lib/marble/plugins/libAnnotatePlugin.so


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]