Find the answer to your Linux question:
Results 1 to 6 of 6
I am using Fedora Core 4. I was/am trying to ----ummm....---- build my own Blender 3d program from source for various reasons (I might be just wasting my time). The ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4

    #include <AL/al.h> #include <AL/alc.h> ------- Help on where to get these.....


    I am using Fedora Core 4. I was/am trying to ----ummm....---- build my own Blender 3d program from source for various reasons (I might be just wasting my time).

    The whole "Make" process returned an error. A script named "SND_OpenALDevice.cpp" was evidently trying to "include" --something--(1) that didn't exist(2). A large stream of error messages followed and then the process's untimely death. I would like for this script to run properly but I don't know where to start. On the other hand, if you can vaguely guess my overall ambitions and can present a whole other course of action, then by all means tell me.

    (1) It was trying to include <AL/al.h> <AL/alc.h> and <AL/alut.h>

    (2) The only thing I know about C/C++ is the "Hello World" script. I really don't know much about Linux as a whole. I only know Bash and Python.

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    It would help if you copy/pasted the entire error, verbatim.

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4

    The error.....

    g++ -c -DUSE_SUMO_SOLID -pipe -fPIC -DNDEBUG -O2 -Wall -Wno-reorder -DMOZ_NOT_NET -I/usr/include -I/root/Desktop/blender-2.37a.tar.gz_FILES/blender/../lib/linux-glibc2.3.5-i386/string/include -I/root/Desktop/blender-2.37a.tar.gz_FILES/blender/../lib/linux-glibc2.3.5-i386/moto/include -I../intern -I.. -I. -I../sdl SND_OpenALDevice.cpp -o /root/Desktop/blender-2.37a.tar.gz_FILES/blender/obj/linux-glibc2.3.5-i386/intern/OpenALSoundSystem/SND_OpenALDevice.o
    SND_OpenALDevice.cpp:46:19: error: AL/al.h: No such file or directory
    SND_OpenALDevice.cpp:47:20: error: AL/alc.h: No such file or directory
    SND_OpenALDevice.cpp:48:21: error: AL/alut.h: No such file or directory
    SND_OpenALDevice.cpp:66: error: ‘ALvoid’ does not name a type
    SND_OpenALDevice.cpp:67: error: ‘ALvoid’ does not name a type
    SND_OpenALDevice.cpp:71: error: ‘ALubyte’ does not name a type
    SND_OpenALDevice.cpp:72: error: ‘ALsizei’ does not name a type
    SND_OpenALDevice.cpp:73: error: ‘ALubyte’ does not name a type
    SND_OpenALDevice.cpp:78: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:79: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:80: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:81: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:82: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:83: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:88: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:89: error: ‘ALushort’ does not name a type
    SND_OpenALDevice.cpp:94: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:95: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:96: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:97: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:98: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:99: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:100: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:101: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:102: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:105: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:106: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:107: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:108: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:109: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:110: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:116: error: ‘ALubyte’ does not name a type
    SND_OpenALDevice.cpp:117: error: ‘ALuint’ does not name a type
    SND_OpenALDevice.cpp:120: error: ‘ALvoid’ does not name a type
    SND_OpenALDevice.cpp:195: error: ‘ALvoid’ does not name a type
    SND_OpenALDevice.cpp: In constructor ‘SND_OpenALDevice::SND_OpenALDevice()’:
    SND_OpenALDevice.cpp:229: error: ‘ALCdevice’ was not declared in this scope
    SND_OpenALDevice.cpp:229: error: ‘dev’ was not declared in this scope
    SND_OpenALDevice.cpp:229: error: ‘alcOpenDevice’ was not declared in this scope
    SND_OpenALDevice.cpp:231: error: ‘alcCreateContext’ was not declared in this scope
    SND_OpenALDevice.cpp:234: error: ‘alcMakeContextCurrent’ was not declared in this scope
    SND_OpenALDevice.cpp:261: error: ‘alGenBuffers’ was not declared in this scope
    SND_OpenALDevice.cpp:266: error: ‘alIsBuffer’ was not declared in this scope
    SND_OpenALDevice.cpp:284: error: ‘ALenum’ was not declared in this scope
    SND_OpenALDevice.cpp:284: error: expected `;' before ‘alc_error’
    SND_OpenALDevice.cpp:288: error: ‘alc_error’ was not declared in this scope
    SND_OpenALDevice.cpp:288: error: ‘ALC_NO_ERROR’ was not declared in this scope
    SND_OpenALDevice.cpp:290: error: ‘alGenSources’ was not declared in this scope
    SND_OpenALDevice.cpp: In destructor ‘virtual SND_OpenALDevice::~SND_OpenALDevice()’:
    SND_OpenALDevice.cpp:327: error: ‘alDeleteBuffers’ was not declared in this scope
    SND_OpenALDevice.cpp:334: error: ‘alSourceStop’ was not declared in this scope
    SND_OpenALDevice.cpp:336: error: ‘alDeleteSources’ was not declared in this scope
    SND_OpenALDevice.cpp:342: error: ‘alcDestroyContext’ was not declared in this scope
    SND_OpenALDevice.cpp:367: error: ‘ALCdevice’ was not declared in this scope
    SND_OpenALDevice.cpp:367: error: expected primary-expression before ‘)’ token
    SND_OpenALDevice.cpp:367: error: ‘alcCloseDevice’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String&, void*, int)’:
    SND_OpenALDevice.cpp:396: error: ‘ALenum’ was not declared in this scope
    SND_OpenALDevice.cpp:396: error: expected `;' before ‘al_error’
    SND_OpenALDevice.cpp:424: error: ‘alutLoadWAVMemory’ was not declared in this scope
    SND_OpenALDevice.cpp:427: error: ‘alBufferData’ was not declared in this scope
    SND_OpenALDevice.cpp:435: error: ‘ALbyte’ was not declared in this scope
    SND_OpenALDevice.cpp:435: error: expected primary-expression before ‘)’ token
    SND_OpenALDevice.cpp:435: error: ‘alutLoadWAVFile’ was not declared in this scope
    SND_OpenALDevice.cpp:438: error: ‘alBufferData’ was not declared in this scope
    SND_OpenALDevice.cpp:442: error: ‘al_error’ was not declared in this scope
    SND_OpenALDevice.cpp:442: error: ‘alGetError’ was not declared in this scope
    SND_OpenALDevice.cpp:443: error: ‘AL_NO_ERROR’ was not declared in this scope
    SND_OpenALDevice.cpp:463: error: ‘alutUnloadWAV’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetDopplerVelocity(MT_Scalar) const’:
    SND_OpenALDevice.cpp:485: error: ‘alDopplerVelocity’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetDopplerFactor(MT_Scalar) const’:
    SND_OpenALDevice.cpp:493: error: ‘alDopplerFactor’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetListenerGain(float) const’:
    SND_OpenALDevice.cpp:520: error: ‘AL_GAIN’ was not declared in this scope
    SND_OpenALDevice.cpp:520: error: ‘alListenerf’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::InitListener()’:
    SND_OpenALDevice.cpp:539: error: ‘AL_POSITION’ was not declared in this scope
    SND_OpenALDevice.cpp:539: error: ‘alListenerfv’ was not declared in this scope
    SND_OpenALDevice.cpp:540: error: ‘AL_VELOCITY’ was not declared in this scope
    SND_OpenALDevice.cpp:541: error: ‘AL_ORIENTATION’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectBuffer(int, unsigned int)’:
    SND_OpenALDevice.cpp:553: error: ‘AL_BUFFER’ was not declared in this scope
    SND_OpenALDevice.cpp:553: error: ‘alSourcei’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual int SND_OpenALDevice::GetPlayState(int)’:
    SND_OpenALDevice.cpp:567: error: ‘AL_SOURCE_STATE’ was not declared in this scope
    SND_OpenALDevice.cpp:567: error: ‘alGetSourceiv’ was not declared in this scope
    SND_OpenALDevice.cpp:572: error: ‘AL_INITIAL’ was not declared in this scope
    SND_OpenALDevice.cpp:577: error: ‘AL_PLAYING’ was not declared in this scope
    SND_OpenALDevice.cpp:582: error: ‘AL_PAUSED’ was not declared in this scope
    SND_OpenALDevice.cpp:587: error: ‘AL_STOPPED’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::PlayObject(int)’:
    SND_OpenALDevice.cpp:604: error: ‘alSourcePlay’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::StopObject(int) const’:
    SND_OpenALDevice.cpp:615: error: ‘AL_POSITION’ was not declared in this scope
    SND_OpenALDevice.cpp:615: error: ‘alSourcefv’ was not declared in this scope
    SND_OpenALDevice.cpp:616: error: ‘AL_VELOCITY’ was not declared in this scope
    SND_OpenALDevice.cpp:618: error: ‘AL_GAIN’ was not declared in this scope
    SND_OpenALDevice.cpp:618: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp:619: error: ‘AL_PITCH’ was not declared in this scope
    SND_OpenALDevice.cpp:620: error: ‘AL_FALSE’ was not declared in this scope
    SND_OpenALDevice.cpp:620: error: ‘alSourcei’ was not declared in this scope
    SND_OpenALDevice.cpp:621: error: ‘alSourceStop’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::StopAllObjects()’:
    SND_OpenALDevice.cpp:629: error: ‘alSourceStopv’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::PauseObject(int) const’:
    SND_OpenALDevice.cpp:637: error: ‘alSourcePause’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectPitch(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:649: error: ‘AL_PITCH’ was not declared in this scope
    SND_OpenALDevice.cpp:649: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectGain(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:657: error: ‘AL_GAIN’ was not declared in this scope
    SND_OpenALDevice.cpp:657: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectLoop(int, unsigned int) const’:
    SND_OpenALDevice.cpp:668: error: ‘AL_FALSE’ was not declared in this scope
    SND_OpenALDevice.cpp:668: error: ‘alSourcei’ was not declared in this scope
    SND_OpenALDevice.cpp:671: error: ‘AL_TRUE’ was not declared in this scope
    SND_OpenALDevice.cpp:671: error: ‘alSourcei’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectMinGain(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:683: error: ‘AL_MIN_GAIN’ was not declared in this scope
    SND_OpenALDevice.cpp:683: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectMaxGain(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:690: error: ‘AL_MAX_GAIN’ was not declared in this scope
    SND_OpenALDevice.cpp:690: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectRollOffFactor(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:697: error: ‘AL_ROLLOFF_FACTOR’ was not declared in this scope
    SND_OpenALDevice.cpp:697: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectReferenceDistance(int, MT_Scalar) const’:
    SND_OpenALDevice.cpp:704: error: ‘AL_REFERENCE_DISTANCE’ was not declared in this scope
    SND_OpenALDevice.cpp:704: error: ‘alSourcef’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::ObjectIs2D(int) const’:
    SND_OpenALDevice.cpp:715: error: ‘AL_POSITION’ was not declared in this scope
    SND_OpenALDevice.cpp:715: error: ‘alSourcefv’ was not declared in this scope
    SND_OpenALDevice.cpp:716: error: ‘AL_VELOCITY’ was not declared in this scope
    SND_OpenALDevice.cpp: In member function ‘virtual void SND_OpenALDevice::SetObjectTransform(int, const MT_Vector3&, const MT_Vector3&, const MT_Matrix3x3&, const MT_Vector3&, const MT_Scalar&) const’:
    SND_OpenALDevice.cpp:735: error: ‘AL_POSITION’ was not declared in this scope
    SND_OpenALDevice.cpp:735: error: ‘alSourcefv’ was not declared in this scope
    SND_OpenALDevice.cpp:738: error: ‘AL_VELOCITY’ was not declared in this scope
    make[3]: *** [/root/Desktop/blender-2.37a.tar.gz_FILES/blender/obj/linux-glibc2.3.5-i386/intern/OpenALSoundSystem/SND_OpenALDevice.o] Error 1
    make[2]: *** [all] Error 1
    make[1]: *** [all] Error 1
    make: *** [all] Error 1

  4. #4
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Try changing it to quotes:
    Code:
    #include "AL/al.h"

  5. #5
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4

    Negative

    I changed:
    #include <AL/al.h>
    #include <AL/alc.h>
    #include <AL/alut.h>
    to:
    #include ''AL/al.h''
    #include ''AL/alc.h''
    #include ''AL/alut.h''

    This brought about the same error message.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •