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

Author Topic: I can't get SFML 2 to build on Fedora 12.  (Read 7095 times)

0 Members and 1 Guest are viewing this topic.

zac352

  • Newbie
  • *
  • Posts: 3
    • Yahoo Instant Messenger - snd2zac
    • View Profile
    • http://physibots.co.cc
I can't get SFML 2 to build on Fedora 12.
« on: May 02, 2010, 05:44:48 pm »
Quote
[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: '../../lib/libsfml-system.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

I have no idea what's causing this...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
I can't get SFML 2 to build on Fedora 12.
« Reply #1 on: May 02, 2010, 07:45:39 pm »
Did you
Quote
make

first?
Laurent Gomila - SFML developer

zac352

  • Newbie
  • *
  • Posts: 3
    • Yahoo Instant Messenger - snd2zac
    • View Profile
    • http://physibots.co.cc
I can't get SFML 2 to build on Fedora 12.
« Reply #2 on: May 02, 2010, 09:30:36 pm »
Quote
[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

That didn't work...

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #3 on: May 02, 2010, 09:49:15 pm »
Try a
Code: [Select]
make clean first now.
Then a
Code: [Select]
make
And finally a
Code: [Select]
sudo make install ;)
Mindiell
----

zac352

  • Newbie
  • *
  • Posts: 3
    • Yahoo Instant Messenger - snd2zac
    • View Profile
    • http://physibots.co.cc
I can't get SFML 2 to build on Fedora 12.
« Reply #4 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

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #5 on: May 02, 2010, 10:09:46 pm »
And install all external libraries. Iterate these steps:

- try to "make"
- see where the compiler first throws an error message (In this case Xrandr.h)
- google it (what library has something to do with it - usually things like "libname-dev") - in this case libxrandr (the "dev" version of libraries is what you should look for, as these contains the needed headers)
- install that library

after "make" is successful, you can "sudo make install". Good luck ;)

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #6 on: May 03, 2010, 08:41:36 am »
Do not hesitate to read documentation and tutorials :

Quote
Compiling SFML (for advanced users)

If the precompiled SFML libraries don't exist for your system, you can compile them quite easily. In such case, no test have been made so you are encouraged to report any failure or success encountered during your compile process. If you succeed compiling SFML for a new platform, please contact the development team so that we can share the files with the community.

First, you need to install the development packages of the external libraries used by SFML. Here is the complete list:

    * build-essential
    * mesa-common-dev
    * libx11-dev
    * libxrandr-dev  :?:
    * libgl1-mesa-dev
    * libglu1-mesa-dev
    * libfreetype6-dev
    * libopenal-dev
    * libsndfile1-dev
Mindiell
----

Xanti SS

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 553623988
    • MSN Messenger - xanti.ss@live.co.uk
    • AOL Instant Messenger - n345le
    • Yahoo Instant Messenger - dsbcy@yahoo.co.uk
    • View Profile
    • http://xantiz.com/
I can't get SFML 2 to build on Fedora 12.
« Reply #7 on: May 09, 2010, 11:43:47 pm »
Quote from: "Mindiell"
Do not hesitate to read documentation and tutorials :

Quote
Compiling SFML (for advanced users)

If the precompiled SFML libraries don't exist for your system, you can compile them quite easily. In such case, no test have been made so you are encouraged to report any failure or success encountered during your compile process. If you succeed compiling SFML for a new platform, please contact the development team so that we can share the files with the community.

First, you need to install the development packages of the external libraries used by SFML. Here is the complete list:

    * build-essential
    * mesa-common-dev
    * libx11-dev
    * libxrandr-dev  :?:
    * libgl1-mesa-dev
    * libglu1-mesa-dev
    * libfreetype6-dev
    * libopenal-dev
    * libsndfile1-dev


That's not going to work because he's trying it with Fedora and SFML 2.

I've tried the same thing and get the same errors. There seems to be a fundamental issue with the way they work on the "Linux" version of SFML, which might as well be called the "Ubuntu" version.

No, I get the same SOIL error. I can't find any SOIL packages anywhere. I've installed everyone single Mesa related package from YUM and it still doesn't build. Google searches for "soil fedora Linux" just return unrelated junk, along with a bunch of other expansions and modifications of the same query.

I can't find packages, so I guess I'll have to build SOIL myself.
~Xanti SS
Web developer, computer guy, Windows Vista and Fedora Linux user. Twitter: Tarabukka

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #8 on: May 10, 2010, 04:00:47 am »
Hey, I recently had this problem when trying to compile my sfml 2 on linux mint. Open terminal and navigate to your sfml-x.y director, type make clean.  The next step is to install of of these files
    build-essential
    mesa-common-dev
    libx11-dev
    libxrandr-dev
    libgl1-mesa-dev
    libglu1-mesa-dev
    libfreetype6-dev
    libopenal-dev
    libsndfile1-dev

