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

Library GLobal/Phonon not found

Tags: None
(comma "," separated)
cau
Registered Member
Posts
6
Karma
0

Library GLobal/Phonon not found

Mon Apr 26, 2010 1:31 pm
I have this error while compiling:

[ 5%] Building CXX object src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o
In file included from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_EngineObserver.cpp:10,
from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:10:
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:24:25: error: Phonon/Global: No existe el fichero o el directorio.


I have installed libphonon4 and libphonon-dev. I'm using debian testing. I can't install libqt4-phonon because sypnatics will uninstall all the kde4 system. libqt4-phonon-dev don't exist in the testing/sid repository. I reinstall the libphonon4 and libphonon-dev packages. I get this error both amarok 2.3.0 and 2.3.1. and I execute ldconfig with root.
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: Library GLobal/Phonon not found

Mon Apr 26, 2010 1:52 pm
Paste full g++ command line and error when you build:

Code: Select all
make VERBOSE=1
cau
Registered Member
Posts
6
Karma
0

Re: Library GLobal/Phonon not found

Mon Apr 26, 2010 2:04 pm
Code: Select all

[  5%] Building CXX object src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o                                                                                                                                       
cd /home/cau/Sources/amarok-2.3.0.90/build/src && /usr/bin/c++   -DMAKE_AMAROKLIB_LIB -DDESKTOP_UI -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -fmessage-length=0 -Wl,--as-needed -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/home/cau/Sources/amarok-2.3.0.90/build/src -I/home/cau/Sources/amarok-2.3.0.90/src -I/home/cau/Sources/amarok-2.3.0.90/shared -I/home/cau/Sources/amarok-2.3.0.90 -I/home/cau/Sources/amarok-2.3.0.90/build -I/home/cau/Sources/amarok-2.3.0.90/src/aboutdialog -I/home/cau/Sources/amarok-2.3.0.90/src/aboutdialog/libattica-ocsclient -I/home/cau/Sources/amarok-2.3.0.90/src/amarokurls -I/home/cau/Sources/amarok-2.3.0.90/src/browsers -I/home/cau/Sources/amarok-2.3.0.90/src/browsers/playlistbrowser -I/home/cau/Sources/amarok-2.3.0.90/src/browsers/servicebrowser -I/home/cau/Sources/amarok-2.3.0.90/src/browsers/servicebrowser/scriptableservice -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/support -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/mediadevicecollection -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/mediadevicecollection/handler -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/mediadevicecollection/support -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/mediadevicecollection/playlist -I/home/cau/Sources/amarok-2.3.0.90/src/core-impl/collections/mediadevicecollection/podcast -I/home/cau/Sources/amarok-2.3.0.90/src/configdialog -I/home/cau/Sources/amarok-2.3.0.90/src/configdialog/dialogs -I/home/cau/Sources/amarok-2.3.0.90/src/context -I/home/cau/Sources/amarok-2.3.0.90/src/context/widgets -I/home/cau/Sources/amarok-2.3.0.90/src/context/widgets/appletexplorer -I/home/cau/Sources/amarok-2.3.0.90/src/dbus -I/home/cau/Sources/amarok-2.3.0.90/src/dialogs -I/home/cau/Sources/amarok-2.3.0.90/src/dynamic -I/home/cau/Sources/amarok-2.3.0.90/src/likeback -I/home/cau/Sources/amarok-2.3.0.90/src/playlistmanager -I/home/cau/Sources/amarok-2.3.0.90/src/statusbar -I/home/cau/Sources/amarok-2.3.0.90/src/synchronization -I/home/cau/Sources/amarok-2.3.0.90/src/timecode -I/home/cau/Sources/amarok-2.3.0.90/src/widgets -I/usr/include/mysql -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtAssistant -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/taglib -I/usr/include/taglib-extras -I/usr/include/QtCrypto   -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/taglib -I/usr/include/taglib-extras -o CMakeFiles/amaroklib.dir/amaroklib_automoc.o -c /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp                                                                                                                                                                               
In file included from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_EngineObserver.cpp:10,                                                                                                                       
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:10:                                                                                                                       
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:24:25: error: Phonon/Global: No existe el fichero o el directorio                                                               
In file included from /home/cau/Sources/amarok-2.3.0.90/src/ToolBar.h:23,                                                                                                                                         
                 from /home/cau/Sources/amarok-2.3.0.90/src/browsers/BrowserCategory.h:22,                                                                                                                         
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/../../src/browsers/playlistbrowser/UserPlaylistCategory.h:22,                                                                                   
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_UserPlaylistCategory.cpp:10,                                                                                                                 
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:30:                                                                                                                       
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:33:23: error: Phonon/Path: No existe el fichero o el directorio                                                                                           
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:34:34: error: Phonon/MediaController: No existe el fichero o el directorio                                                                               
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:35:30: error: Phonon/MediaObject: No existe el fichero o el directorio                                                                                   
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:36:25: error: Phonon/Effect: No existe el fichero o el directorio                                                                                         
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:37:34: error: Phonon/EffectParameter: No existe el fichero o el directorio                                                                               
In file included from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_EngineObserver.cpp:10,                                                                                                                       
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:10:                                                                                                                       
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:82: error: ‘Phonon’ has not been declared                                                                                       
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:82: error: expected ‘,’ or ‘...’ before ‘currentState’                                                                         
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:178: error: ‘Phonon’ has not been declared                                                                                     
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:178: error: expected ‘,’ or ‘...’ before ‘newState’                                                                             
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:200: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:200: error: ISO C++ forbids declaration of ‘State’ with no type
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:200: error: expected ‘;’ before ‘m_realState’
In file included from /home/cau/Sources/amarok-2.3.0.90/src/ToolBar.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/src/browsers/BrowserCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/../../src/browsers/playlistbrowser/UserPlaylistCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_UserPlaylistCategory.cpp:10,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:30:
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:61: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:61: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:61: error: redefinition of ‘int State’
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:61: error: ‘int State’ previously declared here
In file included from /home/cau/Sources/amarok-2.3.0.90/src/ToolBar.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/src/browsers/BrowserCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/../../src/browsers/playlistbrowser/UserPlaylistCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_UserPlaylistCategory.cpp:10,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:30:
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:170: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:170: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:170: error: redefinition of ‘int State’
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:170: error: ‘int State’ previously declared here
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:180: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:180: error: ‘Phonon’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:180: error: redefinition of ‘int State’
/home/cau/Sources/amarok-2.3.0.90/src/ActionClasses.h:180: error: ‘int State’ previously declared here
In file included from /home/cau/Sources/amarok-2.3.0.90/src/ToolBar.h:23,
                 from /home/cau/Sources/amarok-2.3.0.90/src/browsers/BrowserCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/../../src/browsers/playlistbrowser/UserPlaylistCategory.h:22,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_UserPlaylistCategory.cpp:10,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:30:
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:117: error: ‘State’ in namespace ‘Phonon’ does not name a type
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:126: error: ISO C++ forbids declaration of ‘MediaObject’ with no type
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:126: error: invalid use of ‘::’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:126: error: expected ‘;’ before ‘*’ token
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:132: error: expected ‘;’ before ‘int’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:321: error: ‘Phonon::State’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:321: error: ‘Phonon::State’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:355: error: ‘MediaObject’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:355: error: ‘MediaObject’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:355: error: template argument 1 is invalid
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:357: error: ‘Effect’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:357: error: ‘Effect’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:357: error: template argument 1 is invalid
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:360: error: ‘MediaController’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:360: error: ‘MediaController’ is not a member of ‘Phonon’
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:360: error: template argument 1 is invalid
/home/cau/Sources/amarok-2.3.0.90/src/EngineController.h:361: error: ‘Path’ in namespace ‘Phonon’ does not name a type
In file included from /home/cau/Sources/amarok-2.3.0.90/build/src/moc_PlaylistActions.cpp:10,
                 from /home/cau/Sources/amarok-2.3.0.90/build/src/amaroklib_automoc.cpp:79:
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/playlist/PlaylistActions.h:140: error: ‘Phonon::State’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/playlist/PlaylistActions.h:140: error: ‘Phonon::State’ has not been declared
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/core/engine/EngineObserver.h:82: warning: ‘virtual void Engine::EngineObserver::engineStateChanged(int)’ was hidden
/home/cau/Sources/amarok-2.3.0.90/build/src/../../src/playlist/PlaylistActions.h:140: warning:   by ‘void Playlist::Actions::engineStateChanged(int, int)’
make[2]: *** [src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o] Error 1
make[2]: se sale del directorio `/home/cau/Sources/amarok-2.3.0.90/build'
make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
make[1]: se sale del directorio `/home/cau/Sources/amarok-2.3.0.90/build'
make: *** [all] Error 2
cau@Serafin:~/Sources/amarok-2.3.0.90/build$





All the errors comes from the missing Global/Phonon include, right?
MoDaX
Registered Member
Posts
241
Karma
0
OS

Re: Library GLobal/Phonon not found

Mon Apr 26, 2010 2:06 pm
Are you building from scratch? I.e. did you try removing build directory or at least CMakeCache.txt?
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Re: Library GLobal/Phonon not found

Mon Apr 26, 2010 2:08 pm
Create /usr/include/KDE/Phonon/Global
with
#include "../../phonon/phononnamespace.h"
as content.
That's all. ldconfig doesn't help, because it's not a shared library.

m0nk


If men could get pregnant, abortion would be a sacrament.
cau
Registered Member
Posts
6
Karma
0

Re: Library GLobal/Phonon not found

Mon Apr 26, 2010 2:21 pm
#MoDaX:

Yes

#Dieter Schroeder

Doesn't work.

Adding -I/usr/include/phonon to the g++ command solve the problem por this file.


I've make a simbolic link to /usr/include/phonon in /usr/include/qt4/ and this solve the problem for all files.

Thx for the help, the VERBOSE flag help me to find a solution and sorry for the discomfort. (And my poor english >.<)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]