Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Make Error Linux Debian  (Read 1852 times)

0 Members and 1 Guest are viewing this topic.

Vita

  • Newbie
  • *
  • Posts: 6
    • View Profile
Make Error Linux Debian
« on: May 30, 2011, 05:57:37 pm »
Hello,
I recently tried to compile app on linux, but I could not even make and install the SFML lib.
Here is the code:
Code: [Select]

root@bt:~/SFML-1.6# make install all
make[1]: Entering directory `/root/SFML-1.6/src/SFML'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/System'
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/System'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Window'
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Window'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Network'
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Network'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Graphics'
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Graphics'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Audio'
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Audio'
make[1]: Leaving directory `/root/SFML-1.6/src/SFML'
make[1]: Entering directory `/root/SFML-1.6/src/SFML'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/System'
g++ -shared -Wl,-soname,libsfml-system.so.1.6 -o ../../../lib/libsfml-system.so.1.6 Clock.o Lock.o Randomizer.o Sleep.o Unicode.o ./Unix/Initializer.o ./Unix/Mutex.o ./Unix/Platform.o ./Unix/Thread.o -lpthread
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/System'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Window'
g++ -shared -Wl,-soname,libsfml-window.so.1.6 -o ../../../lib/libsfml-window.so.1.6 Context.o Input.o VideoMode.o Window.o WindowImpl.o ./Linux/Joystick.o ./Linux/VideoModeSupport.o ./Linux/WindowImplX11.o  -lX11 -lXrandr -lGL
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Window'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Network'
g++ -shared -Wl,-soname,libsfml-network.so.1.6 -o ../../../lib/libsfml-network.so.1.6 Ftp.o Http.o IPAddress.o Packet.o SelectorBase.o SocketTCP.o SocketUDP.o ./Unix/SocketHelper.o
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Network'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Graphics'
g++ -shared -Wl,-soname,libsfml-graphics.so.1.6 -o ../../../lib/libsfml-graphics.so.1.6 Color.o Drawable.o Font.o FontLoader.o GraphicsContext.o Image.o ImageLoader.o Matrix3.o PostFX.o RenderTarget.o RenderWindow.o Shape.o Sprite.o String.o View.o ./GLEW/glew.o ./libjpeg/jcapimin.o ./libjpeg/jcapistd.o ./libjpeg/jccoefct.o ./libjpeg/jccolor.o ./libjpeg/jcdctmgr.o ./libjpeg/jchuff.o ./libjpeg/jcinit.o ./libjpeg/jcmainct.o ./libjpeg/jcmarker.o ./libjpeg/jcmaster.o ./libjpeg/jcomapi.o ./libjpeg/jcparam.o ./libjpeg/jcphuff.o ./libjpeg/jcprepct.o ./libjpeg/jcsample.o ./libjpeg/jctrans.o ./libjpeg/jdapimin.o ./libjpeg/jdapistd.o ./libjpeg/jdatadst.o ./libjpeg/jdatasrc.o ./libjpeg/jdcoefct.o ./libjpeg/jdcolor.o ./libjpeg/jddctmgr.o ./libjpeg/jdhuff.o ./libjpeg/jdinput.o ./libjpeg/jdmainct.o ./libjpeg/jdmarker.o ./libjpeg/jdmaster.o ./libjpeg/jdmerge.o ./libjpeg/jdphuff.o ./libjpeg/jdpostct.o ./libjpeg/jdsample.o ./libjpeg/jdtrans.o ./libjpeg/jerror.o ./libjpeg/jfdctflt.o ./libjpeg/jfdctfst.o ./libjpeg/jfdctint.o ./libjpeg/jidctflt.o ./libjpeg/jidctfst.o ./libjpeg/jidctint.o ./libjpeg/jidctred.o ./libjpeg/jmemmgr.o ./libjpeg/jmemnobs.o ./libjpeg/jquant1.o ./libjpeg/jquant2.o ./libjpeg/jutils.o ./libpng/png.o ./libpng/pngerror.o ./libpng/pnggccrd.o ./libpng/pngget.o ./libpng/pngmem.o ./libpng/pngpread.o ./libpng/pngread.o ./libpng/pngrio.o ./libpng/pngrtran.o ./libpng/pngrutil.o ./libpng/pngset.o ./libpng/pngtrans.o ./libpng/pngvcrd.o ./libpng/pngwio.o ./libpng/pngwrite.o ./libpng/pngwtran.o ./libpng/pngwutil.o ./SOIL/image_DXT.o ./SOIL/SOIL.o ./SOIL/stb_image_aug.o ./zlib/adler32.o ./zlib/compress.o ./zlib/crc32.o ./zlib/deflate.o ./zlib/inffast.o ./zlib/inflate.o ./zlib/inftrees.o ./zlib/trees.o ./zlib/uncompr.o ./zlib/zutil.o -lfreetype -lX11 -lGL
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Graphics'
make[2]: Entering directory `/root/SFML-1.6/src/SFML/Audio'
g++ -o AudioDevice.o -c AudioDevice.cpp -W -Wall -pedantic -I../../../include -I../../ -O2 -DNDEBUG -fPIC
In file included from ../../SFML/Audio/AudioDevice.hpp:31,
                 from AudioDevice.cpp:28:
