All posts by kpark

OpenAL Getting Started

OpenAL http://www.openal.org/

1. Download OpenAL 1.1 SDK & Installer for Windows and install them


  • OpenAL 1.1 SDK for Windows

  • OpenAL 1.1 Installer for Windows 

    2. Set environment variables



    • Go to Control panel -> System icon -> Advanced tab -> Environment variables
    • Create a new variable called “OAL_ROOT” and set the value “C:\Program Files\OpenAL 1.1 SDK” for Visual Studio .Net 2005


    3. In Visual Studio .Net 2005



    • Configuration Properties -> C/C++ -> General -> Additional Include Directories “$(OAL_ROOT)\include” 추가
    • Configuration Properties -> Linker -> General -> Additional Library Directories “$(OAL_ROOT)\libs\Win32” 추가
    • Configuration Properties -> Linker -> Input -> Additional Dependencies “OpenAL32.lib” 추가

  • OSG Applications Compile and Execute


    • Use Visual Studio 2005 (install service pack 1)

      • Add New Project for “Win32 Console Application”
      • Click next on application wizard, and then check “empty project” in additional options

    • Add the following path to the Additional Include Directories (Project Properties -> Configuration Properties -> C/C++ ->General -> Additional Include Directories)

      • $(OSG_ROOT)\include

    • Similarly, set the linker directory to the following

      • $(OSG_ROOT)\lib

    • And add the libraries to the input option of the linker setting

      • Release Mode: osgViewer.lib osgDB.lib osgUtil.lib osg.lib OpenThreads.lib opengl32.lib glu32.lib
      • Debug Mode: osgViewerd.lib osgDBd.lib osgUtild.lib osgd.lib OpenThreadsd.lib opengl32.lib glu32.lib

    • Finally, run your OSG application