You are not logged in.

#1 2008-03-05 17:23:36

Ferhiord
Member
From: Moscow, Russia
Registered: 2007-08-14
Posts: 39

taglib

I have a problem while compiling app uses TagLib

$ make
g++    -c -o main.o main.cpp
In file included from mmdf.h:12,
                 from main.cpp:1:
/usr/include/taglib/fileref.h:29:19: error: tfile.h: No such file or directory
/usr/include/taglib/fileref.h:30:25: error: tstringlist.h: No such file or directory
In file included from mmdf.h:12,
                 from main.cpp:1:
/usr/include/taglib/fileref.h:107: error: 'File' declared as a 'virtual' field
/usr/include/taglib/fileref.h:107: error: expected ';' before '*' token
/usr/include/taglib/fileref.h:127: error: expected `)' before 'fileName'
/usr/include/taglib/fileref.h:136: error: expected `)' before '*' token
/usr/include/taglib/fileref.h:179: error: expected ';' before '*' token
/usr/include/taglib/fileref.h:216: error: 'StringList' does not name a type
/usr/include/taglib/fileref.h:250: error: expected ';' before '*' token
make: *** [main.o] Error 1
$ cat /usr/include/taglib/fileref.h | grep include
#include <tfile.h>
#include <tstringlist.h>
#include "taglib_export.h"
#include "audioproperties.h"

I use:

#include <taglib/tag.h>
#include <taglib/fileref.h>

It's obvious that it is paath error. BUT...!

For example - first string "/usr/include/taglib/fileref.h:29:19: error: tfile.h: No such file or directory"

$ ls -l /usr/include/taglib/tfile.h
-rw-r--r-- 1 root root 8861 2007-12-05 10:38 /usr/include/taglib/tfile.h

It exists!

$ cat Makefile
CC = g++
CFLAGS=$(pkg-config --cflags taglib)
LDFLAGS=$(pkg-config --libs taglib)
 
mmdf : main.o mmdf.o
        $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@
 
clean:
        rm -f *.o

P.S. Error appears when I include taglib/fileref.h
taglib version 1.4.0.svn744384-1


Sorry, if my English is not very well.

Offline

Board footer

Powered by FluxBB