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

Problem in compiling Amarok 1.4.5

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

Problem in compiling Amarok 1.4.5

Mon Mar 26, 2007 7:46 am
I would like to compile from source Amarok 1.4.5 on a Xandros Desktop 4.1 Professional machine. I believe I downloaded all the correct libraries to get Amarok to compile, particularly so I can access a Creative Zen Vision:M music player. I also compiled from source libmtp and libnjb. I can access the music player successfully with libmtp (mtp-detect, mtp-connect etc).

In compiling Amarok, ./configure operates fine but there is a problem with the make command as detailed below.

Any help with this would be much appreciated.

Victor Warner

Code: Select all
 
  njbmediadevice.lo playlist.lo track.lo njbmediadevice.moc.lo  ../../../../amarok/src/libamarok.la -lkdeui -lkdecore -lnjb
.libs/njbmediadevice.o(.text+0x4933): In function `NjbMediaDevice::openDevice(bool)':
: undefined reference to `NJB_Get_Device_Name'
.libs/njbmediadevice.o(.text+0x84e0): In function `NjbMediaDevice::downloadToCollection()':
: undefined reference to `NJB_Error_Pending'
.libs/njbmediadevice.o(.text+0x850c): In function `NjbMediaDevice::downloadToCollection()':
: undefined reference to `NJB_Error_Geterror'
.libs/njbmediadevice.o(.text+0x9091): In function `NjbMediaDevice::copyTrackToDevice(MetaBundle const&)':
: undefined reference to `NJB_Songid_New'
.libs/njbmediadevice.o(.text+0x919f): In function `NjbMediaDevice::copyTrackToDevice(MetaBundle const&)':
: undefined reference to `NJB_Songid_Destroy'
.libs/njbmediadevice.o(.text+0x9a6b): In function `NjbMediaDevice::copyTrackToDevice(MetaBundle const&)':
: undefined reference to `NJB_Error_Pending'
.libs/njbmediadevice.o(.text+0x9a9c): In function `NjbMediaDevice::copyTrackToDevice(MetaBundle const&)':
: undefined reference to `NJB_Error_Geterror'
.libs/njbmediadevice.o(.text+0x9fa2): In function `NjbMediaDevice::copyTrackToDevice(MetaBundle const&)':
: undefined reference to `NJB_Songid_Destroy'
.libs/njbmediadevice.o(.text+0xc487): In function `NjbMediaDevice::copyTrackFromDevice(MediaItem*)':
: undefined reference to `NJB_Error_Pending'
.libs/njbmediadevice.o(.text+0xc4bc): In function `NjbMediaDevice::copyTrackFromDevice(MediaItem*)':
: undefined reference to `NJB_Error_Geterror'
.libs/njbmediadevice.o(.text+0x115ec): In function `NjbMediaDevice::customClicked()':
: undefined reference to `NJB_Get_Auxpower'
.libs/njbmediadevice.o(.text+0x1165c): In function `NjbMediaDevice::customClicked()':
: undefined reference to `NJB_Get_Battery_Charging'
.libs/njbmediadevice.o(.text+0x116ff): In function `NjbMediaDevice::customClicked()':
: undefined reference to `NJB_Get_Battery_Level'
.libs/playlist.o(.text+0x18): In function `NjbPlaylist::NjbPlaylist[not-in-charge]()':
: undefined reference to `NJB_Playlist_New'
.libs/playlist.o(.text+0x338): In function `NjbPlaylist::NjbPlaylist[in-charge]()':
: undefined reference to `NJB_Playlist_New'
.libs/playlist.o(.text+0x768): In function `NjbPlaylist::~NjbPlaylist [not-in-charge]()':
: undefined reference to `NJB_Playlist_Destroy'
.libs/playlist.o(.text+0x798): In function `NjbPlaylist::~NjbPlaylist [in-charge]()':
: undefined reference to `NJB_Playlist_Destroy'
.libs/playlist.o(.text+0x7f8): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_New'
.libs/playlist.o(.text+0x808): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Set_Name'
.libs/playlist.o(.text+0x818): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Reset_Gettrack'
.libs/playlist.o(.text+0x820): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Gettrack'
.libs/playlist.o(.text+0x836): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Track_New'
.libs/playlist.o(.text+0x84a): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Addtrack'
.libs/playlist.o(.text+0x852): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Gettrack'
.libs/playlist.o(.text+0xc15): In function `NjbPlaylist::setPlaylist(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Destroy'
.libs/playlist.o(.text+0xe51): In function `NjbPlaylist::setName(QString const&)':
: undefined reference to `NJB_Playlist_Set_Name'
.libs/playlist.o(.text+0x2235): In function `playlist_dump(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Reset_Gettrack'
.libs/playlist.o(.text+0x2240): In function `playlist_dump(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Gettrack'
.libs/playlist.o(.text+0x2501): In function `playlist_dump(njb_playlist_struct*)':
: undefined reference to `NJB_Playlist_Gettrack'
.libs/playlist.o(.text+0x3661): In function `NjbPlaylist::update()':
: undefined reference to `NJB_Error_Pending'
.libs/playlist.o(.text+0x3676): In function `NjbPlaylist::update()':
: undefined reference to `NJB_Error_Geterror'
.libs/playlist.o(.text+0x476c): In function `playlistValueList::readFromDevice()':
: undefined reference to `NJB_Playlist_Destroy'
.libs/track.o(.text+0x85): In function `NjbTrack::NjbTrack[not-in-charge](njb_songid_struct*)':
: undefined reference to `NJB_Songid_Findframe'
.libs/track.o(.text+0x289): In function `NjbTrack::NjbTrack[not-in-charge](njb_songid_struct*)':
: undefined reference to `NJB_Songid_Findframe'
.libs/track.o(.text+0x487): In function `NjbTrack::NjbTrack[not-in-charge](njb_songid_struct*)':
: undefined reference to `NJB_Songid_Findframe'
.libs/track.o(.text+0x531): In function `NjbTrack::NjbTrack[not-in-charge](njb_songid_struct*)':
: undefined reference to `NJB_Songid_Findframe'
.libs/track.o(.text+0x6a1): In function `NjbTrack::NjbTrack[not-in-charge](njb_songid_struct*)':
: undefined reference to `NJB_Songid_Findframe'
.libs/track.o(.text+0x801): more undefined references to `NJB_Songid_Findframe' follow
.libs/track.o(.text+0x2b6e): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_String'
.libs/track.o(.text+0x2b7d): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2bd8): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_Uint32'
.libs/track.o(.text+0x2be7): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2bf5): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_Codec'
.libs/track.o(.text+0x2c04): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2c3d): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_String'
.libs/track.o(.text+0x2c4c): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2cc0): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_String'
.libs/track.o(.text+0x2ccf): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2d20): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_String'
.libs/track.o(.text+0x2d2f): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2d80): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_String'
.libs/track.o(.text+0x2d8f): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2dc2): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_Uint16'
.libs/track.o(.text+0x2dd1): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2df7): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_Uint16'
.libs/track.o(.text+0x2e06): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x2e2c): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Frame_New_Uint16'
.libs/track.o(.text+0x2e3b): In function `NjbTrack::writeToSongid(njb_songid_struct*)':
: undefined reference to `NJB_Songid_Addframe'
.libs/track.o(.text+0x37e9): In function `trackValueList::readFromDevice()':
: undefined reference to `NJB_Songid_Destroy'
collect2: ld returned 1 exit status
make[5]: *** [libamarok_njb-mediadevice.la] Error 1
make[5]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src/mediadevice/njb'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src/mediadevice'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5'
make: *** [all] Error 2
VictorWarner
Registered Member
Posts
6
Karma
0
I also noticed the following type of error in running make:

