problem with sfml
« on: 02 March 2015, 03:06:19 »
Hey!
I'm trying to install TGUI on ubuntu. cmake works just fine, but
Quote
sudo make install -j6
gives me the following output :
Quote
chrescht@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

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: problem with sfml
« Reply #1 on: 02 March 2015, 12:34:45 »
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.

Re: problem with sfml
« Reply #2 on: 02 March 2015, 19:30:51 »
Ok thanks!