I'm trying to compile an example from taglib 1.8 on ubuntu 12.04 http://taglib.github.com/
I copied an example into the directory with fileref.h and tried compiling it with g++
cp taglib-1.8/examples/tagreader.cpp taglib-1.8/taglib
cd taglib-1.8/taglib/
g++ -o testreader.exe tagreader.cpp
tagreader.cpp:28:21: fatal error: fileref.h: No such file or directory
compilation terminated.
How do I go about compiling taglib on ubuntu?
EDIT
Hi Lukas - Thanks for the response. I want to make a simple cli program to write id3 tags to mp3 files (see https://stackoverflow.com/questions/13216094/how-to-write-a-taglib-program-to-write-the-id3v1-title-and-artist-and-the-id3v2).
So far I've just untarred taglib 1.8.
(1) How do I build taglib on ubuntu 12.04? When I tried your second command I got the following error
Package taglib was not found in the pkg-config search path.
Perhaps you should add the directory containing `taglib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'taglib' found
tagreader.cpp:28:21: fatal error: fileref.h: No such file or directory
compilation terminated.
However the file taglib.pc does not even exist. The file taglib-1.8/taglib.pc.cmake does exist.
(2) Do you know how I can get `taglib.pc from it?
g++ -I. -o testreader.exe tagreader.cpp. Btw why.exefor an executable in ubuntu? – Vikas Nov 4 '12 at 5:07In file included from tagreader.cpp:28:0: ./fileref.h:29:19: fatal error: tfile.h: No such file or directory compilation terminated.– user784637 Nov 4 '12 at 5:17fileref.h. But nowfileref.hincludes another headertfile.h, whichg++is unable to find. If you check, this file is insidetoolkitdirectory. Add another-I toolkittog++. – Vikas Nov 4 '12 at 7:33$ g++ -I. -I toolkit/ -o testreader.exe tagreader.cppbut now I get the error./taglib_export.h:44:27: fatal error: taglib_config.h: No such file or directoryWhen I do a search fortaglib_config.hthe only file that shows up istaglib_config.h.cmake. How do I createtaglib_config.h.make? – user784637 Nov 4 '12 at 8:27taglib_config.hfromtaglib_config.h.cmake? – user784637 Nov 4 '12 at 8:38