Crash from SetPosition of Panel
« on: 29 August 2014, 19:02:55 »
Program received signal SIGSEGV, Segmentation fault.
In sf::Shader::bind(sf::Shader const*) () ()

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Crash from SetPosition of Panel
« Reply #1 on: 29 August 2014, 19:06:02 »
Since the crash occurs in sfml, this is most likely a library incompatibility.

So make sure you check everything mentioned here: https://forum.tgui.eu/index.php/topic,216.msg1092.html#msg1092

Re: Crash from SetPosition of Panel
« Reply #2 on: 30 August 2014, 03:28:03 »
I'm almost certain I followed all those this time. My current issue is the program won't build due to undefined references to various glFunctions like glIsEnabled and whatnot.

Re: Crash from SetPosition of Panel
« Reply #3 on: 30 August 2014, 03:35:39 »
Unfortunately I am low on time due to work. I just ditched static compiling and it all appears to work. thanks for help though. Your library really puts SFML over the top of SDL for me.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Crash from SetPosition of Panel
« Reply #4 on: 30 August 2014, 12:46:41 »
Glad that you like it and got it working.

I do want to see if I can reproduce these opengl errors though. What is your compiler and sfml version?

Re: Crash from SetPosition of Panel
« Reply #5 on: 30 August 2014, 17:40:55 »
Glad that you like it and got it working.

I do want to see if I can reproduce these opengl errors though. What is your compiler and sfml version?

SFML version should have been the one with tgui, at least for the openGL errors. Otherwise it may have been sfml 2.1. Compiler was gcc gnu 4.7.1 sljl unless I'm mistaken.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Crash from SetPosition of Panel
« Reply #6 on: 30 August 2014, 18:16:44 »
I think I understand what went wrong.

The SFML version provided in the precompiled TGUI libraries is newer (and more stable) than SFML 2.1.
Some changes have however been made to sfml concerning linking statically, which were made AFTER the release of sfml 2.1. When linking statically to the newer sfml versions you have to also link its dependencies.
More info: https://github.com/LaurentGomila/SFML/wiki/FAQ#build-link-static