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

Author Topic: SFML & TGUI installation  (Read 2191 times)

0 Members and 1 Guest are viewing this topic.

Chrescht1337

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML & TGUI installation
« on: March 02, 2015, 12:29:32 am »
Hey!
I wanted to use SFML and TGUI to make a small game, but I have come upon some problems while installing these libraries.
Using, I installed SFML via
Quote
sudo apt-get install libsfml-dev
, as suggested in the tutorial. to install TGUI, I downloaded it from https://tgui.eu/download/ option "Download TGUI v0.6.7 without precompiled libraries (to build it with CMake for any compiler with any SFML 2.x version)". while trying to install TGUI, i get the following error multiple times :
Quote
error: ‘class sf::String’ has no member named ‘substring’
. when I look at String.hpp /usr/include/SFML/System, there are a lot of signatures lacking who should be there. when I download sfml via http://www.sfml-dev.org/download.php and look at String.hpp, I get the necessary methods and all, but this seems quite odd.
Is there something I should have done in addtion to
Quote
sudo apt-get install libsfml-dev
?

Hope I made myself clear

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: SFML & TGUI installation
« Reply #1 on: March 02, 2015, 12:50:56 am »
A lot of distributions still only have SFML 1.6 in them so the first thing for you to check would be what version of SFML you installed.  I'm guessing it wasn't 2.0+.  Otherwise just remove that version and compile/install the git repo and all should work fine.

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Re: SFML & TGUI installation
« Reply #2 on: March 02, 2015, 04:46:17 pm »
See answer on the tgui forum.
My download page still said "any sfml 2.x" while sfml 2.2 is required for tgui 0.6.7. I have fixed that now.
TGUI: C++ SFML GUI