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

Pages: [1]
1
Ah, link order ... I didn't find a solution for hours, but 1 minute after posting my question here, the solution comes into my mind ...

Problem solved!

2
Hi,
I always get error messages like this when using sf::Music with self-compiled SFML2-RC. (It works when using precompiled libraries, but that is no option)

../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::play()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|105|undefined reference to `sf::Thread::launch()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::~SoundStream()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|56|undefined reference to `sf::Thread::~Thread()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::setPlayingOffset(sf::Time)':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|164|undefined reference to `sf::Thread::launch()'|
../Libs/SFML/lib/libsfml-audio.a(SoundStream.cpp.o)||In function `sf::SoundStream::stop()':|
/home/ferler/Projects/tee2/Libs/SFML/src/SFML/Audio/SoundStream.cpp|121|undefined reference to `sf::Thread::wait()'|
||=== Build finished: 5 errors, 0 warnings ===|

Of course I link sfml-system. Any guess what could be wrong?

I am building it that way:
cmake . -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGLEW_INCLUDE_PATH=../../GLEW/include -DGLEW_LIBRARY=../libGLEW_d.a -DSFML_INSTALL_PKGCONFIG_FILES=OFF

Thanks,
Ethon

3
Graphics / Re: Image is not displayed and application uses 100% CPU
« on: January 25, 2013, 01:47:43 pm »
What the hell ... I feel so stupid now.
I guess I accidently removed that line of code from my project.

Thanks for pointing that out, a shame I didn't notice myself.

4
Graphics / Image is not displayed and application uses 100% CPU
« on: January 25, 2013, 01:22:27 pm »
Hey,
since a few days my SFML application stopped working. So I tried a basic setup and it also doesn't work.

#include <SFML/System/Sleep.hpp>
#include <SFML/Graphics.hpp>

int main()
{
    // Create the main window
    sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");

    sf::Texture texture;
    if(!texture.loadFromFile("Data/Image/Background.png"))
        return EXIT_FAILURE;
    sf::Sprite bg(texture);

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

        window.draw(bg);
        // sf::sleep(sf::milliseconds(5));
    }
}

SFML: The latest SFML-2.0-rc from the download page. I also tried to source distribution which I compiled myself.
OS: Linux, Fedora 17

Problem: The sprite is not displayed (The window contains that what previously was at the position on the screen),
CPU usage goes up to maximum and there is a huge latency when trying to close the windows. (Up to a few minutes, therefor the sleep).

Any advice? Thanks. :)
Regards,
Ethon

Pages: [1]
anything