WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libQtDBus.so: undefined reference to ...  (Read 2279 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
libQtDBus.so: undefined reference to ...
« on: July 14, 2015, 06:40:25 PM »
Hi,
I'm getting this error when compiling SMPlayer
Code: [Select]
[...]
/usr/local/bin/rcc -name icons icons.qrc -o qrc_icons.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DSINGLE_INSTANCE -DFIND_SUBTITLES -DVIDEOPREVIEW -DYOUTUBE_SUPPORT -DYT_USE_SCRIPT -DBLURAY_SUPPORT -DGUI_CHANGE_ON_RUNTIME -DLOG_MPLAYER -DLOG_SMPLAYER -DMPCGUI -DSKINS -DMPRIS2 -DUPDATE_CHECKER -DCHECK_UPGRADED -DREMINDER_ACTIONS -DSHAREWIDGET -DAUTO_SHUTDOWN_PC -DDOWNLOAD_SUBS -DOS_SEARCH_WORKAROUND -DDATA_PATH=\"/usr/local/share/smplayer\" -DDOC_PATH=\"/usr/local/share/doc/packages/smplayer\" -DTRANSLATION_PATH=\"/usr/local/share/smplayer/translations\" -DTHEMES_PATH=\"/usr/local/share/smplayer/themes\" -DSHORTCUTS_PATH=\"/usr/local/share/smplayer/shortcuts\" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../tcloop/qt-4.x-dev/usr/local/share/qt4/mkspecs/linux-g++ -I. -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtXml -I/usr/local/include/qt4/QtScript -I/usr/local/include/qt4/QtDBus -I/usr/local/include/qt4 -Iqtsingleapplication -Ifindsubtitles -Ifindsubtitles/maia -Ifindsubtitles/filedownloader -Iyoutube -Impcgui -Iskingui -Impris2 -Ivideopreview -I.moc -I.ui -o .obj/qrc_icons.o qrc_icons.cpp
g++ -Wl,-O1 -Wl,-rpath,/usr/local/lib -o smplayer .obj/version.o .obj/global.o .obj/paths.o .obj/chapters.o .obj/helper.o .obj/colorutils.o .obj/translator.o .obj/subtracks.o .obj/tracks.o .obj/titletracks.o .obj/discname.o .obj/extensions.o .obj/desktopinfo.o .obj/myprocess.o .obj/mplayerversion.o .obj/playerid.o .obj/playerprocess.o .obj/mplayerprocess.o .obj/mpvprocess.o .obj/infoprovider.o .obj/mplayerwindow.o .obj/mediadata.o .obj/mediasettings.o .obj/assstyles.o .obj/filters.o .obj/preferences.o .obj/filesettingsbase.o .obj/filesettings.o .obj/filesettingshash.o .obj/filehash.o .obj/tvsettings.o .obj/images.o .obj/inforeader.o .obj/inforeadermplayer.o .obj/inforeadermpv.o .obj/deviceinfo.o .obj/recents.o .obj/urlhistory.o .obj/core.o .obj/logwindow.o .obj/infofile.o .obj/seekwidget.o .obj/mytablewidget.o .obj/shortcutgetter.o .obj/actionseditor.o .obj/filechooser.o .obj/vdpauproperties.o .obj/preferencesdialog.o .obj/lineedit_with_icon.o .obj/mylineedit.o .obj/mycombobox.o .obj/tristatecombo.o .obj/languages.o .obj/selectcolorbutton.o .obj/prefwidget.o .obj/prefgeneral.o .obj/prefdrives.o .obj/prefinterface.o .obj/prefperformance.o .obj/prefinput.o .obj/prefsubtitles.o .obj/prefadvanced.o .obj/prefplaylist.o .obj/preftv.o .obj/prefupdates.o .obj/prefnetwork.o .obj/filepropertiesdialog.o .obj/multilineinputdialog.o .obj/playlist.o .obj/playlistdock.o .obj/verticaltext.o .obj/eqslider.o .obj/videoequalizer.o .obj/audioequalizer.o .obj/myslider.o .obj/timeslider.o .obj/inputdvddirectory.o .obj/inputurl.o .obj/stereo3ddialog.o .obj/myaction.o .obj/myactiongroup.o .obj/filedialog.o .obj/inputmplayerversion.o .obj/about.o .obj/errordialog.o .obj/timedialog.o .obj/favorites.o .obj/tvlist.o .obj/favoriteeditor.o .obj/basegui.o .obj/baseguiplus.o .obj/autohidewidget.o .obj/widgetactions.o .obj/toolbareditor.o .obj/editabletoolbar.o .obj/defaultgui.o .obj/minigui.o .obj/clhelp.o .obj/cleanconfig.o .obj/smplayer.o .obj/myapplication.o .obj/main.o .obj/qtsingleapplication.o .obj/qtlocalpeer.o .obj/findsubtitlesconfigdialog.o .obj/findsubtitleswindow.o .obj/maiaObject.o .obj/maiaFault.o .obj/maiaXmlRpcClient.o .obj/osclient.o .obj/filedownloader.o .obj/subchooserdialog.o .obj/fixsubs.o .obj/retrieveyoutubeurl.o .obj/ytsig.o .obj/codedownloader.o .obj/mpcgui.o .obj/mpcstyles.o .obj/myicon.o .obj/mybutton.o .obj/panelseeker.o .obj/playcontrol.o .obj/mediapanel.o .obj/volumecontrolpanel.o .obj/mediabarpanel.o .obj/qpropertysetter.o .obj/actiontools.o .obj/skingui.o .obj/mediaplayer2.o .obj/mediaplayer2player.o .obj/mpris2.o .obj/updatechecker.o .obj/updatecheckerdata.o .obj/videopreview.o .obj/videopreviewconfigdialog.o .obj/sharedialog.o .obj/sharewidget.o .obj/sharedata.o .obj/shutdowndialog.o .obj/shutdown.o .obj/moc_qtsingleapplication.o .obj/moc_qtlocalpeer.o .obj/qrc_icons.o    -L/usr/local/lib -lz -lQtDBus -lQtScript -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
/usr/local/lib/libQtDBus.so: undefined reference to `QMetaCallEvent::QMetaCallEvent(int, QObject const*, int, int, int*, void**, QSemaphore*)'
collect2: error: ld returned 1 exit status
Makefile:386: recipe for target 'smplayer' failed
make[1]: *** [smplayer] Error 1
make[1]: Leaving directory '/tmp/smplayer-14.9.0.6994/src'
Makefile:43: recipe for target 'src/smplayer' failed
make: *** [src/smplayer] Error 2

The smplayer readme only mentions Qt 4 development package >= 4.3 as build dependency.
Everything listed here is loaded too though:
http://tinycorelinux.net/6.x/x86/tcz/src/qt-4.x/compile_qt4

I've tried to build smplayer-14.9.0.6994, svn-7034 and http://tinycorelinux.net/2.x/tcz/src/smplayer-0.6.8.tbz2 .
Only the latter compiled fine.

Could the Qt version be too old for recent SMPlayer or might there be a workaround?

Thanks.
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: libQtDBus.so: undefined reference to ...
« Reply #1 on: July 15, 2015, 04:40:20 AM »
Where does it come from? Could be just a missing lib on the command line.

nm -D /usr/local/lib/libQt*so | grep QMetaCallEvent
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: libQtDBus.so: undefined reference to ...
« Reply #2 on: July 15, 2015, 06:25:35 AM »
nm -D /usr/local/lib/libQt*so | grep QMetaCallEvent
Code: [Select]
0011d686 T _ZN14QMetaCallEvent13placeMetaCallEP7QObject
0011ddda T _ZN14QMetaCallEventC1EttPFvP7QObjectN11QMetaObject4CallEiPPvEPKS0_iiPiS5_P10QSemaphore
0011ddda T _ZN14QMetaCallEventC2EttPFvP7QObjectN11QMetaObject4CallEiPPvEPKS0_iiPiS5_P10QSemaphore
0011d61c T _ZN14QMetaCallEventD0Ev
0011d574 T _ZN14QMetaCallEventD1Ev
0011d574 T _ZN14QMetaCallEventD2Ev
0024ad78 V _ZTI14QMetaCallEvent
001d2164 V _ZTS14QMetaCallEvent
0024ada8 V _ZTV14QMetaCallEvent
         U _ZN14QMetaCallEventC2EiPK7QObjectiiPiPPvP10QSemaphore
         U _ZN14QMetaCallEventD2Ev
         U _ZTI14QMetaCallEvent

Quote
Where does it come from?
I'm not sure what you're asking.

nm -ACD /usr/local/lib/libQt*so | grep QMetaCallEvent
Code: [Select]
/usr/local/lib/libQtCore.so:0011d686 T QMetaCallEvent::placeMetaCall(QObject*)
/usr/local/lib/libQtCore.so:0011ddda T QMetaCallEvent::QMetaCallEvent(unsigned short, unsigned short, void (*)(QObject*, QMetaObject::Call, int, void**), QObject const*, int, int, int*, void**, QSemaphore*)
/usr/local/lib/libQtCore.so:0011ddda T QMetaCallEvent::QMetaCallEvent(unsigned short, unsigned short, void (*)(QObject*, QMetaObject::Call, int, void**), QObject const*, int, int, int*, void**, QSemaphore*)
/usr/local/lib/libQtCore.so:0011d61c T QMetaCallEvent::~QMetaCallEvent()
/usr/local/lib/libQtCore.so:0011d574 T QMetaCallEvent::~QMetaCallEvent()
/usr/local/lib/libQtCore.so:0011d574 T QMetaCallEvent::~QMetaCallEvent()
/usr/local/lib/libQtCore.so:0024ad78 V typeinfo for QMetaCallEvent
/usr/local/lib/libQtCore.so:001d2164 V typeinfo name for QMetaCallEvent
/usr/local/lib/libQtCore.so:0024ada8 V vtable for QMetaCallEvent
/usr/local/lib/libQtDBus.so:         U QMetaCallEvent::QMetaCallEvent(int, QObject const*, int, int, int*, void**, QSemaphore*)
/usr/local/lib/libQtDBus.so:         U QMetaCallEvent::~QMetaCallEvent()
/usr/local/lib/libQtDBus.so:         U typeinfo for QMetaCallEvent
« Last Edit: July 15, 2015, 06:30:22 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: libQtDBus.so: undefined reference to ...
« Reply #3 on: July 15, 2015, 07:39:14 AM »
Hm, no library provides that, so the bug is in Qt, or there is a mismatch between qt-4.x-base and qt-4.x-dbus.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: libQtDBus.so: undefined reference to ...
« Reply #4 on: July 15, 2015, 08:04:42 AM »
My fault!

I was using an old version of  qt-4.x-dbus.tcz  and probably changed the md5.txt so it didn't get updated.

Thanks for wasting your time. (;
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: libQtDBus.so: undefined reference to ...
« Reply #5 on: July 15, 2015, 01:16:39 PM »
Np, didn't take long to write those ;)
The only barriers that can stop you are the ones you create yourself.