home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] ID3v2 Tagging for MP3s (Can't compile id3v2)

On 07/03/07, Bart Trojanowski <bart-oclug [ at ] jukie [ dot ] net> wrote:
* C.T. Paterson <i [ dot ] adore [ dot ] my [ dot ] 64 [ at ] gmail [ dot ] com> [070307 20:14]:
> I have installed id3lib 3.8.3 - although it's in /usr/server as
> opposed to /usr/local (I'm trying to do this on a file/app server).
> ie.

From source?  So, you're not running Debian then. :)

Slackware...I'm a sucker for punishment.  ;>

My workstation is Ubuntu (debian based, no?), so it'll do in a pinch -
but I much prefer this to be in the server.

The id3v2 package seems to lack configure / cmake love.

Indeed.

Given that you installed id3lib in /usr/server ...
can you try something like:

% cd id3v2-0.1.11
% make CXXFLAGS="-I/usr/server/include" LDFLAGS="-L/usr/server/lib"

That helped a great deal - got me all the way to...

g++ -I/usr/server/include   -c -o id3v2.o id3v2.cpp
id3v2.cpp: In function `void PrintVersion(char*)':
id3v2.cpp:66: error: `VERSION' was not declared in this scope
make: *** [id3v2.o] Error 1


I cracked open the file - and VERSION seems to be used when displaying
the version of the file.  A line that could be safely commented out if
necessary, I reasoned - so I did.  Then it built fine.

If anyone knows how id3v2.cpp is supposed to get its mitts on VERSION
- I'd be interested to hear it - but otherwise, I think I can give
this a whirl.

Thanks, Bart!


--
"My country is the world, and my religion is to do good."
                                       -- Thomas Paine