Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build System - Missing library alut #13

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Build System - Missing library alut #13

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 Aug 2014 at 1:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant