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

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

Hey folks,

I've downloaded id3v2 from sourceforge - and I'm having problems compiling it...

% make
g++ -I/usr/local/include/ -DVERSION="\"0.1.11\""    -c -o convert.o convert.cpp
convert.cpp:3:21: id3/tag.h: No such file or directory
convert.cpp: In function `void DeleteTag(int, char**, int, int)':
convert.cpp:22: error: `ID3_Tag' was not declared in this scope
convert.cpp:22: error: expected `;' before "myTag"
convert.cpp:27: error: `myTag' was not declared in this scope
convert.cpp:28: error: `ID3TT_ALL' was not declared in this scope
convert.cpp:30: error: `luint' was not declared in this scope
convert.cpp:30: error: expected `;' before "nTags"
convert.cpp:34: error: `nTags' was not declared in this scope
convert.cpp:34: error: `ID3TT_ID3V1' was not declared in this scope
convert.cpp:38: error: `ID3TT_ID3V2' was not declared in this scope
convert.cpp:43: error: `ID3TT_ID3' was not declared in this scope
convert.cpp: In function `void ConvertTag(int, char**, int)':
convert.cpp:58: error: `ID3_Tag' was not declared in this scope
convert.cpp:58: error: expected `;' before "myTag"
convert.cpp:63: error: `myTag' was not declared in this scope
convert.cpp:64: error: `ID3TT_ALL' was not declared in this scope
convert.cpp:66: error: `luint' was not declared in this scope
convert.cpp:66: error: expected `;' before "nTags"
convert.cpp:68: error: `nTags' was not declared in this scope
convert.cpp:68: error: `ID3TT_ID3V2' was not declared in this scope
make: *** [convert.o] Error 1


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.

/usr/server/src/id3lib-3.8.3 % ./configure --prefix=/usr/server
/usr/server/src/id3lib-3.8.3 % make
/usr/server/src/id3lib-3.8.3 % make install
/usr/server/src/id3lib-3.8.3 % cd ../id3v2-0.1.11
/usr/server/src/id3v2-0.1.11 % make

...and thus the results you see above.

Google hasn't been too much help.  Any ideas?

Cheers.

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