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

Author Topic: Please help me  (Read 1977 times)

0 Members and 1 Guest are viewing this topic.

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
Please help me
« on: May 10, 2010, 02:30:53 am »
Hi guys, I cannot get sfml2 to work with linux mint.  I have downloaded the source and in the terminal typed make clean in the directory here is what I get
Code: [Select]

cd ./build/make && make clean
make[1]: Entering directory `/home/adam/src/sfml2/build/make'
make clean -f Makefile.system
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
rm -rf ../../src/SFML/System/Clock.o ../../src/SFML/System/Err.o ../../src/SFML/System/Lock.o ../../src/SFML/System/Mutex.o ../../src/SFML/System/Randomizer.o ../../src/SFML/System/Sleep.o ../../src/SFML/System/String.o ../../src/SFML/System/Thread.o ../../src/SFML/System/ThreadLocal.o ../../src/SFML/System/Utf.o ../../src/SFML/System/Unix/Initializer.o ../../src/SFML/System/Unix/MutexImpl.o ../../src/SFML/System/Unix/Platform.o ../../src/SFML/System/Unix/ThreadImpl.o ../../src/SFML/System/Unix/ThreadLocalImpl.o
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make clean -f Makefile.window
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
rm -rf ../../src/SFML/Window/Context.o ../../src/SFML/Window/GlContext.o ../../src/SFML/Window/Input.o ../../src/SFML/Window/VideoMode.o ../../src/SFML/Window/Window.o ../../src/SFML/Window/WindowImpl.o ../../src/SFML/Window/Linux/GlxContext.o ../../src/SFML/Window/Linux/Joystick.o ../../src/SFML/Window/Linux/VideoModeImpl.o ../../src/SFML/Window/Linux/WindowImplX11.o
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make clean -f Makefile.graphics
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
rm -rf ../../src/SFML/Graphics/Color.o ../../src/SFML/Graphics/Drawable.o ../../src/SFML/Graphics/Font.o ../../src/SFML/Graphics/GLCheck.o ../../src/SFML/Graphics/Image.o ../../src/SFML/Graphics/ImageLoader.o ../../src/SFML/Graphics/Matrix3.o ../../src/SFML/Graphics/Renderer.o ../../src/SFML/Graphics/RenderImage.o ../../src/SFML/Graphics/RenderImageImpl.o ../../src/SFML/Graphics/RenderImageImplFBO.o ../../src/SFML/Graphics/RenderTarget.o ../../src/SFML/Graphics/RenderWindow.o ../../src/SFML/Graphics/Shader.o ../../src/SFML/Graphics/Shape.o ../../src/SFML/Graphics/Sprite.o ../../src/SFML/Graphics/Text.o ../../src/SFML/Graphics/View.o ../../src/SFML/Graphics/Linux/RenderImageImplPBuffer.o
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make clean -f Makefile.audio
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
rm -rf ../../src/SFML/Audio/ALCheck.o ../../src/SFML/Audio/AudioDevice.o ../../src/SFML/Audio/Listener.o ../../src/SFML/Audio/Music.o ../../src/SFML/Audio/SoundBuffer.o ../../src/SFML/Audio/SoundBufferRecorder.o ../../src/SFML/Audio/Sound.o ../../src/SFML/Audio/SoundFile.o ../../src/SFML/Audio/SoundRecorder.o ../../src/SFML/Audio/SoundSource.o ../../src/SFML/Audio/SoundStream.o
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make clean -f Makefile.network
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
rm -rf ../../src/SFML/Network/Ftp.o ../../src/SFML/Network/Http.o ../../src/SFML/Network/IpAddress.o ../../src/SFML/Network/Packet.o ../../src/SFML/Network/Socket.o ../../src/SFML/Network/SocketSelector.o ../../src/SFML/Network/TcpListener.o ../../src/SFML/Network/TcpSocket.o ../../src/SFML/Network/UdpSocket.o ../../src/SFML/Network/Unix/SocketImpl.o
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
cd ../../samples/build/make && make clean
make[2]: Entering directory `/home/adam/src/sfml2/samples/build/make'
for sample in ftp opengl pong shader sockets sound sound_capture voip window X11; do make clean -f Makefile.${sample}; done
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Entering directory `/home/adam/src/sfml2/samples/build/make'
make[3]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[2]: Leaving directory `/home/adam/src/sfml2/samples/build/make'
make[1]: Leaving directory `/home/adam/src/sfml2/build/make'


Then I try type make and this is what I get
Code: [Select]

cd ./build/make && make sfml
make[1]: Entering directory `/home/adam/src/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.system
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
g++ -o ../../src/SFML/System/Clock.o -c ../../src/SFML/System/Clock.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Err.o -c ../../src/SFML/System/Err.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Lock.o -c ../../src/SFML/System/Lock.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Mutex.o -c ../../src/SFML/System/Mutex.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Randomizer.o -c ../../src/SFML/System/Randomizer.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Sleep.o -c ../../src/SFML/System/Sleep.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/String.o -c ../../src/SFML/System/String.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Thread.o -c ../../src/SFML/System/Thread.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/ThreadLocal.o -c ../../src/SFML/System/ThreadLocal.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Utf.o -c ../../src/SFML/System/Utf.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Unix/Initializer.o -c ../../src/SFML/System/Unix/Initializer.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Unix/MutexImpl.o -c ../../src/SFML/System/Unix/MutexImpl.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Unix/Platform.o -c ../../src/SFML/System/Unix/Platform.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Unix/ThreadImpl.o -c ../../src/SFML/System/Unix/ThreadImpl.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/System/Unix/ThreadLocalImpl.o -c ../../src/SFML/System/Unix/ThreadLocalImpl.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -shared -Wl,-soname,libsfml-system.so.2.0 -o ../../lib/libsfml-system.so.2.0 ../../src/SFML/System/Clock.o ../../src/SFML/System/Err.o ../../src/SFML/System/Lock.o ../../src/SFML/System/Mutex.o ../../src/SFML/System/Randomizer.o ../../src/SFML/System/Sleep.o ../../src/SFML/System/String.o ../../src/SFML/System/Thread.o ../../src/SFML/System/ThreadLocal.o ../../src/SFML/System/Utf.o ../../src/SFML/System/Unix/Initializer.o ../../src/SFML/System/Unix/MutexImpl.o ../../src/SFML/System/Unix/Platform.o ../../src/SFML/System/Unix/ThreadImpl.o ../../src/SFML/System/Unix/ThreadLocalImpl.o -lpthread
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.window
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
g++ -o ../../src/SFML/Window/Context.o -c ../../src/SFML/Window/Context.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/GlContext.o -c ../../src/SFML/Window/GlContext.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/Input.o -c ../../src/SFML/Window/Input.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/VideoMode.o -c ../../src/SFML/Window/VideoMode.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/Window.o -c ../../src/SFML/Window/Window.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/WindowImpl.o -c ../../src/SFML/Window/WindowImpl.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/Linux/GlxContext.o -c ../../src/SFML/Window/Linux/GlxContext.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/Linux/Joystick.o -c ../../src/SFML/Window/Linux/Joystick.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
g++ -o ../../src/SFML/Window/Linux/VideoModeImpl.o -c ../../src/SFML/Window/Linux/VideoModeImpl.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
../../src/SFML/Window/Linux/VideoModeImpl.cpp:31:35: error: X11/extensions/Xrandr.h: No such file or directory
../../src/SFML/Window/Linux/VideoModeImpl.cpp: In static member function ‘static std::vector<sf::VideoMode, std::allocator<sf::VideoMode> > sf::priv::VideoModeImpl::GetFullscreenModes()’:
../../src/SFML/Window/Linux/VideoModeImpl.cpp:56: error: ‘XRRScreenConfiguration’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:56: error: ‘config’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:56: error: ‘XRRGetScreenInfo’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:61: error: ‘XRRScreenSize’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:61: error: ‘sizes’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:61: error: ‘XRRConfigSizes’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:86: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp: In static member function ‘static sf::VideoMode sf::priv::VideoModeImpl::GetDesktopMode()’:
../../src/SFML/Window/Linux/VideoModeImpl.cpp:130: error: ‘XRRScreenConfiguration’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:130: error: ‘config’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:130: error: ‘XRRGetScreenInfo’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:134: error: ‘Rotation’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:134: error: expected ‘;’ before ‘currentRotation’
../../src/SFML/Window/Linux/VideoModeImpl.cpp:135: error: ‘currentRotation’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:135: error: ‘XRRConfigCurrentConfiguration’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:139: error: ‘XRRScreenSize’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:139: error: ‘sizes’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:139: error: ‘XRRConfigSizes’ was not declared in this scope
../../src/SFML/Window/Linux/VideoModeImpl.cpp:144: error: ‘XRRFreeScreenConfigInfo’ was not declared in this scope
make[2]: *** [../../src/SFML/Window/Linux/VideoModeImpl.o] Error 1
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make[1]: *** [window] Error 2
make[1]: Leaving directory `/home/adam/src/sfml2/build/make'
make: *** [sfml] Error 2


I get a few errors but I type sudo make install anyway and this is what I get
Code: [Select]

cd ./build/make && make install
make[1]: Entering directory `/home/adam/src/sfml2/build/make'
mkdir -p /usr/local/lib
mkdir -p /usr/local/include
mkdir -p /usr/local/lib/debug//usr/local/lib
cp -r ../../include/SFML/ /usr/local/include/
find /usr/local/include/SFML -name .svn -type d -print0 | xargs -0 /bin/rm -rf
make install -f Makefile.system
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
objcopy --only-keep-debug ../../lib/libsfml-system.so.2.0 /usr/local/lib/debug//usr/local/lib/libsfml-system.so.2.0
objcopy --strip-unneeded  ../../lib/libsfml-system.so.2.0 /usr/local/lib/libsfml-system.so.2.0
ln -s -f libsfml-system.so.2.0 /usr/local/lib/libsfml-system.so
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make install -f Makefile.window
make[2]: Entering directory `/home/adam/src/sfml2/build/make'
objcopy --only-keep-debug ../../lib/libsfml-window.so.2.0 /usr/local/lib/debug//usr/local/lib/libsfml-window.so.2.0
objcopy: '../../lib/libsfml-window.so.2.0': No such file
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/adam/src/sfml2/build/make'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/adam/src/sfml2/build/make'
make: *** [install] Error 2


Please help this is really frustrating.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Please help me
« Reply #1 on: May 10, 2010, 08:27:28 am »
You must install the dependencies first.

Here you can find a complete list:
http://www.sfml-dev.org/tutorials/1.6/start-linux.php

Plus some others that are new to SFML 2 : SOIL, libjpeg, libpng, zlib, GLEW.
Laurent Gomila - SFML developer