Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I'm getting errors when trying to build sfml2 in Ubuntu  (Read 1418 times)

0 Members and 1 Guest are viewing this topic.

Moonkis

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
I'm getting errors when trying to build sfml2 in Ubuntu
« on: May 10, 2013, 01:17:54 pm »
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:
Quote
[ 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: I'm getting errors when trying to build sfml2 in Ubuntu
« Reply #1 on: May 10, 2013, 03:53:12 pm »
It's fixed.
Laurent Gomila - SFML developer

 

anything