適当に翻訳する。
id3v2-0.1.11のmakeで以下のエラーが出た。
[M_@localhost id3v2-0.1.11]$ make
g++ -I/usr/local/include/ -DVERSION="\"0.1.11\"" -c -o convert.o convert.cpp
convert.cpp:3:21: error: id3/tag.h: そのようなファイルやディレクトリはありません
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] エラー 1
[M_@localhost id3v2-0.1.11]$
id3lib-3.8.3をインストールして解決。
インストール後、
[M_@localhost id3v2-0.1.11]$ id3v2 --help
id3v2: error while loading shared libraries: libid3-3.8.so.3: cannot open shared object file: No such file or directory
[M_@localhost id3v2-0.1.11]$
ソースコードから入れたlibid3が/usr/local/libにあるのに
export LD_LIBRARY_PATH="/usr/local/lib"
を忘れていた。id3v2を作り直し、入れ直して解決
カレンダー
カテゴリー
最新コメント
最新記事
ブログ内検索
広告