Author Topic: cmake error on Ubuntu  (Read 1632 times)

wrightmat

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
cmake error on Ubuntu
« on: August 23, 2014, 03:34:18 pm »
When I go to compile solarus 1.3, I get a cmake error stating that OPENAL can't be found, but according to my system it's installed. Is something wrong with cmake or my system? I've compiled before, so unless something has changed, I'm confused  :-\

Error output:
Code: [Select]
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenAL (missing: OPENAL_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenAL.cmake:97 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:18 (find_package)

OPENAL installation:
Code: [Select]
sudo apt-get install libopenal*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libopenais2' for regex 'libopenal*'
Note, selecting 'libopenais-dev' for regex 'libopenal*'
Note, selecting 'libopenal0a' for regex 'libopenal*'
Note, selecting 'libopenal-dev' for regex 'libopenal*'
Note, selecting 'libopenal1' for regex 'libopenal*'
Note, selecting 'libopenafs-dev' for regex 'libopenal*'
Note, selecting 'libopenal-data' for regex 'libopenal*'
Note, selecting 'libopenais-legacy-dev' for regex 'libopenal*'
libopenafs-dev is already the newest version.
libopenal-data is already the newest version.
libopenal-dev is already the newest version.
libopenal1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

wrightmat

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: cmake error on Ubuntu
« Reply #1 on: August 23, 2014, 04:25:35 pm »
It seems to be a problem with the location of my libraries and my environment variables. I got OpenAL and PhysFS to work, but I'm still having problems with Lua. Setting an environment variable for that one doesn't seem to be working, unless I'm setting the wrong one. I'm setting "LUA_DIR" and "LUA_LIBS" and still no luck.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • View Profile
Re: cmake error on Ubuntu
« Reply #2 on: September 18, 2014, 05:36:29 pm »
It's weird, nothing has changed for OpenAL and PhysFS in 1.3. For Lua, we switched to LuaJIT but this was in Solarus 1.2.
Did you try to clean your cmake configuration (rm CMakeCache.txt)?