lianlab / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

cmake breaks on Ubuntu 10.10 #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
running cmake .. -G "Unix Makefiles"

-- Could NOT find OpenAL  (missing:  OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
CMake Error at CMake/Utils/MacroLogFeature.cmake:100 (MESSAGE):

  -----------------------------------------------------------------------------

  -- The following REQUIRED packages could NOT be located on your system.

  -- Please install them before continuing this software installation.

  -- If you are in Windows, try passing -DOGRE_DEPENDENCIES_DIR=<path to
  dependencies>

  -----------------------------------------------------------------------------

  + Xaw: X11 Athena widget set <http://www.x.org>

Is the OpenAL error breaking the build, or Xaw? What is Xaw needed for?

Original issue reported on code.google.com by erwin.coumans on 20 Jan 2011 at 2:28

GoogleCodeExporter commented 9 years ago
The configuration step failed because of libxaw missing, it is an Ogre3D 
dependency. You will need openal too.

Apparently the cmake system could use a little more polishing. Here it is happy 
if it find the library and does not complain when headers are missing.

Original comment by xavier.thomas.1980@gmail.com on 20 Jan 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Gamekit should work without OpenAL if not found.

What is xaw used for? Can we make it optional?

Original comment by erwin.coumans on 20 Jan 2011 at 4:18

GoogleCodeExporter commented 9 years ago
on Debian/Squeeze, I had the same issue.
With Xaw installed, the next issue was: 

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ X11
+ Xt
+ Xaw
+ OpenGL
+ OpenAL
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Performing Test OGRE_GCC_HAS_SSE
-- Performing Test OGRE_GCC_HAS_SSE - Success
-- Configuring OGRE 1.7.2
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
X11_Xrandr_LIB (ADVANCED)
    linked by target "RenderSystem_GL" in directory /home/philippe/projects/gamekit/OgreLite/RenderSystems/GL

-- Configuring incomplete, errors occurred!

I had Xrandr to complete the generation

Original comment by philippe...@gmail.com on 22 Feb 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Do yo have libxrandr-dev installed? It is required by Ogre (non optional, it is 
used to set resolution in fullscreen mode).

Original comment by xavier.thomas.1980@gmail.com on 22 Feb 2011 at 11:13

GoogleCodeExporter commented 9 years ago
It's a fresh install so many things are missing.
I install libxrandr-dev to build gamekit

Original comment by philippe...@gmail.com on 24 Feb 2011 at 8:00

GoogleCodeExporter commented 9 years ago
On Windows and Mac OSX things should just build out-of-the-box using visual 
studio.

Pity the Linux build is not self-contained. One more reason to look for an 
alternative, more light-weight graphics engine.

Original comment by erwin.coumans on 24 Feb 2011 at 8:09

GoogleCodeExporter commented 9 years ago
If you want full-screen graphics (and assuming this is a basis for games to be 
distributed, I'm thinking this is the case); will a lighter-weight graphics 
engine work? Won't you need the services supplied by Xrandr anyway?

Original comment by BenT.Sol...@gmail.com on 25 Feb 2011 at 5:55

GoogleCodeExporter commented 9 years ago
It is mostly a build issue for developers who start trying out gamekit. It 
should work out-of-the-box without any external library requirements.

Better is to restrict to windowed mode, by default, unless it detects Xrandr 
etc.

Same for OpenAL and Xaw etc: always build, and drop missing features.

Original comment by erwin.coumans on 25 Feb 2011 at 6:07

GoogleCodeExporter commented 9 years ago
i have the same error

Original comment by johannes_kraemer@gmx.de on 14 Dec 2014 at 7:07

GoogleCodeExporter commented 9 years ago
this works ->

sudo apt-get install libpthread-stubs0-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libx11-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libglew1.5-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libsndfile1-dev
sudo apt-get install libopenal-dev

git clone git://repo.or.cz/openal-soft.git openal-soft
cd openal-soft 
cd build
cmake ..
make

if no errors, then install :

sudo make install

Original comment by johannes_kraemer@gmx.de on 14 Dec 2014 at 9:17