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

Author Topic: Building on Ubuntu  (Read 10692 times)

0 Members and 1 Guest are viewing this topic.

Ademan

  • Newbie
  • *
  • Posts: 8
    • View Profile
Building on Ubuntu
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building on Ubuntu
« Reply #1 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.
Laurent Gomila - SFML developer

Ademan

  • Newbie
  • *
  • Posts: 8
    • View Profile
Building on Ubuntu
« Reply #2 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Building on Ubuntu
« Reply #3 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.
Laurent Gomila - SFML developer

Alp

  • Jr. Member
  • **
  • Posts: 56
    • MSN Messenger - alpmestan@hotmail.com
    • View Profile
    • http://alp.developpez.com/
    • Email
Building on Ubuntu
« Reply #4 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.
SFML developper