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

Pages: [1]
1
General / Re: Tutorial Question
« on: September 18, 2014, 08:36:38 pm »
Yes, you're right.

It had to do with the fact that I tried to install from source before, had trouble with libs and then used apt-get. I purged libsfml-dev, then installed again, and the circle is up there.

Sorry for not having tried this before, but hope it helps other beginners who might make the same mistake =]

Thanks for the help!

2
General / Re: Tutorial Question
« on: September 18, 2014, 08:28:47 pm »
Hi eXpl0it3r, thanks for helping =]

My graphics card:

Quote
01:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device 1563
        Flags: bus master, fast devsel, latency 0, IRQ 45
        Memory at f4000000 (32-bit, non-prefetchable) [size=32M]
        Memory at e0000000 (64-bit, prefetchable) [size=128M]
        Memory at e8000000 (64-bit, prefetchable) [size=64M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at f6000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia

And yes, sorry, I should have mentioned this =]

I get a message when I run the executable, only:

Quote
./graphs: Symbol `_ZN2sf12RenderStates7DefaultE' has different size in shared object, consider re-linking

3
General / Tutorial Question
« on: September 18, 2014, 07:49:45 pm »
Hi guys.

I'm starting with SFML now, and installed it following the SFML with Linux (http://sfml-dev.org/tutorials/2.1/start-linux.php) tutorial.

Everything went fine, but the test code opened the window without the green circle expected:

Quote
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

And compiled with:

Quote
g++ -c graphics.cpp
g++ graphics.o -o graphs -lsfml-graphics -lsfml-window -lsfml-system

Did anyone ever experienced this and could help me with the issue?
Thanks.

4
General / Re: Weird DLL error
« on: March 07, 2013, 07:07:06 pm »
Just so no one will bother, or to help future users, I decided to throw all my dll's into Windows's System32 and SysWOW64 folders, and now it works. I guess my error was: I was throwing the DLL's on the "\Project_Name" folder. Maybe I should have placed them on "\Project_Name\Debug" or "\Project_Name\Release".

I still find it weird, though, that Avast!'s sandbox was able to run it anyways.

5
General / [SOLVED] Weird DLL error
« on: March 07, 2013, 06:58:39 pm »
Hi guys. I'm a SFML beginner, and I just went through the process of installing it. What I did was to follow this tutorial (http://sfmlcoder.wordpress.com/2011/06/15/building-sfml-2-nmake/) to download SFML 2.0 and compile it for Visual Studio 20[12] with CMake and NMake. Everything went well, and I ran the sample code.

That's where things got weird. I use Avast! Antivirus, and it always makes a little sandbox for programs to run on it before actually running on windows. So, I compile my program, no errors, and run it. Avast! pops up, the program runs on its sandbox, I get my blank SFML window, all perfect. Then Avast! asked me if I'd like to allow my program to be executed on my computer, and I said yes. And then I got the message that "sfml-graphics-d-2.dll is missing". The thing is: 1) it's not, it's there on the executable folder and 2) it worked on Avast! sandbox!

Does anybody have a clue of what might be happening? Meanwhile, I'll recompile the sources and re-configure the project's properties all over again. Thanks a bunch.

Pages: [1]