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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bigfoot

Pages: [1]
1
General / Re: SFML Segmentation fault
« on: April 23, 2017, 10:41:35 pm »
Thank you very much for your response  :)

After noticing that opengl was indeed not installed, it now works :)

Thank you :)

2
General / Re: SFML Segmentation fault
« on: April 23, 2017, 08:46:22 pm »
Hello,

Thank you very much for your response. So, I compiled sfml in debug mode (-DCMAKE_BUILD_TYPE=Debug). Unfortunately, I get the same problems, without any further information, even when compiling my program with "-g -O0".

I also tried the example given here, but without any luck, same result.

Thank you again for all your help.

3
General / [SOLVED]SFML Segmentation fault
« on: April 23, 2017, 07:59:44 pm »
Hello,

I am having a problem with the library. When creating a simple program:
int main() {
   sf::Texture texture;
}
 


I get [1] 6699 Segmentation fault (core dumped) <program path>

When running it in gdb I get
in ?? () from /usr/lib/libsfml-window.so.2.4
in ?? () from /usr/lib/libsfml-window.so.2.4
in ?? () from /usr/lib/libsfml-window.so.2.4
in sf::Texture::Texture() () from /usr/lib/libsfml-graphics.so.2.4

Some other information:
OS: Archlinux
SFML version: 2.4 (tried sfml-git and sfml packages)

This is how I compiled my program:

g++ main.cpp -o main -lsfml-graphics -lsfml-system

Thank you very much in advance

Pages: [1]
anything