robinst/taglib-ruby — Issue #6: Windows Gem Compile/Installation Issue
Author: chrisgraf
Created: 2011-12-19 15:00:59+00:00
State: open

My Environment:
Windows 7
Ruby 1.9.3
DevKit tdm-32-4.5.2-20110712-1620-sfx
Taglib-binaries from: http://users.physik.fu-berlin.de/~mkarcher/mingwstuff/taglib-devel.zip (as it were the only mingw binaries I could find) - it seems to be 1.6.3 (see https://wiki.physik.fu-berlin.de/linux-minidisc/doku.php?id=compilingwithmingw)

gem install taglib-ruby gives me the following error:

C:/Ruby193/bin/ruby.exe extconf.rb
checking for main() in -lstdc++... yes
checking for main() in -ltag... yes
creating Makefile

make
generating taglib_base-i386-mingw32.def
compiling taglib_base_wrap.cxx
cc1plus.exe: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus.exe: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
taglib_base_wrap.cxx: In function 'VALUE _wrap_File_name(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:2835:20: error: no matching function for call to 'TagLib::FileName::FileName()'
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx: In function 'VALUE _wrap_new_FileRef__SWIG_1(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4074:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4093:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
taglib_base_wrap.cxx: In function 'VALUE _wrap_new_FileRef__SWIG_2(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4117:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4133:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
taglib_base_wrap.cxx: In function 'VALUE _wrap_new_FileRef__SWIG_3(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4152:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4165:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
taglib_base_wrap.cxx: In function 'VALUE _wrap_FileRef_create__SWIG_0(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4546:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4566:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
taglib_base_wrap.cxx: In function 'VALUE _wrap_FileRef_create__SWIG_1(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4589:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4606:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
taglib_base_wrap.cxx: In function 'VALUE _wrap_FileRef_create__SWIG_2(int, VALUE*, VALUE)':
taglib_base_wrap.cxx:4624:46: error: call of overloaded 'FileName(int)' is ambiguous
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:44:5: note: candidates are: TagLib::FileName::FileName(const char*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:43:5: note: TagLib::FileName::FileName(const wchar_t*)
c:\users\graf\downloads\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/taglib/tfile.h:41:3: note: TagLib::FileName::FileName(const TagLib::FileName&)
taglib_base_wrap.cxx:4638:51: error: invalid cast from type 'char*' to type 'TagLib::FileName'
make: *** [taglib_base_wrap.o] Error 1

Could somebody help me to get taglib-ruby running on win32?