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

Author Topic: Problem compiling CSFML in Ubuntu  (Read 8687 times)

0 Members and 3 Guests are viewing this topic.

Dominator

  • Newbie
  • *
  • Posts: 37
    • View Profile
Problem compiling CSFML in Ubuntu
« on: December 10, 2009, 05:52:40 pm »
I updated SFML2 from the SVN repository today.
Then I successfully compiled SFML, but when I tried to compile CSFML I got the following error:

Code: [Select]
g++ -o Clock.o -c Clock.cpp -W -Wall -pedantic -Wno-unused -I../.. -I../../../include -g -O2 -DNDEBUG -fPIC -DCSFML_EXPORTS
In file included from Clock.cpp:29:
../../SFML/System/ClockStruct.h:31:33: error: SFML/System/Clock.hpp: No such file or directory


The file isn't missing, so what's the problem here?
Did a path change in an update?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem compiling CSFML in Ubuntu
« Reply #1 on: December 10, 2009, 06:03:58 pm »
I don't know. Everything works for me on Windows, I haven't tried on Linux yet.

Are you sure that you execute "make" from <root>/branches/sfml2/?
Laurent Gomila - SFML developer

Dominator

  • Newbie
  • *
  • Posts: 37
    • View Profile
Problem compiling CSFML in Ubuntu
« Reply #2 on: December 10, 2009, 06:54:21 pm »
In Windows it works for me too.

I compiled SFML from the root directory, but I changed into the CSFML directory to compile CSFML, is this the wrong way to do it?

I believe I did it the same way when I compiled it before.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem compiling CSFML in Ubuntu
« Reply #3 on: December 10, 2009, 07:47:54 pm »
Quote
I compiled SFML from the root directory, but I changed into the CSFML directory to compile CSFML, is this the wrong way to do it?

No, it's ok.
Laurent Gomila - SFML developer

Dominator

  • Newbie
  • *
  • Posts: 37
    • View Profile
Problem compiling CSFML in Ubuntu
« Reply #4 on: December 10, 2009, 11:45:47 pm »
I checked it out again from branches/sfml2 in a new empty directory to be sure that nothing went wrong with the update, but I still get the same error.

Dominator

  • Newbie
  • *
  • Posts: 37
    • View Profile
Problem compiling CSFML in Ubuntu
« Reply #5 on: December 11, 2009, 09:19:10 pm »
I got it working by adding -I../../../../include to CFLAGS.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem compiling CSFML in Ubuntu
« Reply #6 on: December 11, 2009, 09:58:15 pm »
That's weird. I should definitely look into this issue.
Laurent Gomila - SFML developer

 

anything