I found all of these in my package manager, after that go to the directory again in terminal and type make.  It should work, if not look through the errors for missing libraries, I had to install the jpg and png library.  Finally after installing all of the missing components typing make clean -> make -> sudo make install installed sfml2 on my linux.  Then just link your folders to Code::Blocks or whatever other compilers you used.  This should work for the first few examples.  

Also does anyone know why I am receiving this error?
Code: [Select]

error while loading shared libraries: libsfml-graphics.so.2.0: cannot open shared object file: No such file in directory

JollyRoger

  • Newbie
  • *
  • Posts: 17
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #9 on: May 10, 2010, 04:06:02 am »
The shared object files are copied to /usr/local/lib when you make install when they really should be in /usr/lib.  Just copy all of the libsfml-*.so.2.0 to your /usr/lib directory.

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #10 on: May 10, 2010, 04:29:20 am »
Sweet thank you man :lol: I could not paste them normally, but when I logged in as root I could paste them.  If there is someone that does not log into root this is what I did(Linux Mint/Linux Ubuntu?), open up terminal type sudo su then type passwd.  After setting that up, log out of your session and then press other user, type root for username, and the password you just set as your password.  Now you can copy and paste stuff to and from usr/lib.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
I can't get SFML 2 to build on Fedora 12.
« Reply #11 on: May 10, 2010, 08:37:05 am »
Quote
The shared object files are copied to /usr/local/lib when you make install when they really should be in /usr/lib. Just copy all of the libsfml-*.so.2.0 to your /usr/lib directory.

No they shouldn't.
/usr/lib is for what your package manager installs (and more generally, what your OS manages automatically).
/usr/local/lib is for what you install manually.

So you should not copy things to /usr/lib (which requires admin rights), but rather make /usr/local/lib available for your OS when loading shared libraries. I don't know how to do that, on my Debian it was done by default.
Laurent Gomila - SFML developer

adamkwal

  • Newbie
  • *
  • Posts: 11
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #12 on: May 11, 2010, 02:45:45 am »
Hey its me again, if you want to authorize a path with your OS you need to add it to your $PATH.  Here is a great tutorial that works with any linux distribution that has a terminal: http://www.codecoffee.com/tipsforlinux/articles/030.html

Xanti SS

  • Newbie
  • *
  • Posts: 4
    • ICQ Messenger - 553623988
    • MSN Messenger - xanti.ss@live.co.uk
    • AOL Instant Messenger - n345le
    • Yahoo Instant Messenger - dsbcy@yahoo.co.uk
    • View Profile
    • http://xantiz.com/
I can't get SFML 2 to build on Fedora 12.
« Reply #13 on: May 27, 2010, 07:43:54 pm »
Quote from: "adamkwal"
Hey, I recently had this problem when trying to compile my sfml 2 on linux mint. Open terminal and navigate to your sfml-x.y director, type make clean.  The next step is to install of of these files
    build-essential
    mesa-common-dev
    libx11-dev
    libxrandr-dev
    libgl1-mesa-dev
    libglu1-mesa-dev
    libfreetype6-dev
    libopenal-dev
    libsndfile1-dev

I found all of these in my package manager, after that go to the directory again in terminal and type make.  It should work, if not look through the errors for missing libraries, I had to install the jpg and png library.  Finally after installing all of the missing components typing make clean -> make -> sudo make install installed sfml2 on my linux.  Then just link your folders to Code::Blocks or whatever other compilers you used.  This should work for the first few examples.  

Also does anyone know why I am receiving this error?
Code: [Select]

error while loading shared libraries: libsfml-graphics.so.2.0: cannot open shared object file: No such file in directory


That's not going to help me or him, because Linux Mint is Ubuntu and thus Debian based.

Please, please. Debian based distributions are not the only Linux distributions.
~Xanti SS
Web developer, computer guy, Windows Vista and Fedora Linux user. Twitter: Tarabukka

xRedx22

  • Newbie
  • *
  • Posts: 6
    • View Profile
I can't get SFML 2 to build on Fedora 12.
« Reply #14 on: June 01, 2010, 09:45:17 pm »
I'm not sure if this command will work, but it is listed in the fedora package database here.

Code: [Select]
yum install libxrandr-devel

I don't know why the names are have devel instead of dev, but try it and tell me if it works.