Code: Select all
In file included from ../../../amarok/src/enginecontroller.h:18,
                 from amarokdcophandler.cpp:31:
../../../amarok/src/metabundle.h:412: warning: `mutable' is not at beginning of
   declaration
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: Problem in compiling Amarok 1.4.5

Tue Mar 27, 2007 12:01 pm
Is it possible that you have two versions of libnjb installed (e.g. one self-compiled and one from your distro)?
VictorWarner
Registered Member
Posts
6
Karma
0

Re: Problem in compiling Amarok 1.4.5

Tue Mar 27, 2007 11:15 pm
Thank you for the response. I did find that libnjb had been installed twice (once from the distro and once from source). I uninstalled both and then just installed the version available from Xandros Desktop 4.1 Professional.

I tried compiling amorak again but continue to receive errors:

Code: Select all
playlist.h:32: error: parse error before `*' token
playlist.h:49: error: `njb_playlist_t' was not declared in this scope
playlist.h:49: error: `_newlist' was not declared in this scope
playlist.h:49: error: invalid data member initialization
playlist.h:49: error: (use `=' to initialize static data members)
playlist.h:49: error: variable or field `setPlaylist' declared void
playlist.h:55: error: syntax error before `*' token
playlist.h: In member function `u_int32_t NjbPlaylist::getId() const':
playlist.h:46: error: `m_playlist' undeclared (first use this function)
playlist.h:46: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
In file included from njbmediadevice.h:36,
                 from njbmediadevice.cpp:25:
track.h: At global scope:
track.h:37: error: parse error before `*' token
track.h:50: error: `njb_songid_t' was not declared in this scope
track.h:50: error: `songid' was not declared in this scope
track.h:50: error: invalid data member initialization
track.h:50: error: variable or field `writeToSongid' declared void
track.h:51: error: syntax error before `*' token
njbmediadevice.cpp: In member function `virtual bool
   NjbMediaDevice::openDevice(bool)':
njbmediadevice.cpp:224: error: `NJB_Get_Device_Name' undeclared (first use this
   function)
