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

Author Topic: Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)  (Read 5561 times)

0 Members and 1 Guest are viewing this topic.

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)
« on: November 16, 2012, 06:07:17 am »
I’m having a problem that i can't seem to resolve. CMake doesn't seem to be able to find the OpenGL packages...
sudo cmake -G "CodeBlocks - Unix Makefiles"

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenGL.cmake:153 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/SFML/Window/CMakeLists.txt:103 (find_package)

-- Configuring incomplete, errors occurred!
 
Which doesn't make sense considering I have OpenGL installed, for ex.
glxinfo | grep OpenGL
returns
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 3.0 Mesa 9.0
OpenGL shading language version string: 1.30
OpenGL extensions:
 
So i know its installed.
Any help?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)
« Reply #1 on: November 16, 2012, 07:55:18 am »
Do you have libGL.so? If so, where is it installed?
Laurent Gomila - SFML developer

replaceits

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Trouble compiling SFML-2.0 in Linux (Ubuntu 12.10)
« Reply #2 on: November 16, 2012, 10:46:54 pm »
Ah, figured out my problem, I didn't have the dev packages for OpenGL installed.
If anyone else has this problem make sure you have all the dependencies.
sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev