Giter Site home page Giter Site logo

Compile error with new patch. about lastfmlib HOT 4 CLOSED

dirkvdb avatar dirkvdb commented on August 16, 2024
Compile error with new patch.

from lastfmlib.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Hi,

I thought I'd try apply the new patch against a clean Mediatomb 0.12 (2018). I 
also
encountered a failure to build, see the log extract below.

mv -f .deps/libmediatomb_a-exceptions.Tpo .deps/libmediatomb_a-exceptions.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src
-I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. 

-I/usr/include/mozjs -I/usr/include/taglib       -pthread         -g -O2  -MT
libmediatomb_a-fd_io_handler.o -MD -MP -MF 
.deps/libmediatomb_a-fd_io_handler.Tpo -c
-o libmediatomb_a-fd_io_handler.o `test -f '../src/fd_io_handler.cc' || echo
'./'`../src/fd_io_handler.cc
mv -f .deps/libmediatomb_a-fd_io_handler.Tpo 
.deps/libmediatomb_a-fd_io_handler.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src
-I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. 

-I/usr/include/mozjs -I/usr/include/taglib       -pthread         -g -O2  -MT
libmediatomb_a-file_io_handler.o -MD -MP -MF 
.deps/libmediatomb_a-file_io_handler.Tpo
-c -o libmediatomb_a-file_io_handler.o `test -f '../src/file_io_handler.cc' || 
echo
'./'`../src/file_io_handler.cc
mv -f .deps/libmediatomb_a-file_io_handler.Tpo 
.deps/libmediatomb_a-file_io_handler.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src
-I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. 

-I/usr/include/mozjs -I/usr/include/taglib       -pthread         -g -O2  -MT
libmediatomb_a-file_request_handler.o -MD -MP -MF
.deps/libmediatomb_a-file_request_handler.Tpo -c -o
libmediatomb_a-file_request_handler.o `test -f '../src/file_request_handler.cc' 
||
echo './'`../src/file_request_handler.cc
../src/file_request_handler.cc:70:24: error: lastfm.h: No such file or directory
../src/file_request_handler.cc: In member function ‘virtual 
zmm::Ref<IOHandler>
FileRequestHandler::open(const char*, File_Info*, UpnpOpenFileMode)’:
../src/file_request_handler.cc:465: error: ‘LastFm’ has not been declared
make[2]: *** [libmediatomb_a-file_request_handler.o] Error 1
make[2]: Leaving directory `/root/mediatomb/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mediatomb'
make: *** [all] Error 2


My build procedure is as following on Ubuntu Hardy 8.04.2 LTS i386.

First install the log4cpp library, which is used by lastfmlib to log its 
activity.

 sudo aptitude install liblog4cpp5-dev

Fetch the lastfmlib source and the mediatomb patch.

 wget http://lastfmlib.googlecode.com/files/lastfmlib-0.1.3.tar.gz

Build lastfmlib.

 tar xvfz lastfmlib-0.1.3.tar.gz
 cd lastfmlib-0.1.3
 ./configure --prefix=/usr/local --enable-logging
 make
 sudo make install
 sudo ldconfig

Compile Mediatomb

 sudo aptitude install libsqlite3-dev libtag1-dev libexpat1-dev libexif-dev
libmp4v2-dev libmagic-dev libcurl4-openssl-dev libmozjs-dev

 svn co https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
 wget http://lastfmlib.googlecode.com/svn/trunk/mediatomb.patch
 cd mediatomb
 patch -p0 < ../mediatomb.patch
 autoreconf -i
 ./configure --prefix=/usr/local
 make
 sudo make install
 ldconfig

Hope the above is helpful.

Original comment by flexiondotorg on 4 Feb 2009 at 11:06

from lastfmlib.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Just compared the old and new patch. lastfm.h and lastfm.cc are missing in the 
new patch.

Original comment by flexiondotorg on 4 Feb 2009 at 11:14

from lastfmlib.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
dirk.vdb posted this over at sourceforge.net

"Damn I forgot to add the lastfm.h and lastfm.cc files to the patch. I will fix 
this 
tomorrow, as I don't have access to my computer now."

Original comment by [email protected] on 4 Feb 2009 at 11:15

from lastfmlib.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Ok the patch has been updated now, feel free to try it again.

Original comment by dirk.vdb on 5 Feb 2009 at 7:48

  • Changed state: Fixed

from lastfmlib.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.