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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xanti SS

Pages: [1]
1
General / I can't get SFML 2 to build on Fedora 12.
« 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.

2
General / I can't get SFML 2 to build on Fedora 12.
« 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.

3
General / Failed to build SFML2 on Fedora Linux 12
« 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.

4
General / 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.

Pages: [1]
anything