I tried to compile new revision:
$ svn revert ./
$ svn up ./
Updating '.':
At revision 2661.
configure script and autoreconf works fine with automake-1.11!
libvcmi compiled without errors (thanks, it’s great work!), but vcmiclient-CVideoHandler.o
compile with many warnings of deprecated declarations:
CXX vcmiclient-CVideoHandler.o
CVideoHandler.cpp: In constructor 'CVideoPlayer::CVideoPlayer()':
CVideoHandler.cpp:657:2: warning: 'int av_register_protocol2(URLProtocol*, int)' is deprecated (declared at /usr/local/include/libavformat/avio.h:214) -Wdeprecated-declarations]
CVideoHandler.cpp:657:59: warning: 'int av_register_protocol2(URLProtocol*, int)' is deprecated (declared at /usr/local/include/libavformat/avio.h:214) -Wdeprecated-declarations]
CVideoHandler.cpp: In member function 'bool CVideoPlayer::open(std::string, bool, bool)':
CVideoHandler.cpp:692:17: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1170) -Wdeprecated-declarations]
CVideoHandler.cpp:692:67: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1170) -Wdeprecated-declarations]
CVideoHandler.cpp:702:17: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1170) -Wdeprecated-declarations]
CVideoHandler.cpp:702:122: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1170) -Wdeprecated-declarations]
after this vcmiclient compile, but collect2 drop with many-many errors:
CCastleInterface.cpp:1078: more undefined references to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)' follow
vcmiclient-CCastleInterface.o: In function `CBuildWindow::getTextForState(int)':
/usr/home/admin/VCMI/SVN/trunk/client/CCastleInterface.cpp:1446: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
char, std::char_traits<char>, std::allocator<char> >&&)'
vcmiclient-CCastleInterface.o: In function `RecruitArea':
/usr/home/admin/VCMI/SVN/trunk/client/CCastleInterface.cpp:1660: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
vcmiclient-CCastleInterface.o: In function `CBlacksmithDialog':
/usr/home/admin/VCMI/SVN/trunk/client/CCastleInterface.cpp:1831: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'...
....&&&)':
/usr/local/lib/gcc46/include/c++/bits/stl_list.h:1524: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
vcmiclient-GUIClasses.o: In function `pair<std::basic_string<char>, int>':
/usr/local/lib/gcc46/include/c++/bits/stl_pair.h:137: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
vcmiclient-mapHandler.o: In function `pair<std::basic_string<char>, CDefEssential*, void>':
/usr/local/lib/gcc46/include/c++/bits/stl_pair.h:132: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
vcmiclient-mapHandler.o: In function `pair<std::basic_string<char>, CDefEssential*>':
/usr/local/lib/gcc46/include/c++/bits/stl_pair.h:137: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
/usr/local/lib/gcc46/include/c++/bits/stl_pair.h:137: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)'
collect2: ld returned 1 exit status
gcc version used:
$ gcc46 --version
gcc46 (FreeBSD Ports Collection) 4.6.3 20111202 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Maybe I need to use gcc47 with special flags? Like:
CXXFLAGS = -Wall -I /usr/local/lib/gcc47/include/ -O2 -std=c++0x