Ok, I seem to have got this figured out. We need to include the location of the header files in the compiler options. Effectively we need to have something like <br><br>g++ something something -I /usr/include/taglib yada yada.<br>
<br>i.e. in the Makefile. We also need to have -ltag included as a link.<br><br>Effectively, in the Makefile, this is what it translates to:<br><br>CXXFLAGS      = -pipe -I /usr/include/taglib -I /usr/include/taglib-extras -g -D_REENTRANT -Wall -W $(DEFINES)<br>
LIBS          = $(SUBLIBS)  -L/usr/lib -ltag -lQtGui -lQtCore -lpthread<br><br>(note the -ltag in the LIBS variable, taglib-extras in CXXFLAGS might not be required)<br><br>and if you compile it now with make, you&#39;ll find everything compiling fine.<br>
<br>In qt-creator, these values can be set by editing the .pro file of your project and adding in the following variables:<br><br>QMAKE_CXXFLAGS += -I /usr/include/taglib -I /usr/include/taglib-extras<br>QMAKE_LIBS += -ltag<br>
<br>This will make the necessary modifications to the Makefile when you build the project.<br><br>I hope someone finds this useful. It took me a day of googling, searching on ubuntu forums and a helpful dev at #qt-creator on freenode to figure this out.<br>
<br>Cheers!<br>Plasty<br><br><br><br><br><br><div class="gmail_quote">On Fri, Nov 27, 2009 at 12:22 AM, Plasty Grove <span dir="ltr">&lt;<a href="mailto:plasty.grove@gmail.com">plasty.grove@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi all,<br><br>I&#39;m unable to figure out how to set the taglib include
directory with my project in qt-creator. I&#39;ve tried setting the
CXXFLAGS option to -I /usr/include/taglib and also tried CFLAGS under
the build config. But it&#39;s just refusing to build. Can someone please
help me out with this?<br>
<br>Thanks!<br><font color="#888888">Plasty</font>
</div></div></blockquote></div><br>