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

amarok compilation error

Tags: None
(comma "," separated)
bravemar
Registered Member
Posts
1
Karma
0

amarok compilation error

Tue Apr 07, 2009 8:32 am
Hi all,
I'm trying to get amarok 2.0.2 to work on my ubuntu intrepid and after entering "make" command I get the following error:
Code: Select all
[ 95%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmService.o
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:18:30: error: AvatarDownloader.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:22:29: error: LoveTrackAction.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:24:29: error: LastFmTreeModel.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:25:28: error: LastFmTreeView.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:30:39: error: GlobalCurrentTrackActions.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:32:48: error: meta/capabilities/LastFmCapability.h: No such file or directory
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: In member function ‘virtual void LastFmServiceFactory::init()’:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:70: error: ‘createLastFmService’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:82: error: ‘createLastFmService’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: At global scope:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:99: error: no ‘void LastFmServiceFactory::slotCreateLastFmService()’ member function declared in class ‘LastFmServiceFactory’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:114: error: no ‘void LastFmServiceFactory::slotRemoveLastFmService()’ member function declared in class ‘LastFmServiceFactory’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:125: error: no ‘ServiceBase* LastFmServiceFactory::createLastFmService()’ member function declared in class ‘LastFmServiceFactory’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:161: error: prototype for ‘LastFmService::LastFmService(LastFmServiceFactory*, const QString&, const QString&, QString, const QString&, bool, bool)’ does not match any in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.h:55: error: candidates are: LastFmService::LastFmService(const LastFmService&)
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.h:59: error:                 LastFmService::LastFmService(LastFmServiceFactory*, const QString&, const QString&, const QString&, bool, bool)
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:202: error: no ‘void LastFmService::init()’ member function declared in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: In member function ‘void LastFmService::onAuthenticated(WsReply*)’:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:289: error: ‘class LastFmServiceConfig’ has no member named ‘setSessionKey’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: At global scope:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:320: error: no ‘void LastFmService::onGetUserInfo(WsReply*)’ member function declared in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:366: error: no ‘void LastFmService::onAvatarDownloaded(QPixmap)’ member function declared in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:403: error: no ‘void LastFmService::updateEditHint(int)’ member function declared in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:425: error: no ‘void LastFmService::updateProfileInfo()’ member function declared in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: In member function ‘virtual void LastFmService::polish()’:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:446: error: ‘m_inited’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:453: error: passing ‘const QString’ as ‘this’ argument of ‘QString& QString::operator=(const QString&)’ discards qualifiers
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:461: error: ‘init’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:465: error: ‘LastFmTreeView’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:465: error: ‘view’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:465: error: expected type-specifier before ‘LastFmTreeView’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:465: error: expected `;' before ‘LastFmTreeView’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:470: error: ‘setView’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:471: error: expected type-specifier before ‘LastFmTreeModel’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:471: error: expected `)' before ‘LastFmTreeModel’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:471: error: no matching function for call to ‘LastFmService::setModel(int*)’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/../ServiceBase.h:207: note: candidates are: void ServiceBase::setModel(SingleCollectionTreeItemModel*)
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:481: error: ‘m_avatarLabel’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:482: error: ‘m_avatar’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:498: error: ‘m_userinfo’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:502: error: ‘m_profile’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:505: error: ‘updateProfileInfo’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:508: error: ‘m_customStationCombo’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:514: error: ‘updateEditHint’ was not declared in this scope
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: At global scope:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:552: error: prototype for ‘void LastFmService::love(Meta::TrackPtr)’ does not match any in class ‘LastFmService’
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:536: error: candidate is: void LastFmService::love()
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp: In member function ‘void LastFmService::playCustomStation()’:
/home/marek/Programy/amarok-2.0.2/src/services/lastfm/LastFmService.cpp:601: error: ‘m_customStationCombo’ was not declared in this scope
make[2]: *** [src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmService.o] Błąd 1
make[1]: *** [src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/all] Błąd 2
make: *** [all] Błąd 2

(Błąd = Error)
I'm compiling amarok from source because I want to implement the lastfm scrobbling patch
I need help guys...
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: amarok compilation error

Tue Apr 07, 2009 9:06 am
1) Make sure to read the README.

2) It makes little sense to build 2.0.2 yourself. If you insist on self building, I suggest to use the code from SVN (which is approximately 2.1-beta1), which is much more advanced and also less buggy.

Here's a guide:

http://amarok.kde.org/blog/archives/989 ... pdate.html


--
Mark Kretschmann - Amarok Developer


Bookmarks



Who is online

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