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

Author Topic: Problem building CSFML Master on linux  (Read 5175 times)

0 Members and 1 Guest are viewing this topic.

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Problem building CSFML Master on linux
« on: April 14, 2015, 10:00:42 am »
Hello,
I'm currently trying to build the CSFML master branch on linux. But I get the following error:

[ 46%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o                                                                  
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:54:26: Fehler: in Konflikt stehenden Rückgabetyp für »virtual unsigned int sfShapeImpl::getPointCount() const« angegeben
     virtual unsigned int getPointCount() const
                          ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:196:25: Fehler:   »virtual std::size_t sf::Shape::getPointCount() const« wird überschrieben
     virtual std::size_t getPointCount() const = 0;
                         ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:87:25: Fehler: Feld »sfShape::This« kann nicht als vom abstrakten Typ »sfShapeImpl« deklariert werden
     sfShapeImpl         This;
                         ^
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:41:7: Anmerkung:   denn die folgenden virtuellen Funktionen sind rein innerhalb »sfShapeImpl«:
 class sfShapeImpl : public sf::Shape
       ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:213:22: Anmerkung:   virtual sf::Vector2f sf::Shape::getPoint(std::size_t) const
     virtual Vector2f getPoint(std::size_t index) const = 0;
                      ^
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Fehler 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Fehler 2
make: *** [all] Fehler 2
[root@localhost CSFML-master

Anyone ideas, why it fails? Thanks for your help.
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problem building CSFML Master on linux
« Reply #1 on: April 14, 2015, 10:27:39 am »
Would be nice to have the error messages translated ;)
Laurent Gomila - SFML developer

s.baus

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: Problem building CSFML Master on linux
« Reply #2 on: April 14, 2015, 10:59:41 am »
I'll try my best xD.

[ 46%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o                                                                  
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:54:26: Error: conflicting returnvalue for  »virtual unsigned int sfShapeImpl::getPointCount() const« specified
     virtual unsigned int getPointCount() const
                          ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:196:25: Error:   »virtual std::size_t sf::Shape::getPointCount() const« will be overwritten
     virtual std::size_t getPointCount() const = 0;
                         ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:0:
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:87:25: Error: Field »sfShape::This« can not be declared from abstract type »sfShapeImpl«
     sfShapeImpl         This;
                         ^
/home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:41:7: Warning:   the following virtual functions are only in »sfShapeImpl«:
 class sfShapeImpl : public sf::Shape
       ^
In file included from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/ShapeStruct.h:32:0,
                 from /home/sven/Downloads/CSFML-master/src/SFML/Graphics/RenderTexture.cpp:32:
/usr/local/include/SFML/Graphics/Shape.hpp:213:22: Anmerkung:   virtual sf::Vector2f sf::Shape::getPoint(std::size_t) const
     virtual Vector2f getPoint(std::size_t index) const = 0;
                      ^
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderTexture.cpp.o] Fehler 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Fehler 2
make: *** [all] Fehler 2
[root@localhost CSFML-master
AudioCuesheetEditor, your #1 CuesheetEditor.

http://sourceforge.net/projects/audiocuesheet

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problem building CSFML Master on linux
« Reply #3 on: April 14, 2015, 12:20:13 pm »
Make sure that you built it with the latest SFML version.
Laurent Gomila - SFML developer