taglib-devel Digest, Vol 84, Issue 18

Mathias Panzenböck grosser.meister.morti at gmx.net
Tue Jun 28 14:16:49 CEST 2011


No that's not correct. You should not use absolute paths in includes.

Use:
#include <tag.h>
#include <fileref.h>

And try to compile with:
cd /home/phongcao/dingo
g++ -g -Wall main.cc -o main `pkg-config gtkmm-2.4 --cflags --libs` `taglib-config --cflags --libs`

However, I use cmake (and g++) to compile programs. But there it is basically the same, just I do 
not call taglib-config by hand but instead use amarok's FindTaglib.cmake script.


On 06/28/2011 02:02 PM, Phong Cao wrote:
> Hello Kyle,
>
> Yeah I do not know what those lines mean. But these are the "#include <>" lines in my program:
>
> #include </usr/local/include/taglib/tag.h>
> #include </usr/local/include/taglib/fileref.h>
>
> Is this correct? If it is then how I can fix the error message returned by g++?
>
> On Tue, Jun 28, 2011 at 6:00 AM, <taglib-devel-request at kde.org
> <mailto:taglib-devel-request at kde.org>> wrote:
>
>     Send taglib-devel mailing list submissions to
>     taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     https://mail.kde.org/mailman/listinfo/taglib-devel
>     or, via email, send a message with subject or body 'help' to
>     taglib-devel-request at kde.org <mailto:taglib-devel-request at kde.org>
>
>     You can reach the person managing the list at
>     taglib-devel-owner at kde.org <mailto:taglib-devel-owner at kde.org>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of taglib-devel digest..."
>
>
>     Today's Topics:
>
>        1. Compile C++/TagLib with g++? (Phong Cao)
>        2. Re: Compile C++/TagLib with g++? (Kyle)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Tue, 28 Jun 2011 00:52:37 -0400
>     From: Phong Cao <phngcv at gmail.com <mailto:phngcv at gmail.com>>
>     Subject: Compile C++/TagLib with g++?
>     To: taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>     Message-ID: <BANLkTikWa1fCk_7R5Pqt90OO1fA29AfPLA at mail.gmail.com
>     <mailto:BANLkTikWa1fCk_7R5Pqt90OO1fA29AfPLA at mail.gmail.com>>
>     Content-Type: text/plain; charset="iso-8859-1"
>
>     Hello everybody,
>
>     I am trying to build a small music manager that uses TagLib to read metadata
>     from audio streams. However, I was unable to compile the program. Here is
>     what I tried:
>
>     g++ -g /home/phongcao/dingo/main.cc -o /home/phongcao/dingo/main `pkg-config
>     taglib-config --cflags --libs gtkmm-2.4`
>
>     And this was what g++ returned:
>
>     Package taglib-config was not found in the pkg-config search path.
>     Perhaps you should add the directory containing `taglib-config.pc'
>     to the PKG_CONFIG_PATH environment variable
>     No package 'taglib-config' found
>
>     According to the TagLib API documentation: "TagLib installs a taglib-config
>     and pkg-config file to make it easier to integrate into various build
>     systems".
>
>     However, I am a total newbie on TagLib and do not know how to compile it
>     using g++, and there was nothing more than the above statement in the API
>     documentation.
>
>     Does any of you guys here know how to compile TagLib with g++? if so please
>     share!
>
>     Thank you for reading my message! Have a good day!
>
>
>     Best regards,
>
>     --
>     Phong V. Cao
>     phngcv at gmail.com <mailto:phngcv at gmail.com>
>     caoph at rider.edu <mailto:caoph at rider.edu>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110628/95dee97d/attachment-0001.htm
>
>     ------------------------------
>
>     Message: 2
>     Date: Tue, 28 Jun 2011 01:26:19 -0400
>     From: Kyle <gonemad at gmail.com <mailto:gonemad at gmail.com>>
>     Subject: Re: Compile C++/TagLib with g++?
>     To: taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>     Message-ID: <BANLkTik258APAgL4o6-kxAx4MGXmU_R90g at mail.gmail.com
>     <mailto:BANLkTik258APAgL4o6-kxAx4MGXmU_R90g at mail.gmail.com>>
>     Content-Type: text/plain; charset="iso-8859-1"
>
>     isnt there a NO_CONFIG define or something? i remember setting something
>     like that when i built it
>
>     On Tue, Jun 28, 2011 at 12:52 AM, Phong Cao <phngcv at gmail.com <mailto:phngcv at gmail.com>> wrote:
>
>      > Hello everybody,
>      >
>      > I am trying to build a small music manager that uses TagLib to read
>      > metadata from audio streams. However, I was unable to compile the program.
>      > Here is what I tried:
>      >
>      > g++ -g /home/phongcao/dingo/main.cc -o /home/phongcao/dingo/main
>      > `pkg-config taglib-config --cflags --libs gtkmm-2.4`
>      >
>      > And this was what g++ returned:
>      >
>      > Package taglib-config was not found in the pkg-config search path.
>      > Perhaps you should add the directory containing `taglib-config.pc'
>      > to the PKG_CONFIG_PATH environment variable
>      > No package 'taglib-config' found
>      >
>      > According to the TagLib API documentation: "TagLib installs a taglib-config
>      > and pkg-config file to make it easier to integrate into various build
>      > systems".
>      >
>      > However, I am a total newbie on TagLib and do not know how to compile it
>      > using g++, and there was nothing more than the above statement in the API
>      > documentation.
>      >
>      > Does any of you guys here know how to compile TagLib with g++? if so please
>      > share!
>      >
>      > Thank you for reading my message! Have a good day!
>      >
>      >
>      > Best regards,
>      >
>      > --
>      > Phong V. Cao
>      > phngcv at gmail.com <mailto:phngcv at gmail.com>
>      > caoph at rider.edu <mailto:caoph at rider.edu>
>      >
>      >
>      >
>      > _______________________________________________
>      > taglib-devel mailing list
>      > taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>      > https://mail.kde.org/mailman/listinfo/taglib-devel
>      >
>      >
>
>
>     --
>     -Kyle
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20110628/92576c0a/attachment-0001.htm
>
>     ------------------------------
>
>     _______________________________________________
>     taglib-devel mailing list
>     taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>     https://mail.kde.org/mailman/listinfo/taglib-devel
>
>
>     End of taglib-devel Digest, Vol 84, Issue 18
>     ********************************************
>
>
>
>
> --
> Phong V. Cao
> phngcv at gmail.com <mailto:phngcv at gmail.com>
> caoph at rider.edu <mailto:caoph at rider.edu>
>
>
>
>
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel



More information about the taglib-devel mailing list