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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Zirk

Pages: [1]
1
General / Re: [TravisCI] SFML is not up to date
« on: June 11, 2017, 11:58:49 pm »
I'll check that, thanks a lot !

2
General / Re: [TravisCI] SFML is not up to date
« on: June 11, 2017, 10:29:12 pm »
Hi,
I tried to build it myself like that:
install: cd /usr/local && sudo wget https://www.sfml-dev.org/files/SFML-2.4.2-linux-gcc-64-bit.tar.gz && sudo tar -xzf SFML-2.4.2-linux-gcc-64-bit.tar.gz && sudo cp -r SFML-2.4.2/include . && sudo cp -r SFML-2.4.2/lib . && sudo cp -r SFML-2.4.2/share . && sudo rm -rf SFML-2.4.2 && cd -

Everything is compiling, but when it's linking, there are some errors:
/home/travis/build/Xwilarg/FightEpitechGrade2/src/Components/SpriteRenderer.cpp:38: undefined reference to `sf::Image::~Image()'
/home/travis/build/Xwilarg/FightEpitechGrade2/src/Components/SpriteRenderer.cpp:38: undefined reference to `sf::Image::~Image()'
src/Components/SphereRenderer.o: In function `SphereRenderer::SphereRenderer()':
/home/travis/build/Xwilarg/FightEpitechGrade2/src/Components/SphereRenderer.cpp:4: undefined reference to `sf::CircleShape::CircleShape(float, unsigned long)'

Do you have an idea why it's happening ?

Thanks in advance :3.

3
General / - Solved - [TravisCI] SFML is not up to date
« on: June 11, 2017, 05:30:03 pm »
Hi,
I wanted to use TravisCI with one of my project, so I made a .travis.yml and I told him to install the SFML:
addons:
  apt:
    packages:
      - libsfml-dev
But when it's compiling, there is the following error:
src/UI/Text.cpp:12:9: error: ‘class sf::Text’ has no member named ‘setFillColor’
I don't have this problem on my computer, so I think the problem is that the SFML is not up to date.
Is there a way to force update it or something like that ?

Thanks in advance

4
That was indeed the problem, I deleted every files related to the SFML in /usr/ and I reinstalled it and it's working now. Thanks a lot :)

5
Hi,

I'm using the SFML 2.2.0 on Ubuntu 16.10.
I'm compiling with a Makefile with the following SFML flags :
LDLIBS  = -lsfml-graphics -lsfml-window -lsfml-system -lGL

But when I'm compiling, I have the following error:
Undefined reference to "sf::CircleShape::CircleShape(float, unsigned int)"

I checked CircleShape.hpp and the prototype exist.
CircleShape.hpp
41:class SFML_GRAPHICS_API CircleShape : public Shape
52:    explicit CircleShape(float radius = 0, unsigned int pointCount = 30);

I know that my program is suppose to work, because I didn't have any problem some times ago, but since I reinstall Ubuntu and the SFML I have this problem....

Thanks in advance !

Pages: [1]
anything