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

Author Topic: Failed to build SFML2 on Fedora Linux 12  (Read 2793 times)

0 Members and 2 Guests are viewing this topic.

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/
Failed to build SFML2 on Fedora Linux 12
« on: April 22, 2010, 07:22:15 pm »
Hi

I downloaded SFML2 onto my Fedora 12 computer and attempted to build it. I've tried numerous times and searched for some of my errors here. Apparently I had to install GLEW and its development package, so I did this:

Code: [Select]

yum install glew
# then
yum install glew-devel


Now I get different errors:

Code: [Select]

[root@daniellinux sfml2]# make
cd ./build/make && make sfml
make[1]: Entering directory `/home/Dan/Downloads/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.system
make[2]: Entering directory `/home/Dan/Downloads/sfml2/build/make'
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/Dan/Downloads/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.window
make[2]: Entering directory `/home/Dan/Downloads/sfml2/build/make'
g++ -shared -Wl,-soname,libsfml-window.so.2.0 -o ../../lib/libsfml-window.so.2.0 ../../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 -lX11 -lXrandr -lGL
make[2]: Leaving directory `/home/Dan/Downloads/sfml2/build/make'
mkdir -p ../../lib
make -f Makefile.graphics
make[2]: Entering directory `/home/Dan/Downloads/sfml2/build/make'
g++ -o ../../src/SFML/Graphics/ImageLoader.o -c ../../src/SFML/Graphics/ImageLoader.cpp -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC -I/usr/include/freetype2
../../src/SFML/Graphics/ImageLoader.cpp:36:23: error: SOIL/SOIL.h: No such file or directory
../../src/SFML/Graphics/ImageLoader.cpp: In member function ‘bool sf::priv::ImageLoader::LoadImageFromFile(const std::string&, std::vector<unsigned char, std::allocator<unsigned char> >&, unsigned int&, unsigned int&)’:
../../src/SFML/Graphics/ImageLoader.cpp:89: error: ‘SOIL_LOAD_RGBA’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:89: error: ‘SOIL_load_image’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:102: error: ‘SOIL_free_image_data’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:109: error: ‘SOIL_last_result’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp: In member function ‘bool sf::priv::ImageLoader::LoadImageFromMemory(const void*, size_t, std::vector<unsigned char, std::allocator<unsigned char> >&, unsigned int&, unsigned int&)’:
../../src/SFML/Graphics/ImageLoader.cpp:125: error: ‘SOIL_LOAD_RGBA’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:125: error: ‘SOIL_load_image_from_memory’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:138: error: ‘SOIL_free_image_data’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:145: error: ‘SOIL_last_result’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp: In member function ‘bool sf::priv::ImageLoader::SaveImageToFile(const std::string&, const std::vector<unsigned char, std::allocator<unsigned char> >&, unsigned int, unsigned int)’:
../../src/SFML/Graphics/ImageLoader.cpp:160: error: ‘SOIL_SAVE_TYPE_BMP’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:161: error: ‘SOIL_SAVE_TYPE_TGA’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:162: error: ‘SOIL_SAVE_TYPE_DDS’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:177: error: ‘SOIL_save_image’ was not declared in this scope
../../src/SFML/Graphics/ImageLoader.cpp:180: error: ‘SOIL_last_result’ was not declared in this scope
make[2]: *** [../../src/SFML/Graphics/ImageLoader.o] Error 1
make[2]: Leaving directory `/home/Dan/Downloads/sfml2/build/make'
make[1]: *** [graphics] Error 2
make[1]: Leaving directory `/home/Dan/Downloads/sfml2/build/make'
make: *** [sfml] Error 2


Do you have any comments regarding this? I can't find any packages or files named SOIL.
~Xanti SS
Web developer, computer guy, Windows Vista and Fedora Linux user. Twitter: Tarabukka

Hohoo

  • Newbie
  • *
  • Posts: 13
    • View Profile
Failed to build SFML2 on Fedora Linux 12
« Reply #1 on: April 22, 2010, 08:36:08 pm »
You could try downloading Debian packages of them and convert them to rpm with Alien.

http://packages.debian.org/search?keywords=libsoil

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/
Failed to build SFML2 on Fedora Linux 12
« Reply #2 on: April 27, 2010, 06:12:07 pm »
Quote from: "Hohoo"
You could try downloading Debian packages of them and convert them to rpm with Alien.

http://packages.debian.org/search?keywords=libsoil


I think it's something up with the Makefile or the files included, not a package requirement.

I've also tried installing all the Mesa and Mesa development files, with the same results.
~Xanti SS
Web developer, computer guy, Windows Vista and Fedora Linux user. Twitter: Tarabukka