SFML community forums

Bindings - other languages => C => Topic started by: Dominator on December 10, 2009, 05:52:40 pm

Title: Problem compiling CSFML in Ubuntu
Post by: Dominator 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?
Title: Problem compiling CSFML in Ubuntu
Post by: Laurent 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/?
Title: Problem compiling CSFML in Ubuntu
Post by: Dominator 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.
Title: Problem compiling CSFML in Ubuntu
Post by: Laurent 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.
Title: Problem compiling CSFML in Ubuntu
Post by: Dominator 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.
Title: Problem compiling CSFML in Ubuntu
Post by: Dominator on December 11, 2009, 09:19:10 pm
I got it working by adding -I../../../../include to CFLAGS.
Title: Problem compiling CSFML in Ubuntu
Post by: Laurent on December 11, 2009, 09:58:15 pm
That's weird. I should definitely look into this issue.