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

Pages: [1]
1
Merci Laurent. Thanks Laurent ! <3

I use "make install" and it works like a charm with 5.2.1 version and GCC 7.3.1.

I can finally create the new Fortnite.

2
Memory leaks can't be a excepted behavior.

I know that's my SFML, I asked to a friend to test ans it works very nice. If i compile 2.5.1 on my computer with gcc 7.3.1, I just need to copy lib folder on my own lib folder and do the same with include folder ?

3
Thanks for reply !

I builded SFML 2.5.1 from source with GCC 7.3.1.

My compilation line is : g++ main.cpp -lsfml-graphics -lsfml-window -lsfml-system -g3

4
Hi,

I have a crash in my main code with new sf::Text. So I try this test to figure out why I have a crash :
Quote
#include <SFML/Graphics/Text.hpp>
#include <iostream>

int main(int ac, char **av)
{
        sf::Font font;
        // Load it from a file
        if (!font.loadFromFile("./BrushcrazyDEMO.otf"))
        {
                std::cerr << "test" << std::endl;
        }
        sf::Text *text = new sf::Text("hello", font, 20);
}

With this simple test I have a lot of memory errors like that :

Quote
==24546== Invalid write of size 8
==24546==    at 0x4E8687C: sf::VertexArray::VertexArray(sf::PrimitiveType, unsigned long) (in /usr/lib/libsfml-graphics.so.2.5.1)
==24546==    by 0x4E8577B: sf::Text::Text(sf::String const&, sf::Font const&, unsigned int) (in /usr/lib/libsfml-graphics.so.2.5.1)
==24546==    by 0x401070: main (main.cpp:12)
==24546==  Address 0x8e6b930 is 0 bytes after a block of size 304 alloc'd
==24546==    at 0x4C2E1CA: operator new(unsigned long) (vg_replace_malloc.c:334)
==24546==    by 0x401053: main (main.cpp:12)

PS: line 12 is the line with sf::Text *.
Someone has an idea ?

Pages: [1]