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

Author Topic: [SFML2] [MAC] Compile failure during SFML build  (Read 3038 times)

0 Members and 2 Guests are viewing this topic.

trojanfoe

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
[SFML2] [MAC] Compile failure during SFML build
« on: April 06, 2011, 08:52:14 pm »
I am getting the following error when building SFML-2 (commit cb1f9385825c4645dae1c233684699c6fcb6c0a7):


Code: [Select]
[ 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

jamal

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SFML2] [MAC] Compile failure during SFML build
« Reply #1 on: April 07, 2011, 06:53:18 am »
Having the same issue, except I'm using llvm gcc (with xcodebuild).

Code: [Select]


CompileC build/src/SFML/Window/SFML.build/RelWithDebInfo/sfml-window.build/Objects-normal/x86_64/GlContext.o src/SFML/Window/GlContext.cpp normal x86_64 c++ com.apple.compilers.llvmgcc42
    cd /Users/jamal/Source/sfml-git
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O2 -DCMAKE_INTDIR="RelWithDebInfo" -Dsfml_window_EXPORTS -DSFML_EXPORTS -isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/jamal/Source/sfml-git/build/lib/RelWithDebInfo/include -I/Users/jamal/Source/sfml-git/include -I/Users/jamal/Source/sfml-git/src -I/Users/jamal/Source/sfml-git/build/src/SFML/Window/SFML.build/RelWithDebInfo/sfml-window.build/DerivedSources/x86_64 -I/Users/jamal/Source/sfml-git/build/src/SFML/Window/SFML.build/RelWithDebInfo/sfml-window.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/jamal/Source/sfml-git/build/lib/RelWithDebInfo -fPIC -c /Users/jamal/Source/sfml-git/src/SFML/Window/GlContext.cpp -o /Users/jamal/Source/sfml-git/build/src/SFML/Window/SFML.build/RelWithDebInfo/sfml-window.build/Objects-normal/x86_64/GlContext.o
/Users/jamal/Source/sfml-git/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/jamal/Source/sfml-git/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/jamal/Source/sfml-git/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/jamal/Source/sfml-git/src/SFML/Window/OSX/SFContext.hpp:70: note:                 sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/jamal/Source/sfml-git/src/SFML/Window/OSX/SFContext.hpp:62: note:                 sf::priv::SFContext::SFContext(const sf::priv::SFContext&)
/Users/jamal/Source/sfml-git/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/jamal/Source/sfml-git/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/jamal/Source/sfml-git/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/jamal/Source/sfml-git/src/SFML/Window/OSX/SFContext.hpp:70: note:                 sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/jamal/Source/sfml-git/src/SFML/Window/OSX/SFContext.hpp:62: note:                 sf::priv::SFContext::SFContext(const sf::priv::SFContext&)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[SFML2] [MAC] Compile failure during SFML build
« Reply #2 on: April 07, 2011, 08:03:39 am »
The OS X implementation is not up-to-date with the latest modifications, you'll have to wait a few more days.
Laurent Gomila - SFML developer

trojanfoe

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
[SFML2] [MAC] Compile failure during SFML build
« Reply #3 on: April 07, 2011, 08:59:43 am »
Quote from: "Laurent"
The OS X implementation is not up-to-date with the latest modifications, you'll have to wait a few more days.


OK thanks for the reply.

jamal

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SFML2] [MAC] Compile failure during SFML build
« Reply #4 on: April 07, 2011, 07:21:37 pm »
Quote from: "Laurent"
The OS X implementation is not up-to-date with the latest modifications, you'll have to wait a few more days.


Awesome, thanks! I appreciate the input :).

fatto

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SFML2] [MAC] Compile failure during SFML build
« Reply #5 on: April 08, 2011, 01:52:45 am »
Same errors.. just wait :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[SFML2] [MAC] Compile failure during SFML build
« Reply #6 on: April 08, 2011, 07:56:51 am »
You don't have to be sad, just use an older revision ;)
Laurent Gomila - SFML developer

fatto

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SFML2] [MAC] Compile failure during SFML build
« Reply #7 on: April 13, 2011, 11:26:34 am »
some update? :(

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
[SFML2] [MAC] Compile failure during SFML build
« Reply #8 on: April 13, 2011, 08:04:27 pm »
I've midterms coming up soon so you have to be patient a little bit more. Sorry guys.
SFML / OS X developer

 

anything