Fórum » Last.fm Client Support

problem installing on Fedora 9

 
  • problem installing on Fedora 9

    Get the following when I run 'make';


    [root@localhost last.fm-1.4.2.58240]# make
    cd src/libUnicorn/ && make -f Makefile
    make[1]: Entering directory `/home/jrohde/last.fm/last.fm-1.4.2.58240/src/libUnicorn'
    g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -w -D_REENTRANT -fPIC -DNBREAKPAD -DLINUX -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtSql -I/usr/include -I../../src -I../../build -I. -I../../build/LastFmTools/release -I../../build -o ../../build/LastFmTools/release/CachedHttp.o CachedHttp.cpp
    make[1]: g++: Command not found
    make[1]: *** [../../build/LastFmTools/release/CachedHttp.o] Error 127
    make[1]: Leaving directory `/home/jrohde/last.fm/last.fm-1.4.2.58240/src/libUnicorn'
    make: *** Error 2


    any pointers?

  • it's not a solution for your problem, but in livna repo there is lastfm client rpm package

    • dougma disse...
    • Alumni
    • Jul 31 2008, 11h50

    Re: problem installing on Fedora 9

    dethtopop said:
    Get the following when I run 'make';

    make[1]: g++: Command not found

    any pointers?


    You need to install g++ (the gnu c++ compiler)

  • Re: Re: problem installing on Fedora 9

    dougma said:
    dethtopop said:
    Get the following when I run 'make';

    make[1]: g++: Command not found

    any pointers?



    You need to install g++ (the gnu c++ compiler)



    I should have know that, thanks.

    I installed the gnu c++ compiler and was able to run make command and it seems to have gone well but if i could get some feedback on the last few lines, cause I still can't seem to get it to run the player when I invoke the last.fm.sh script.

    here they are;

    cd src/libFingerprint/fplib/pro_qmake/ && /usr/lib64/qt4/bin/qmake-qt4 fplib.pro -unix -config release -o Makefile.fplib
    cd src/libFingerprint/fplib/pro_qmake/ && make -f Makefile.fplib
    make[1]: Entering directory `/home/jrohde/last.fm/last.fm-1.4.2.58240/src/libFingerprint/fplib/pro_qmake'
    g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -w -fPIC -DNBREAKPAD -DLINUX -DNDEBUG -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I../../../../src -I../../../../build -I../../../libMoose -I../../../libUnicorn -I../include -I../src -I../../libs/fftw/src/api -I../../../../res/libsamplerate -I../../../../build -o ../../../../build/fplib/release/FingerprintExtractor.o ../src/FingerprintExtractor.cpp
    ../src/FingerprintExtractor.cpp: In member function ‘bool fingerprint::FingerprintExtractor::process(const short int*, size_t, bool)’:
    ../src/FingerprintExtractor.cpp:445: error: ‘memcpy’ was not declared in this scope
    make[1]: *** [../../../../build/fplib/release/FingerprintExtractor.o] Error 1
    make[1]: Leaving directory `/home/jrohde/last.fm/last.fm-1.4.2.58240/src/libFingerprint/fplib/pro_qmake'
    make: *** Error 2


    thanks again

  • if you haven't gathered, compiling is a fairly new task for me ;)

    • dougma disse...
    • Alumni
    • Jul 31 2008, 17h49
    dethtopop said:
    if you haven't gathered, compiling is a fairly new task for me ;)


    That's ok...

    I just tried to download the source tar-ball but the link on http://www.last.fm/download is 404.

    But I would guess that before trying make again you should re-run configure now that you have a working c++ compiler. ie: if it uses configure... I couldn't check.

    If no configure then try building again from scratch on a fresh source tree. If you follow... :)

  • Think I follow, I will try that first chance I get, at the moment I have a 2 yr old running wild.

    Will post again with the results

  • OK so here is what I did step by step

    ./configure

    ==> Last.fm Configure
    ==> Checking for qmake...
    ==> Checking the installed version of Qt is correct...
    ==> Generating Makefiles...
    Good, your configure is finished. Now type 'make'
    If you have problems during the build, consult the README file.

    make

    Now this next part is quite long, so I am only adding the last few lines of the make output.

    ..........
    mv -f libMoose.so.1.0.0 libMoose.so libMoose.so.1 libMoose.so.1.0 ../../bin/
    make[1]: Leaving directory `/home/jrohde/Desktop/last.fm/last.fm-1.4.2.58240/src/libMoose'
    cd src/libFingerprint/fplib/pro_qmake/ && /usr/lib64/qt4/bin/qmake-qt4 fplib.pro -unix -config release -o Makefile.fplib
    cd src/libFingerprint/fplib/pro_qmake/ && make -f Makefile.fplib
    make[1]: Entering directory `/home/jrohde/Desktop/last.fm/last.fm-1.4.2.58240/src/libFingerprint/fplib/pro_qmake'
    g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -w -fPIC -DNBREAKPAD -DLINUX -DNDEBUG -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I../../../../src -I../../../../build -I../../../libMoose -I../../../libUnicorn -I../include -I../src -I../../libs/fftw/src/api -I../../../../res/libsamplerate -I../../../../build -o ../../../../build/fplib/release/FingerprintExtractor.o ../src/FingerprintExtractor.cpp
    ../src/FingerprintExtractor.cpp: In member function ‘bool fingerprint::FingerprintExtractor::process(const short int*, size_t, bool)’:
    ../src/FingerprintExtractor.cpp:445: error: ‘memcpy’ was not declared in this scope
    make[1]: *** [../../../../build/fplib/release/FingerprintExtractor.o] Error 1
    make[1]: Leaving directory `/home/jrohde/Desktop/last.fm/last.fm-1.4.2.58240/src/libFingerprint/fplib/pro_qmake'
    make: *** Error 2


    am I missing some libs? I am not fully certain, but I look at the ERROR 1 ERROR 2 part of the output and it looks to me that this could be the case, but I want to refer to someone a bit more knowledgeable in this for confirmation on whether or not this is the case.

    thanks

    • mafflix disse...
    • Assinante
    • Ago 1 2008, 14h35
    Hi.

    You're using a newer version of gcc/g++ which is more strict about requiring certain includes. That's what the memcpy error is about. This can be fixed pretty quickly though.

    Edit the following files to add the listed include statements. Put them with the other includes near the beginning of the file.

    file: src/libFingerprint/fplib/src/FingerprintExtractor.cpp
    #include <cstring>

    file: src/libFingerprint/fplib/src/OptFFT.cpp
    #include <cstdlib>

    file: src/libFingerprint/MP3_Source_Qt.cpp
    #include <climits>
    #include <cstdlib>

    Now run 'make' again from the top level source directory. It should successfully compile, assuming that you have installed all of the necessary -devel packages.

  • Thanks mafflix, here I am using Gentoo, and your fix help me.

    • sscanf disse...
    • Usuário
    • Ago 22 2008, 14h45
    you can also try to use older version of gcc

    • cbiggins disse...
    • Assinante
    • Set 4 2008, 4h03

    Repo, baby!

    Seriously, like sapunidze said, just install from yum using the livna repo. So much easier in all respects.
    rpm.livna.org - get their repo rpm and install it, then you'll be able to install crap loads more through yum.

    • Adesso21 disse...
    • Usuário
    • Fev 26 2009, 9h06

    Repo this repo that...

    cbiggins,

    Do you know if the rpms are available on the new repositories? As far as I know Livna is not going to be continued, as Fedora is now using a new Livna/Something else server to try combine more rpms. Not sure what it is called, but FC10 and 11 has this.

    Just wondering, cause I would love to have the player/scrobbler(weird name) on my Fedora box. If not, one can always make/config the tar ball, but I like the yellow dog update manager, it makes things easy.

    Have a great day :)

Usuários anônimos não podem postar mensagens. É preciso fazer login ou criar uma conta para postar nos fóruns.