Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Build problems with amarok

2 views
Skip to first unread message

stan

unread,
Dec 29, 2008, 11:47:49 AM12/29/08
to FreeBSD Ports List
I'm building a new machine which I cvsup'd yesterday. I am having trouble
getting the amarok port to compile. here is the end of the compile
failure:


/usr/local/bin/moc ./njbmediadevice.h -o njbmediadevice.moc.cpp
/bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src -I../../../../amarok/src -I../../../../amarok/src/amarokcore -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT njbmediadevice.moc.lo -MD -MP -MF .deps/njbmediadevice.moc.Tpo -c -o njbmediadevice.moc.lo njbmediadevice.moc.cpp
mv -f .deps/njbmediadevice.moc.Tpo .deps/njbmediadevice.moc.Plo
/bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=link c++ -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -avoid-version -module -no-undefined -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -R /usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib -D_THREAD_SAFE -pthread -L/usr/local/lib -L/usr/local/lib -o libamarok_njb-mediadevice.la -rpath /usr/local/lib/kde3 njbmediadevice.lo playlist.lo track.lo njbmediadevice.moc.lo ../../../../amarok/src/libamarok.la -lkdeui -lkdecore -lnjb -Wl,-export-dynamic -L/usr/local/lib -ljpeg -L/usr/local/lib
gmake[5]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/njb'
Making all in mtp
gmake[5]: Entering directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'
/bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../amarok/src -I../../../../amarok/src -I../../../../amarok/src/amarokcore -I../../../../amarok/src/amarokcore -I../../../../amarok/src/engine -I../../../../amarok/src/engine -I../../../../amarok/src/mediadevice -I/usr/local/include/taglib -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT mtpmediadevice.lo -MD -MP -MF .deps/mtpmediadevice.Tpo -c -o mtpmediadevice.lo mtpmediadevice.cpp
/usr/local/include/libmtp.h: In member function 'virtual MediaItem* MtpMediaDevice::copyTrackToDevice(const MetaBundle&)':
/usr/local/include/libmtp.h:489: error: too many arguments to function 'int LIBMTP_Send_Track_From_File(LIBMTP_mtpdevice_t*, const char*, LIBMTP_track_t*, int (*)(uint64_t, uint64_t, const void*), const void*)'
mtpmediadevice.cpp:302: error: at this point in file
mtpmediadevice.cpp: In member function 'uint32_t MtpMediaDevice::getDefaultParentId()':
mtpmediadevice.cpp:383: warning: deprecated conversion from string constant to 'char*'
/usr/local/include/libmtp.h: In member function 'LIBMTP_album_t* MtpMediaDevice::getOrCreateAlbum(QPtrList<MediaItem>*)':
/usr/local/include/libmtp.h:533: error: too many arguments to function 'int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t*, LIBMTP_album_t*)'
mtpmediadevice.cpp:532: error: at this point in file
/usr/local/include/libmtp.h: In member function 'uint32_t MtpMediaDevice::createFolder(const char*, uint32_t)':
/usr/local/include/libmtp.h:508: error: too few arguments to function 'uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char*, uint32_t, uint32_t)'
mtpmediadevice.cpp:611: error: at this point in file
/usr/local/include/libmtp.h: In member function 'void MtpMediaDevice::playlistFromItem(MtpMediaItem*)':
/usr/local/include/libmtp.h:521: error: too many arguments to function 'int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t*, LIBMTP_playlist_t*)'
mtpmediadevice.cpp:916: error: at this point in file
gmake[5]: *** [mtpmediadevice.lo] Error 1
gmake[5]: Leaving directory `/usr/ports/audio/amarok/work/amarok-1.4.10/amarok/src/mediadevice/mtp'

Stop in /usr/ports/audio/amarok.
*** Error code 1

Stop in /usr/ports/audio/amarok.
# ^D exit

Script done on Mon Dec 29 11:33:50 2008

Can anyne sugest how to resolve this?

--
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.

Max Brazhnikov

unread,
Dec 29, 2008, 2:18:04 PM12/29/08
to freebs...@freebsd.org, stan, pesho....@gmail.com, ste...@freebsd.org
On Mon, 29 Dec 2008 11:47:49 -0500, stan wrote:
> I'm building a new machine which I cvsup'd yesterday. I am having trouble
> getting the amarok port to compile. here is the end of the compile
> failure:
> Can anyne sugest how to resolve this?
amarok was broken with libmtp update to 0.3.1 (ports/126905). Expectation that
amarok will be updated soon is not right -- amarok2 (which is for KDE 4) will
be added as separate port. So someone should recreate libmtp-0.2 for amarok.

Max


Max Brazhnikov

unread,
Dec 29, 2008, 2:41:33 PM12/29/08
to freebs...@freebsd.org, stan

in the meantime you can build amarok without mtp support.

Max

Diego Depaoli

unread,
Dec 29, 2008, 2:49:36 PM12/29/08
to Max Brazhnikov, stan, freebs...@freebsd.org
Put attached patch (taken from gentoo) into amarok/files and rebuild.
It worked for me

Cheers
--
Diego Depaoli

patch-amarok_src_mediadevice_mtp_mtpmediadevice.cpp

Pav Lucistnik

unread,
Dec 30, 2008, 1:17:22 PM12/30/08
to Diego Depaoli, Max Brazhnikov, stan, freebs...@freebsd.org
Diego Depaoli píše v po 29. 12. 2008 v 20:49 +0100:

Added the patch to the port. Thank you!

--
Pav Lucistnik <p...@oook.cz>
<p...@FreeBSD.org>
Your sig line (k) was stolen! -more- There is a puff of smoke!

signature.asc
0 new messages