Skip to content

Build System - Missing library alut #13

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Checkout current version (SVN rev 117)
2. Configure (OpenAL backend) and run cmake and make


What is the expected output? What do you see instead?
Library should compile but an error occurs, because the OpenAL Utility Toolkit 
library is missing:

In file included from osgaudio/src/openalpp/AudioBase.cpp:29:0:
osgaudio/include/openalpp/AudioBase.h:33:21: fatal error: AL/alut.h: File not 
found
 #include <AL/alut.h>
                     ^
compilation terminated.

After installing the missing library a linker error occurs:

Linking CXX executable ../../bin/example_osgaudio
../../lib/libopenalpp.so: undefined reference to `alutGetErrorString'
../../lib/libopenalpp.so: undefined reference to `alutCreateBufferFromFile'
../../lib/libopenalpp.so: undefined reference to `alutInitWithoutContext'
../../lib/libopenalpp.so: undefined reference to `alutGetError'
../../lib/libopenalpp.so: undefined reference to `alutExit'
../../lib/libopenalpp.so: undefined reference to `alutLoadMemoryFromFile'
collect2: error: ld returned 1 exit status

Instruct cmake to link against the library (-DCMAKE_EXE_LINKER_FLAGS="-lalut") 
will fix this.
CMake should check and link against the alut library.


What version of the product are you using? On what operating system?
Current SVN rev 117 on Debian Jessie. Compiled with g++ 4.8.3 and CMake 
2.8.12.2.
The package of the missing library on this system is: libalut-dev.

Original issue reported on code.google.com by stefan0f...@gmail.com on 28 Aug 2014 at 1:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions