Closed GoogleCodeExporter closed 9 years ago
Do you have 2 copies of taglib? The code compiles, but is complaining about 1
missing function. This sounds like your taglib/tstring.h has the correct
function listed - but the library file itself (libtag.so) does not. Not sure
what Cantata can do about this.
Original comment by craig.p....@gmail.com
on 17 Nov 2014 at 1:01
No, I have one.
I even have needed symbols in the library:
[root@bsdrookie:local/lib]# nm -C -D libtag.so.1.14.0 | grep
'TagLib::String::String('
000000000007f0e0 T TagLib::String::String(char const*, TagLib::String::Type)
000000000007efc0 T TagLib::String::String(wchar_t const*, TagLib::String::Type)
000000000007f490 T TagLib::String::String(TagLib::ByteVector const&,
TagLib::String::Type)
000000000007e910 T TagLib::String::String(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
TagLib::String::Type)
000000000007ed20 T TagLib::String::String(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
TagLib::String::Type)
000000000007e8e0 T TagLib::String::String(TagLib::String const&)
000000000007f360 T TagLib::String::String(char, TagLib::String::Type)
000000000007e870 T TagLib::String::String()
000000000007f250 T TagLib::String::String(wchar_t, TagLib::String::Type)
000000000007f0e0 T TagLib::String::String(char const*, TagLib::String::Type)
000000000007efc0 T TagLib::String::String(wchar_t const*, TagLib::String::Type)
000000000007f490 T TagLib::String::String(TagLib::ByteVector const&,
TagLib::String::Type)
000000000007e910 T TagLib::String::String(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
TagLib::String::Type)
000000000007ed20 T TagLib::String::String(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
TagLib::String::Type)
000000000007e8e0 T TagLib::String::String(TagLib::String const&)
000000000007f360 T TagLib::String::String(char, TagLib::String::Type)
000000000007e870 T TagLib::String::String()
000000000007f250 T TagLib::String::String(wchar_t, TagLib::String::Type)
Original comment by zhega...@enaza.ru
on 17 Nov 2014 at 1:35
Sorry, then I dont know what to do. It links perfectly fine under Linux,
Windows, and OSX. If it's not linking under FreeBSD, then I have no idea as to
why - I have no access to a FreeBSD system.
Original comment by craig.p....@gmail.com
on 17 Nov 2014 at 2:50
Could you please tell me where Song type is defined ? I managed to find out
that linking errors are sourced from the mangling incompatibility betweed the
libtag.so built by clang and cantata built with gcc48, and now I'm trying to to
build cantata with clang too. For some reason clang doesn't see the Song
declaration and I cannot find it myself. Thanks.
Original comment by zhega...@enaza.ru
on 18 Nov 2014 at 10:29
Song is declared in mpd/song.h
Odd that clang is causing errors under FreeBSD, whereas its fine with OSX.
Original comment by craig.p....@gmail.com
on 18 Nov 2014 at 2:56
I have a
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
I got a weird issue with it - the '#include "mpd/song.h"' line was never
working, I had to change it to '#include "song.h"' line in every file and add
'-I~/src/cantata-1.5.1/mpd' to CXXFLAGS. Then I got it built. Weird, but other
includes from mpd directory were seen by clang. Don't know what it is, I'm not
much of the programmer - to my knowlegle both alternatives are the same thing.
Original comment by zhega...@enaza.ru
on 19 Nov 2014 at 6:17
Please close it, works perfectly. Thanks a lot once again.
Original comment by zhega...@enaza.ru
on 19 Nov 2014 at 6:18
Odd. If you compile without your mods, which files does the error happen with?
At the top of tags/CMakeLists.txt if you change this from:
include_directories(${QTINCLUDES} ${TAGLIB_INCLUDES})
to:
include_directories(${QTINCLUDES} ${TAGLIB_INCLUDES} ${CMAKE_SOURCE_DIR})
Does this help?
Original comment by craig.p....@gmail.com
on 19 Nov 2014 at 9:30
Well, I've added the above anyway.
Original comment by craig.p....@gmail.com
on 20 Nov 2014 at 4:54
Issue 598 has been merged into this issue.
Original comment by craig.p....@gmail.com
on 1 Dec 2014 at 2:31
Original issue reported on code.google.com by
zhega...@enaza.ru
on 17 Nov 2014 at 10:09