Stellarium 0.12.2 doesn't find qt phonon library and doesn't compile

Feedback
Fellype
2013-08-08
2013-08-11
  • Fellype

    Fellype - 2013-08-08

    I'm trying to build Stellarium 0.12.2 under Slackware 14.0, using KDE 4.10.5 and Qt 4.8.4. I also have phonon 4.6.0 and cmake 2.8.10.2 installed here, but I haven't a "phonon devel" package installed.
    The qt-phonon library still as an optional dependence at http://stellarium.org/wiki/index.php/Build_Dependencies when building Stellarium from source, but I can't compile the 0.12.2 version (v. 0.12.1 compiles fine here).
    How can I fix this compilation issue?

    The error messages in the compilation process were:

    ...

    -- Found Qt4: /usr/bin/qmake (found suitable version "4.8.4", minimum required is "4.8.0")
    Qt PHONON library not found.

    ...

    [ 52%] Building CXX object src/CMakeFiles/stellarium.dir/stellarium_automoc.cpp.o
    Linking CXX executable stellarium
    CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In function StelAudioMgr::~StelAudioMgr()': StelAudioMgr.cpp:(.text+0x3d5): undefined reference toPhonon::MediaObject::stop()'
    CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In function StelAudioMgr::dropSound(QString const&)': StelAudioMgr.cpp:(.text+0xbf8): undefined reference toPhonon::MediaObject::stop()'
    CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In function StelAudioMgr::loadSound(QString const&, QString const&)': StelAudioMgr.cpp:(.text+0xfee): undefined reference toPhonon::MediaSource::MediaSource(QString const&)'
    StelAudioMgr.cpp:(.text+0xffe): undefined reference to Phonon::createPlayer(Phonon::Category, Phonon::MediaSource const&)' StelAudioMgr.cpp:(.text+0x100a): undefined reference toPhonon::MediaSource::~MediaSource()'
    StelAudioMgr.cpp:(.text+0x1274): undefined reference to Phonon::MediaSource::~MediaSource()' CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In functionStelAudioMgr::playSound(QString const&)':
    StelAudioMgr.cpp:(.text+0x14ba): undefined reference to Phonon::MediaObject::state() const' StelAudioMgr.cpp:(.text+0x15aa): undefined reference toPhonon::MediaObject::play()'
    StelAudioMgr.cpp:(.text+0x1754): undefined reference to Phonon::MediaObject::stop()' CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In functionStelAudioMgr::pauseSound(QString const&)':
    StelAudioMgr.cpp:(.text+0x1940): undefined reference to Phonon::MediaObject::pause()' CMakeFiles/stellarium.dir/core/StelAudioMgr.cpp.o: In functionStelAudioMgr::stopSound(QString const&)':
    StelAudioMgr.cpp:(.text+0x1bc0): undefined reference to Phonon::MediaObject::stop()' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::seekVideo(QString const&, long long)':
    StelVideoMgr.cpp:(.text+0xe85): undefined reference to Phonon::VideoPlayer::mediaObject() const' StelVideoMgr.cpp:(.text+0xe8d): undefined reference toPhonon::MediaObject::isSeekable() const'
    StelVideoMgr.cpp:(.text+0x110f): undefined reference to Phonon::VideoPlayer::seek(long long)' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::pauseVideo(QString const&)':
    StelVideoMgr.cpp:(.text+0x1463): undefined reference to Phonon::VideoPlayer::pause()' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::stopVideo(QString const&)':
    StelVideoMgr.cpp:(.text+0x16e3): undefined reference to Phonon::VideoPlayer::stop()' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::dropVideo(QString const&)':
    StelVideoMgr.cpp:(.text+0x1973): undefined reference to Phonon::VideoPlayer::stop()' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::loadVideo(QString const&, QString const&, float, float, bool, float)':
    StelVideoMgr.cpp:(.text+0x228a): undefined reference to Phonon::VideoPlayer::VideoPlayer(Phonon::Category, QWidget*)' StelVideoMgr.cpp:(.text+0x2382): undefined reference toPhonon::MediaSource::MediaSource(QString const&)'
    StelVideoMgr.cpp:(.text+0x2473): undefined reference to Phonon::VideoPlayer::load(Phonon::MediaSource const&)' StelVideoMgr.cpp:(.text+0x247f): undefined reference toPhonon::MediaSource::~MediaSource()'
    StelVideoMgr.cpp:(.text+0x2c3c): undefined reference to Phonon::MediaSource::~MediaSource()' CMakeFiles/stellarium.dir/core/StelVideoMgr.cpp.o: In functionStelVideoMgr::playVideo(QString const&)':
    StelVideoMgr.cpp:(.text+0x33ed): undefined reference to Phonon::VideoPlayer::isPlaying() const' StelVideoMgr.cpp:(.text+0x34dd): undefined reference toPhonon::VideoPlayer::play()'
    StelVideoMgr.cpp:(.text+0x3687): undefined reference to `Phonon::VideoPlayer::stop()'
    collect2: error: ld returned 1 exit status
    make[2]: [src/stellarium] Error 1
    make[1]:
    [src/CMakeFiles/stellarium.dir/all] Error 2
    make: *** [all] Error 2

     
    • Morten Langlo

      Morten Langlo - 2013-08-11

      On Slackware to compile Stellarium against libphonon,
      just add this to cmake command (for 64 bit system)

      -DQT_PHONON_INCLUDE_DIR=/usr/include/phonon \ -DQT_PHONON_LIBRARY_RELEASE=/usr/lib64/libphonon.so

      if you use the stellarium.Slackbuild, then the full cmake command will be:

      cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DLIB_SUFFIX="$LIBDIRSUFFIX" \ -DCMAKE_BUILD_TYPE="release" \ -DQT_PHONON_INCLUDE_DIR=/usr/include/phonon \ -DQT_PHONON_LIBRARY_RELEASE=/usr/lib$LIBDIRSUFFIX/libphonon.so \ ..

       
      Last edit: Morten Langlo 2013-08-11
  • Alexander Wolf

    Alexander Wolf - 2013-08-08

    You need to install "phonon devel" package or set cmake variable ENABLE_SOUND=0 for disable multimedia support.

     
  • Fellype

    Fellype - 2013-08-08

    Ok Alexander, it worked now. Thank you for the fast reply.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks