taglib-1.8 questions / issues

Festus Hagen festushagenlists at yahoo.com
Sun Sep 9 10:46:41 UTC 2012

Hi all,

Is this the right place to bring questions / issues to light ??
If not, My appoligies, Please point me in the right direction.

Win32 (WinXPSP3)
MinGW32 v4.6.3

Three items ..

1. I have had to make the following change to silence many warnings:
taglib.h, Line 51:
-  #    define NOMINMAX
+  // fh :)_~ MinGW32 start
+  #  if !defined(__MINGW32__)
+  #    define NOMINMAX
+  #  endif
+  // fh :)_~ MinGW32 end

2. Can these "Copying OS X content ..." actions be skipped for other then OS X. (like for Win32)

3. Example 'tagreader_c' fails when building Static, Disable the examples and it will complete, Shared works fine.

The Command line and results:

C:\Libraries\taglib-1.8>cmake -G "MinGW Makefiles" -DENABLE_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DZLIB_INCLUDE_DIR=C:\Libraries\zlib-1.2.7 -DZLIB_LIBRARY=C:\Libraries\zlib-1.2.7\libzlibstatic.a -DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_INSTALL_PREFIX=C:/Libraries/Taglib -DCMAKE_MAKE_PROGRAM=C:/Strawberry/c/bin/gmake.exe -DCMAKE_CXX_COMPILER=C:/Strawberry/c/bin/g++.exe -DBUILD_EXAMPLES=ON .
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe
-- Check for working CXX compiler: C:/Strawberry/c/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: C:/Libraries/zlib-1.2.7/libzlibstatic.a (found version "1.2.7")
-- Ensure you cppunit installed version is at least 1.12.0
-- Looking for __RTTI___ in Crun
-- Looking for __RTTI___ in Crun - not found
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Libraries/taglib-1.8

Scanning dependencies of target tag
[  1%] Building CXX object taglib/CMakeFiles/tag.dir/mpeg/mpegfile.cpp.obj
. Wack!
[ 93%] Building CXX object taglib/CMakeFiles/tag.dir/audioproperties.cpp.obj
Linking CXX static library libtag.a
Copying OS X content taglib/Headers/aifffile.h
. Wack!
Copying OS X content taglib/Headers/xmproperties.h
[ 93%] Built target tag
Scanning dependencies of target tag_c
[ 94%] Building CXX object bindings/c/CMakeFiles/tag_c.dir/tag_c.cpp.obj
C:\Libraries\taglib-1.8\bindings\c\tag_c.cpp: In function 'void taglib_set_strings_unicode(int)':
C:\Libraries\taglib-1.8\bindings\c\tag_c.cpp:51:6: warning: 'void taglib_set_strings_unicode(int)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
. Wack!
C:\Libraries\taglib-1.8\bindings\c\tag_c.cpp:273:6: warning: 'void taglib_id3v2_set_default_text_encoding(TagLib_ID3v2_Encoding)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
Linking CXX static library libtag_c.a
Copying OS X content bindings/c/Headers/tag_c.h
[ 94%] Built target tag_c
Scanning dependencies of target framelist
[ 95%] Building CXX object examples/CMakeFiles/framelist.dir/framelist.cpp.obj
Linking CXX executable framelist.exe
[ 95%] Built target framelist
Scanning dependencies of target strip-id3v1
[ 96%] Building CXX object examples/CMakeFiles/strip-id3v1.dir/strip-id3v1.cpp.obj
Linking CXX executable strip-id3v1.exe
[ 96%] Built target strip-id3v1
Scanning dependencies of target tagreader
[ 97%] Building CXX object examples/CMakeFiles/tagreader.dir/tagreader.cpp.obj
Linking CXX executable tagreader.exe
[ 97%] Built target tagreader
Scanning dependencies of target tagreader_c
[ 98%] Building C object examples/CMakeFiles/tagreader_c.dir/tagreader_c.c.obj
Linking CXX executable tagreader_c.exe
CMakeFiles\tagreader_c.dir/objects.a(tagreader_c.c.obj):tagreader_c.c:(.text.startup+0x1a): undefined reference to `_imp__taglib_set_strings_unicode'
CMakeFiles\tagreader_c.dir/objects.a(tagreader_c.c.obj):tagreader_c.c:(.text.startup+0x37): undefined reference to `_imp__taglib_file_tag'
c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\tagreader_c.dir/objects.a(tagreader_c.c.obj): bad reloc address 0x37 in section `.text.startup'
c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2: ld returned 1 exit status
gmake[2]: *** [examples/tagreader_c.exe] Error 1
gmake[1]: *** [examples/CMakeFiles/tagreader_c.dir/all] Error 2
gmake: *** [all] Error 2

Thanks y'all.

fh :)_~

More information about the taglib-devel mailing list