njbmediadevice.cpp: In member function `int
   NjbMediaDevice::downloadToCollection()':
njbmediadevice.cpp:399: error: `NJB_Error_Pending' undeclared (first use this
   function)
njbmediadevice.cpp:402: error: `NJB_Error_Geterror' undeclared (first use this
   function)
njbmediadevice.cpp: In member function `virtual MediaItem*
   NjbMediaDevice::copyTrackToDevice(const MetaBundle&)':
njbmediadevice.cpp:447: error: `njb_songid_t' undeclared (first use this
   function)
njbmediadevice.cpp:447: error: `songid' undeclared (first use this function)
njbmediadevice.cpp:447: error: `NJB_Songid_New' undeclared (first use this
   function)
njbmediadevice.cpp:454: error: `NJB_Error_Pending' undeclared (first use this
   function)
njbmediadevice.cpp:457: error: `NJB_Error_Geterror' undeclared (first use this
   function)
njbmediadevice.cpp:464: error: `NJB_Songid_Destroy' undeclared (first use this
   function)
njbmediadevice.cpp: In member function `virtual void
   NjbMediaDevice::copyTrackFromDevice(MediaItem*)':
njbmediadevice.cpp:496: error: `NJB_Error_Pending' undeclared (first use this
   function)
njbmediadevice.cpp:499: error: `NJB_Error_Geterror' undeclared (first use this
   function)
njbmediadevice.cpp: In member function `virtual void
   NjbMediaDevice::customClicked()':
njbmediadevice.cpp:888: error: `NJB_Get_Auxpower' undeclared (first use this
   function)
njbmediadevice.cpp:889: error: `NJB_Get_Battery_Charging' undeclared (first use
   this function)
njbmediadevice.cpp:890: error: `NJB_Get_Battery_Level' undeclared (first use
   this function)
make[5]: *** [njbmediadevice.lo] Error 1
make[5]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src/mediadevice/njb'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src/mediadevice'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anderson/victor/various/amarok-1.4.5'
make: *** [all] Error 2


I cannot believe this is proving so difficult or trying to establish what exactly wrong.

Further suggestions would be much appreciated.

Victor Warner


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]