Hi,

when I include the header files from osgAudio example 'simple.cpp', I get the 
error "al.h: No such file or directory" when compiling. The added lines are: 
#include <osgAudio/Source.h>
#include <osgAudio/Sample.h>
I am however able to compile the osgAudio examples, so this file seems to be 
somewhere.
I would guess it has something to do with my CMakeLists.txt file.

I attach the terminal output:

mic@ukzfg-s16:~/Code/cpp_openscenegraph/adv$ sh build.sh 
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found osg: /usr/lib/libosg.so  
-- Found OpenThreads: /usr/lib/libOpenThreads.so  
-- Found osgDB: /usr/lib/libosgDB.so  
-- Found osgUtil: /usr/lib/libosgUtil.so  
-- Found osgViewer: /usr/lib/libosgViewer.so  
-- Found osgWidget: /usr/lib/libosgWidget.so  
-- Found osgAnimation: /usr/lib/libosgAnimation.so  
-- Found osgGA: /usr/lib/libosgGA.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mic/Code/cpp_openscenegraph/adv
Scanning dependencies of target MyProject
[ 33%] Building CXX object CMakeFiles/MyProject.dir/AnimtkViewer.cpp.o
In file included from /usr/local/include/openalpp/SoundData.h:33:0,
                 from /usr/local/include/openalpp/Stream.h:31,
                 from /usr/local/include/openalpp/Source.h:29,
                 from 
/usr/local/include/osgAudio/BackendOpenALpp/SourceOpenALpp.h:35,
                 from /usr/local/include/osgAudio/Source.h:35,
                 from /home/mic/Code/cpp_openscenegraph/adv/AnimtkViewer.cpp:37:
/usr/local/include/openalpp/AudioBase.h:31:16: fatal error: al.h: No such file 
or directory
 #include <al.h>
                ^
compilation terminated.
make[2]: *** [CMakeFiles/MyProject.dir/AnimtkViewer.cpp.o] Error 1
make[1]: *** [CMakeFiles/MyProject.dir/all] Error 2
make: *** [all] Error 2



Thank you very much!

Cheers,
Michael

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58605#58605





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to