1
General / I can't get SFML 2 to build on Fedora 12.
« on: May 02, 2010, 10:08:32 pm »
I'll highlight spots that look like I may need to install a package:
Quote
[root@zac sfml2]# make clean
cd ./build/make && make clean
make[1]: Entering directory `/home/zac/Rendering/sfml2/build/make'
make clean -f Makefile.system
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make clean -f Makefile.window
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make clean -f Makefile.graphics
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make clean -f Makefile.audio
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make clean -f Makefile.network
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
cd ../../samples/build/make && make clean
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Entering directory `/home/zac/Rendering/sfml2/samples/build/make'
make[3]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[2]: Leaving directory `/home/zac/Rendering/sfml2/samples/build/make'
make[1]: Leaving directory `/home/zac/Rendering/sfml2/build/make'
[root@zac sfml2]# make
cd ./build/make && make sfml
make[1]: Entering directory `/home/zac/Rendering/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.system
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.window
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make[1]: *** [window] Error 2
make[1]: Leaving directory `/home/zac/Rendering/sfml2/build/make'
make: *** [sfml] Error 2
[root@zac sfml2]# make install
cd ./build/make && make install
make[1]: Entering directory `/home/zac/Rendering/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/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make install -f Makefile.window
make[2]: Entering directory `/home/zac/Rendering/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/zac/Rendering/sfml2/build/make'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/zac/Rendering/sfml2/build/make'
make: *** [install] Error 2