7
« on: April 06, 2011, 08:52:14 pm »
I am getting the following error when building SFML-2 (commit cb1f9385825c4645dae1c233684699c6fcb6c0a7):
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp: In static member function ‘static sf::priv::GlContext* sf::priv::GlContext::New(const sf::ContextSettings&, const sf::priv::WindowImpl*, unsigned int)’:
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp:143: error: no matching function for call to ‘sf::priv::SFContext::SFContext(ContextType*&, const sf::ContextSettings&, const sf::priv::WindowImpl*&, unsigned int&)’
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:82: note: candidates are: sf::priv::SFContext::SFContext(sf::priv::SFContext*, const sf::priv::WindowImpl*, unsigned int, const sf::ContextSettings&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:70: note: sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:62: note: sf::priv::SFContext::SFContext(const sf::priv::SFContext&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp: In static member function ‘static sf::priv::GlContext* sf::priv::GlContext::New(const sf::ContextSettings&, unsigned int, unsigned int)’:
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp:160: error: no matching function for call to ‘sf::priv::SFContext::SFContext(ContextType*&, const sf::ContextSettings&, unsigned int&, unsigned int&)’
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:82: note: candidates are: sf::priv::SFContext::SFContext(sf::priv::SFContext*, const sf::priv::WindowImpl*, unsigned int, const sf::ContextSettings&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:70: note: sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:62: note: sf::priv::SFContext::SFContext(const sf::priv::SFContext&)
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2
My toolset: Xcode 4 with gcc 4.2.1. I get the same error when building release or debug, 64-bit or 32-bit.
Any help would be appreciated.
Andy