I recently merged from Windows to Ubuntu and so far it's going fairly well. Now I'm trying to set up a development environment thus I need to freshly build SFML and I was following this guide
http://sfmlcoder.wordpress.com/2011/08/16/building-sfml-2-0-with-make-for-gcc/:
I installed all the dependencies and ran cmake and then make and all goes well until it's time to build the sound files. I get an error:
[ 87%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o
/home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp: In static member function ‘static sf_count_t sf::priv::SoundFile::Stream::read(void*, sf_count_t, void*)’:
/home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:388:56: error: no matching function for call to ‘min(sf_count_t&, sf::Int64)’
/home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:388:56: note: candidates are:
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/string:42,
from /home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.hpp:34,
from /home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:28:
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.7/bits/stl_algobase.h:187:5: note: template argument deduction/substitution failed:
/home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:388:56: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘sf::Int64 {aka long long int}’)
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
from /usr/include/c++/4.7/string:42,
from /home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.hpp:34,
from /home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:28:
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
/usr/include/c++/4.7/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
/home/vkarlsson/Skrivbord/SFML-master/src/SFML/Audio/SoundFile.cpp:388:56: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘sf::Int64 {aka long long int}’)
make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2
And I'm not sure how to proceed, I though someone here might know.
Kind regards Moonkis