SFML community forums

Help => General => Topic started by: Ademan on August 14, 2007, 10:03:54 am

Title: Building on Ubuntu
Post by: Ademan on August 14, 2007, 10:03:54 am
I've been trying to build sfml on ubuntu linux 7.04.  CMake fails with this error:
The end of a CMakeLists file was reached with an IF statement that was not closed properly.
Within the directory: /home/dan/Projects/sfml/src/SFML/System
The arguments are: UNIX
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dan/Projects/sfml/src

Which in turn causes a whole mess of problems in Clock.cpp

I changed line 34 from
ENDIF(WIN32)
to
ENDIF(UNIX)
and cmake succeeded (however I'm still getting build errors but I'll give you an update on that.

cheers
-Dan
Title: Building on Ubuntu
Post by: Laurent on August 14, 2007, 10:06:29 am
CMake files are currently not working, I need to update and test them.

For the moment, you should rather use the provided makefiles for Linux builds.
Title: Building on Ubuntu
Post by: Ademan on August 14, 2007, 10:15:15 am
Ah ok, i'll give that a shot, but by the way, it seems the problem was that it wants GL/glew.h from my system (probably a good policy since it will probably be up to date for the system) but that was the only build error, i'm going to try placing my glew.h in my /usr/include and see what happens

cheers
-Dan
Title: Building on Ubuntu
Post by: Laurent on August 14, 2007, 10:39:01 am
Okay.

A friend of mine is also building a Debian package, so that people won't have to worry about the external libraries setup anymore.
Title: Building on Ubuntu
Post by: Alp on August 14, 2007, 11:42:31 am
Indeed, i'm working on a debian package.

I would be pleased to make you test the package when ready. I'll open a topic about it.