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

Author Topic: CSFML2 fails to build  (Read 4158 times)

0 Members and 1 Guest are viewing this topic.

Random

  • Newbie
  • *
  • Posts: 2
    • View Profile
CSFML2 fails to build
« on: January 02, 2012, 12:42:08 pm »
I'm trying to build on my ubuntu machine the latest git revision of CSFML, but I took these errors:

Code: [Select]
Scanning dependencies of target csfml-audio
[ 45%] Building CXX object src/SFML/Audio/CMakeFiles/csfml-audio.dir/Listener.cpp.o
[ 48%] Building CXX object src/SFML/Audio/CMakeFiles/csfml-audio.dir/Music.cpp.o
[ 51%] Building CXX object src/SFML/Network/CMakeFiles/csfml-network.dir/SocketSelector.cpp.o
/home/random/Desktop/CSFML/src/SFML/Graphics/Font.cpp: In function ‘sfGlyph sfFont_GetGlyph(sfFont*, sfUint32, unsigned int, sfBool)’:
/home/random/Desktop/CSFML/src/SFML/Graphics/Font.cpp:120:38: error: ‘class sf::Glyph’ has no member named ‘SubRect’
/home/random/Desktop/CSFML/src/SFML/Graphics/Font.cpp:121:38: error: ‘class sf::Glyph’ has no member named ‘SubRect’
/home/random/Desktop/CSFML/src/SFML/Graphics/Font.cpp:122:38: error: ‘class sf::Glyph’ has no member named ‘SubRect’
/home/random/Desktop/CSFML/src/SFML/Graphics/Font.cpp:123:38: error: ‘class sf::Glyph’ has no member named ‘SubRect’
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/Font.cpp.o] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 54%] Building CXX object src/SFML/Audio/CMakeFiles/csfml-audio.dir/Sound.cpp.o
[ 56%] Building CXX object src/SFML/Network/CMakeFiles/csfml-network.dir/TcpListener.cpp.o
/home/random/Desktop/CSFML/src/SFML/Audio/Music.cpp: In function ‘unsigned int sfMusic_GetChannelsCount(const sfMusic*)’:
/home/random/Desktop/CSFML/src/SFML/Audio/Music.cpp:130:5: error: ‘const class sf::Music’ has no member named ‘GetChannelsCount’
make[2]: *** [src/SFML/Audio/CMakeFiles/csfml-audio.dir/Music.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 59%] Building CXX object src/SFML/Network/CMakeFiles/csfml-network.dir/TcpSocket.cpp.o
[ 62%] Building CXX object src/SFML/Network/CMakeFiles/csfml-network.dir/UdpSocket.cpp.o
make[1]: *** [src/SFML/Audio/CMakeFiles/csfml-audio.dir/all] Error 2
Linking CXX shared library ../../../lib/libcsfml-network.so
[ 62%] Built target csfml-network
make: *** [all] Error 2


Is there a way to fix these errors? Thanks in advance.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CSFML2 fails to build
« Reply #1 on: January 02, 2012, 01:04:06 pm »
Use a revision of SFML which is older than "merged the 'drawables' branch into master". CSFML has not been updated yet.
Laurent Gomila - SFML developer

Random

  • Newbie
  • *
  • Posts: 2
    • View Profile
CSFML2 fails to build
« Reply #2 on: January 02, 2012, 01:43:23 pm »