Crash from SetPosition of Panel

Started by MoLAoS, 29 August 2014, 19:02:55

MoLAoS

Program received signal SIGSEGV, Segmentation fault.
In sf::Shader::bind(sf::Shader const*) () ()

texus

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

MoLAoS

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.

MoLAoS

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

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?

MoLAoS

Quote from: texus 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?

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

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