LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2010, 05:06 AM   #1
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Rep: Reputation: 20
Problem with qt4 program compilation


Hi,

I'm trying to compile clementine-player from trunk without success.
When running cmake, everything seems fine:
Code:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.2
-- Found OpenSSL: /usr/lib64/libssl.so
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Boost version: 1.38.0
-- Found the following Boost libraries:
-- checking for module 'taglib>=1.6'
--   found taglib, version 1.6
-- checking for module 'gstreamer-0.10'
--   found gstreamer-0.10, version 0.10.28
-- checking for module 'gstreamer-base-0.10'
--   found gstreamer-base-0.10, version 0.10.28
-- checking for module 'libvlc'
--   found libvlc, version 1.0.6
-- checking for module 'libxine'
--   found libxine, version 1.1.16.3
-- Building engines: gst
-- Skipping engines: vlc xine qt-phonon
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/clementine-trunk/bin
But make fails:

Code:
[  0%] Generating moc_qtsinglecoreapplication.cxx
[  1%] Generating moc_qtlocalpeer.cxx
[  1%] Generating moc_qtsingleapplication.cxx
Scanning dependencies of target qtsingleapplication
[  1%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/qtlocalpeer.cpp.o
[  1%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/qtlockedfile.cpp.o
[  1%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/qtsingleapplication.cpp.o
[  2%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/qtsinglecoreapplication.cpp.o
[  2%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/moc_qtlocalpeer.cxx.o
[  2%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/moc_qtsingleapplication.cxx.o
[  2%] Building CXX object 3rdparty/qtsingleapplication/CMakeFiles/qtsingleapplication.dir/moc_qtsinglecoreapplication.cxx.o
Linking CXX static library libqtsingleapplication.a
[  2%] Built target qtsingleapplication
[  2%] Generating moc_qxtglobalshortcut.cxx
Scanning dependencies of target qxt
[  2%] Building CXX object 3rdparty/qxt/CMakeFiles/qxt.dir/qxtglobal.cpp.o
[  2%] Building CXX object 3rdparty/qxt/CMakeFiles/qxt.dir/qxtglobalshortcut.cpp.o
[  3%] Building CXX object 3rdparty/qxt/CMakeFiles/qxt.dir/qxtglobalshortcut_x11.cpp.o
[  3%] Building CXX object 3rdparty/qxt/CMakeFiles/qxt.dir/moc_qxtglobalshortcut.cxx.o
Linking CXX static library libqxt.a
[  3%] Built target qxt
[  3%] Generating clementine_tr.qm
[  3%] Generating mpris_player.cpp, mpris_player.h
[  4%] Generating mpris_player.moc
[  4%] Generating mpris_root.cpp, mpris_root.h
[  4%] Generating mpris_root.moc
[  4%] Generating mpris_tracklist.cpp, mpris_tracklist.h
[  5%] Generating mpris_tracklist.moc
[  5%] Generating notification.cpp, notification.h
[  5%] Generating notification.moc
[  6%] Generating moc_mainwindow.cxx
[  6%] Generating moc_player.cxx
[  6%] Generating moc_library.cxx
[  6%] Generating moc_librarybackend.cxx
[  7%] Generating moc_playlist.cxx
[  7%] Generating engines/moc_enginebase.cxx
[  7%] Generating moc_sliderwidget.cxx
[  7%] Generating moc_playlistview.cxx
[  8%] Generating moc_backgroundthread.cxx
[  8%] Generating moc_librarywatcher.cxx
[  8%] Generating moc_songmimedata.cxx
[  8%] Generating moc_libraryview.cxx
[ 10%] Generating moc_libraryconfig.cxx
[ 10%] Generating moc_systemtrayicon.cxx
[ 10%] Generating moc_fileview.cxx
[ 10%] Generating moc_fileviewlist.cxx
[ 11%] Generating moc_playlistheader.cxx
[ 11%] Generating moc_radioservice.cxx
[ 11%] Generating moc_lastfmservice.cxx
[ 11%] Generating moc_radiomodel.cxx
[ 12%] Generating moc_lastfmconfig.cxx
[ 12%] Generating moc_busyindicator.cxx
[ 12%] Generating moc_radiomimedata.cxx
[ 12%] Generating moc_radioview.cxx
[ 13%] Generating moc_lastfmstationdialog.cxx
[ 13%] Generating moc_osd.cxx
[ 13%] Generating moc_trackslider.cxx
[ 13%] Generating moc_edittagdialog.cxx
[ 14%] Generating moc_lineedit.cxx
[ 14%] Generating moc_multiloadingindicator.cxx
[ 14%] Generating moc_somafmservice.cxx
[ 15%] Generating moc_settingsdialog.cxx
[ 15%] Generating moc_librarydirectorymodel.cxx
[ 15%] Generating moc_libraryconfigdialog.cxx
[ 15%] Generating moc_lastfmconfigdialog.cxx
[ 16%] Generating moc_about.cxx
[ 16%] Generating moc_albumcoverfetcher.cxx
[ 16%] Generating moc_addstreamdialog.cxx
[ 16%] Generating moc_savedradio.cxx
[ 17%] Generating moc_albumcovermanager.cxx
[ 17%] Generating moc_albumcoverloader.cxx
[ 17%] Generating moc_m3uparser.cxx
[ 17%] Generating moc_playlistsequence.cxx
[ 18%] Generating moc_xspfparser.cxx
[ 18%] Generating analyzers/moc_analyzercontainer.cxx
[ 18%] Generating analyzers/moc_baranalyzer.cxx
[ 18%] Generating analyzers/moc_blockanalyzer.cxx
[ 20%] Generating analyzers/moc_analyzerbase.cxx
[ 20%] Generating analyzers/moc_boomanalyzer.cxx
[ 20%] Generating analyzers/moc_sonogram.cxx
[ 20%] Generating analyzers/moc_turbine.cxx
[ 21%] Generating globalshortcuts/moc_globalshortcuts.cxx
[ 21%] Generating moc_osdpretty.cxx
[ 21%] Generating moc_playlistdelegates.cxx
[ 21%] Generating moc_groupbydialog.cxx
[ 22%] Generating moc_equalizer.cxx
[ 22%] Generating moc_equalizerslider.cxx
[ 22%] Generating moc_stickyslider.cxx
[ 22%] Generating engines/moc_gstengine.cxx
[ 23%] Generating engines/moc_gstenginepipeline.cxx
[ 23%] Generating moc_mpris.cxx
[ 23%] Generating ui_mainwindow.h
[ 23%] Generating ui_libraryconfig.h
[ 24%] Generating ui_fileview.h
[ 24%] Generating ui_lastfmconfig.h
[ 24%] Generating ui_lastfmstationdialog.h
[ 25%] Generating ui_trackslider.h
[ 25%] Generating ui_edittagdialog.h
[ 25%] Generating ui_multiloadingindicator.h
[ 25%] Generating ui_settingsdialog.h
[ 26%] Generating ui_libraryconfigdialog.h
[ 26%] Generating ui_lastfmconfigdialog.h
[ 26%] Generating ui_about.h
[ 26%] Generating ui_addstreamdialog.h
[ 27%] Generating ui_albumcovermanager.h
[ 27%] Generating ui_playlistsequence.h
[ 27%] Generating ui_osdpretty.h
[ 27%] Generating ui_groupbydialog.h
[ 28%] Generating ui_equalizer.h
[ 28%] Generating ui_equalizerslider.h
[ 28%] Generating qrc_data.cxx
[ 30%] Generating clementine_cs.qm
[ 30%] Generating clementine_da.qm
[ 30%] Generating clementine_de.qm
[ 30%] Generating clementine_el.qm
[ 31%] Generating clementine_en_GB.qm
[ 31%] Generating clementine_es.qm
[ 31%] Generating clementine_fr.qm
[ 31%] Generating clementine_nb.qm
[ 32%] Generating clementine_pl.qm
[ 32%] Generating clementine_pt.qm
[ 32%] Generating clementine_pt_BR.qm
[ 32%] Generating clementine_ru.qm
[ 33%] Generating clementine_sk.qm
[ 33%] Generating clementine_sv.qm
[ 33%] Generating qrc_translations.cxx
Scanning dependencies of target clementine_lib
[ 34%] Building CXX object src/CMakeFiles/clementine_lib.dir/mainwindow.cpp.o
In file included from /tmp/clementine-trunk/src/analyzers/analyzercontainer.h:24,
                 from /tmp/clementine-trunk/bin/src/ui_mainwindow.h:29,
                 from /tmp/clementine-trunk/src/mainwindow.h:26,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:17:
/tmp/clementine-trunk/src/analyzers/analyzerbase.h:19:37: error: QGLWidget: No such file or directory
In file included from /tmp/clementine-trunk/src/playlist.h:26,
                 from /tmp/clementine-trunk/src/playlistview.h:20,
                 from /tmp/clementine-trunk/bin/src/ui_mainwindow.h:33,
                 from /tmp/clementine-trunk/src/mainwindow.h:26,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:17:
/tmp/clementine-trunk/src/song.h:24:21: error: QSqlQuery: No such file or directory
In file included from /tmp/clementine-trunk/src/library.h:24,
                 from /tmp/clementine-trunk/src/playlistview.h:21,
                 from /tmp/clementine-trunk/bin/src/ui_mainwindow.h:33,
                 from /tmp/clementine-trunk/src/mainwindow.h:26,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:17:
/tmp/clementine-trunk/src/librarybackend.h:21:21: error: QSqlError: No such file or directory
/tmp/clementine-trunk/src/librarybackend.h:22:24: error: QSqlDatabase: No such file or directory
In file included from /tmp/clementine-trunk/src/mainwindow.cpp:18:
/tmp/clementine-trunk/src/player.h:46:25: error: QDBusArgument: No such file or directory
In file included from /tmp/clementine-trunk/src/lastfmservice.h:29,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/usr/include/lastfm/Track:26:23: error: QDomElement: No such file or directory
In file included from /tmp/clementine-trunk/src/lastfmservice.h:30,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/usr/include/lastfm/ws.h:26:25: error: QNetworkReply: No such file or directory
In file included from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/tmp/clementine-trunk/src/lastfmservice.h:39:33: error: QNetworkAccessManager: No such file or directory
In file included from /tmp/clementine-trunk/src/librarybackend.h:28,
                 from /tmp/clementine-trunk/src/library.h:24,
                 from /tmp/clementine-trunk/src/playlistview.h:21,
                 from /tmp/clementine-trunk/bin/src/ui_mainwindow.h:33,
                 from /tmp/clementine-trunk/src/mainwindow.h:26,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:17:
/tmp/clementine-trunk/src/libraryquery.h:47: virhe: ”QSqlError” does not name a type
/tmp/clementine-trunk/src/libraryquery.h:59: virhe: kentällä ”query_” on epätäydellinen tyyppi
/tmp/clementine-trunk/src/libraryquery.h: In member function ”LibraryQuery::operator const QSqlQuery&() const”:
/tmp/clementine-trunk/src/libraryquery.h:51: virhe: ”query_” on esittelemättä tällä näkyvyysalueella
In file included from /tmp/clementine-trunk/src/library.h:24,
                 from /tmp/clementine-trunk/src/playlistview.h:21,
                 from /tmp/clementine-trunk/bin/src/ui_mainwindow.h:33,
                 from /tmp/clementine-trunk/src/mainwindow.h:26,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:17:
/tmp/clementine-trunk/src/librarybackend.h: At global scope:
/tmp/clementine-trunk/src/librarybackend.h:197: virhe: ”QSqlDatabase” does not name a type
/tmp/clementine-trunk/src/librarybackend.h:198: virhe: ”QSqlDatabase” has not been declared
/tmp/clementine-trunk/src/librarybackend.h:199: virhe: expected ”,” or ”...” before ”&” token
/tmp/clementine-trunk/src/librarybackend.h:199: virhe: ISO C++ kieltää muuttujan ”QSqlError” esittelyn ilman tyyppiä
/tmp/clementine-trunk/src/librarybackend.h:206: virhe: ”QSqlDatabase” has not been declared
In file included from /tmp/clementine-trunk/src/mainwindow.cpp:18:
/tmp/clementine-trunk/src/player.h:47: virhe: expected constructor, destructor, or type conversion before ”&” token
/tmp/clementine-trunk/src/player.h:48: virhe: expected initializer before ”&” token
In file included from /tmp/clementine-trunk/src/lastfmservice.h:29,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/usr/include/lastfm/Track:85: virhe: expected ”,” or ”...” before ”&” token
/usr/include/lastfm/Track:132: virhe: ”QDomElement” does not name a type
In file included from /tmp/clementine-trunk/src/lastfmservice.h:30,
                 from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/usr/include/lastfm/ws.h:152: virhe: ”QNetworkReply::NetworkError” has not been declared
In file included from /tmp/clementine-trunk/src/mainwindow.cpp:26:
/tmp/clementine-trunk/src/lastfmservice.h:182: virhe: kentällä ”network_” on epätäydellinen tyyppi
/usr/include/lastfm/global.h: In function ”QString lastfm::qMetaEnumString(int, const char*) [with T = QNetworkReply]”:
/usr/include/lastfm/ws.h:154:   instantiated from here
/usr/include/lastfm/global.h:51: error: incomplete type ”QNetworkReply” used in nested name specifier
make[2]: *** [src/CMakeFiles/clementine_lib.dir/mainwindow.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/clementine_lib.dir/all] Error 2
make: *** [all] Error 2
Sorry there's some finnish words but I think they doesn't matter in this case.

I have recompiled QT 4.6.2 and it's working ok, I got the same errors with 4.5.1.

Version is Slackware64-13.0 with some upgraded dependencies like taglib.
 
Old 04-26-2010, 07:33 AM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Your errors look like a problem with your QT install. error: QGLWidget: No such file or directory, error: QSqlError: No such file or directory, ....


Builds fine here on two different x86_64 -current systems, with stock Slackware QT's 4.5.3, not a single error nor warning. But I receive similar errors on an older Slackware release with QT 4.5.1 (r1008952) + liblastfm.

Try grabbing the source to Slackware -current's QT and building that package.
 
Old 04-28-2010, 08:36 AM   #3
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Original Poster
Rep: Reputation: 20
I downgraded QT to 4.5.3 from current, but I get the same errors. Other suggestions?
 
Old 04-28-2010, 08:53 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Do you really need that version Clementine? The sbo.org script should work:

http://slackbuilds.org/repository/13...io/clementine/
 
Old 04-28-2010, 10:29 AM   #5
GasPipe
Member
 
Registered: Jul 2009
Location: Finland
Distribution: Slackware64-current
Posts: 55

Original Poster
Rep: Reputation: 20
Yeah, I really need that version.
 
Old 06-02-2010, 02:32 AM   #6
evatux
LQ Newbie
 
Registered: Jun 2010
Location: Russia
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
wow! this is my first post and I can't post web-link!
oK. I'll post link to solution in the next post
 
Old 06-02-2010, 02:32 AM   #7
evatux
LQ Newbie
 
Registered: Jun 2010
Location: Russia
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
next post :D

you can find solution of this problem on http://code.google.com/p/clementine-...tail?id=297#c4
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with qt4-qmake mark_alfred Linux - Software 4 04-19-2010 05:05 PM
Basic Kernel Program Compilation problem jana05 Linux - Newbie 1 01-28-2008 05:40 AM
Problem installing qt4 impeteperry Ubuntu 3 03-18-2006 09:51 AM
problem with GTK program compilation. pratsadhu Programming 2 02-20-2006 10:52 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration