taglib with autoconf and automake - help please

Lukáš Lalinský lalinsky at gmail.com
Fri Aug 18 17:42:07 CEST 2006


Bartek Grychtol wrote:
> Hello, 
> 
> I wrote a little file conversion program in C++ using TagLib, and now I wanted 
> to make it a proper GNU project with autoconf and automake. I am completely 
> knew to these tools and admittedly don't really know what I am doing. I was 
> hacking around the whole day yesterday, but couldn't figure out how to write 
> the Makefile.am and configure.ac such that I get my program to compile again. 
> I don't seem to be able to invoke the taglib-config properly, I think. My 
> program used to compile with the line provided in the TagLib Documentation:
> g++ taglib-test.cpp `taglib-config --cflags --libs` -o taglib-test
> I would be grateful for any and all helpful suggestions in this regard.

I personally use AC_CHECK_TAGLIB [1] in configure.ac, which exports two
variables TAGLIB_LIBS and TAGLIB_CFLAGS, and then I use these in Makefile.am.

Lukáš

[1] http://autoconf-archive.cryp.to/ac_check_taglib.html


More information about the taglib-devel mailing list