../../SFML/Audio/OpenAL.hpp:37:19: error: AL/al.h: No such file or directory
../../SFML/Audio/OpenAL.hpp:38:20: error: AL/alc.h: No such file or directory
In file included from ../../SFML/Audio/AudioDevice.hpp:31,
                 from AudioDevice.cpp:28:
../../SFML/Audio/OpenAL.hpp: In function ‘void sf::priv::ALCheckError(const std::string&, unsigned int)’:
../../SFML/Audio/OpenAL.hpp:74: error: ‘ALenum’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:74: error: expected `;' before ‘ErrorCode’
../../SFML/Audio/OpenAL.hpp:76: error: ‘ErrorCode’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:76: error: ‘AL_NO_ERROR’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:83: error: ‘AL_INVALID_NAME’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:90: error: ‘AL_INVALID_ENUM’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:97: error: ‘AL_INVALID_VALUE’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:104: error: ‘AL_INVALID_OPERATION’ was not declared in this scope
../../SFML/Audio/OpenAL.hpp:111: error: ‘AL_OUT_OF_MEMORY’ was not declared in this scope
In file included from AudioDevice.cpp:28:
../../SFML/Audio/AudioDevice.hpp: At global scope:
../../SFML/Audio/AudioDevice.hpp:78: error: ISO C++ forbids declaration of ‘ALCdevice’ with no type
../../SFML/Audio/AudioDevice.hpp:78: error: expected ‘;’ before ‘*’ token
../../SFML/Audio/AudioDevice.hpp:88: error: ‘ALenum’ does not name a type
../../SFML/Audio/AudioDevice.hpp:112: error: ISO C++ forbids declaration of ‘ALCdevice’ with no type
../../SFML/Audio/AudioDevice.hpp:112: error: expected ‘;’ before ‘*’ token
../../SFML/Audio/AudioDevice.hpp:113: error: ISO C++ forbids declaration of ‘ALCcontext’ with no type
../../SFML/Audio/AudioDevice.hpp:113: error: expected ‘;’ before ‘*’ token
AudioDevice.cpp: In constructor ‘sf::priv::AudioDevice::AudioDevice()’:
AudioDevice.cpp:52: error: ‘myDevice’ was not declared in this scope
AudioDevice.cpp:52: error: ‘alcOpenDevice’ was not declared in this scope
AudioDevice.cpp:57: error: ‘myContext’ was not declared in this scope
AudioDevice.cpp:57: error: ‘alcCreateContext’ was not declared in this scope
AudioDevice.cpp:62: error: ‘alcMakeContextCurrent’ was not declared in this scope
AudioDevice.cpp: In destructor ‘sf::priv::AudioDevice::~AudioDevice()’:
AudioDevice.cpp:86: error: ‘alcMakeContextCurrent’ was not declared in this scope
AudioDevice.cpp:87: error: ‘myContext’ was not declared in this scope
AudioDevice.cpp:88: error: ‘alcDestroyContext’ was not declared in this scope
AudioDevice.cpp:91: error: ‘myDevice’ was not declared in this scope
AudioDevice.cpp:92: error: ‘alcCloseDevice’ was not declared in this scope
AudioDevice.cpp: At global scope:
AudioDevice.cpp:143: error: expected constructor, destructor, or type conversion before ‘*’ token
AudioDevice.cpp:152: error: ‘ALenum’ does not name a type
make[2]: *** [AudioDevice.o] Error 1
make[2]: Leaving directory `/root/SFML-1.6/src/SFML/Audio'
make[1]: *** [sfml-audio] Error 2
make[1]: Leaving directory `/root/SFML-1.6/src/SFML'
make: *** [sfml] Error 2
root@bt:~/SFML-1.6#  

Like there is a bug in AudioDevice.cpp??
Please tell me how to solve this problem.

Thanks in advance!
SFML is the best! :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Make Error Linux Debian
« Reply #1 on: May 30, 2011, 06:37:51 pm »
You must have the OpenAL development files, SFML depends on it. But why are you recompiling SFML?
Laurent Gomila - SFML developer

 

anything