problem with sfml

Started by Chrescht1337, 02 March 2015, 03:06:19

Chrescht1337

Hey!
I'm trying to install TGUI on ubuntu. cmake works just fine, but
Quotesudo make install -j6
gives me the following output :
Quotechrescht@ubuntu:~/Downloads/TGUI-0.6.7$ sudo make install -j6
[ 89%] Built target tgui
Linking CXX executable FormBuilder
../../../lib/libtgui.so.0.6.7: undefined reference to `sf::String::substring(unsigned long, unsigned long) const'
../../../lib/libtgui.so.0.6.7: undefined reference to `sf::Image::~Image()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/TGUI/FormBuilder/FormBuilder] Error 1
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Error 2
make: *** [all] Error 2
chrescht@ubuntu:~/Downloads/TGUI-0.6.7$ sudo make install -j6
[sudo] password for chrescht:
[ 89%] Built target tgui
Linking CXX executable FormBuilder
../../../lib/libtgui.so.0.6.7: undefined reference to `sf::String::substring(unsigned long, unsigned long) const'
../../../lib/libtgui.so.0.6.7: undefined reference to `sf::Image::~Image()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/TGUI/FormBuilder/FormBuilder] Error 1
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Error 2
make: *** [all] Error 2

does anyone know the source of this problem? I just installed sfml, very new to it.

texus

It is because you have SFML 2.1 installed while TGUI 0.6.7 requires SFML 2.2.

Either install SFML 2.2 (by compiling it yourself like you do with TGUI) or install TGUI 0.6.6.

I will update the information on the dowload page as it still says that tgui compiles with any sfml 2.x version.

Chrescht1337