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 - TheDeceivingEye

Pages: [1]
1
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 01:36:18 am »
Good news:

I used NetBeans, and everything works fine. Also, I used the package from the repos, and added /usr/include and /usr/local/include for my include options, and the /usr/lib and /usr/local/lib for the libraries. Everything works.

However, I instead am now using the slightly outdated G++-4.9, which seems to, however, work fine.

Thanks for the suggestion of getting it from the repos instead.

2
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 01:15:24 am »
I have tried, now, the repository variant as well to no avail. The "libsfml-dev" package available for my system.

Could it be that Ubuntu 17.04 isn't compatible? If this is the case, then it's too big of a jump to move back to 16.04, I might have to forget using SFML.

3
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 01:07:23 am »
Apparently the "udev" package from the repos is perfectly up to date and present.

Edit: I tried both the package from GitHub and the one from the downloads page, the one labeled "source," and the exact same problem is occurring.

4
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 01:04:43 am »
"CMake Error at cmake/Modules/FindUDev.cmake:49 (MESSAGE):
  Could not find UDev library
Call Stack (most recent call first):
  src/SFML/Window/CMakeLists.txt:242 (find_package)"


Configuration error. UDev is most certainly not missing. I'll try the one from GitHub.

5
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 12:45:28 am »
I'll quickly try that and get back to the forums if something goes wrong. Thanks.

6
General / Re: Making window causes crash (core dumped)
« on: August 05, 2017, 12:37:31 am »
https://www.sfml-dev.org/download/sfml/2.4.2/

Here. The 64-bit Linux variant.

7
General / [SOLVED] Making window causes crash
« on: August 05, 2017, 12:26:49 am »
I've recently been trying to use the SFML libraries in order to go along with my learning of C++. Please understand that I've only started attempting this today, and my knowledge may be lacking.


This code:
------
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "Hello World");
    return 0;
}
------

Causes a giant error, though the first few lines:
------
*** Error in `./wontwork': free(): invalid pointer: 0x00005644c95ccd68 ***

This is then followed by a backtrace, and a memory map.
------

Implies that some pointer to a variable/object is either invalid or the include/library is missing. I've been trying to start on SFML for quite a few hours now, and searching on Google didn't quite help. I have followed up to three tutorials on linking these libraries.

I have linked the following libraries:

sfml-graphics
sfml-window
sfml-audio
sfml-network
GL
sfml-system


I am using CodeLite on Ubuntu 17.04.

Pages: [1]
anything