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.


Topics - drarem

Pages: [1]
1
Audio / need help with program crashing/undefined symbol..
« on: May 16, 2012, 10:36:18 pm »
Using QT and trying to use SFML audio, I get this when trying to run my program:

symbol lookup error: /usr/local/lib/libsfml-audio.so.1.6: undefined symbol: _ZTIN2sf6ThreadE
exited with code 127

I'm using the following setup/test:

INCLUDEPATH += /usr/include/SFML
LIBS += -lsfml-window -lsfml-graphics -lsfml-system -lsfml-audio -lsfml-network


    sf::SoundBuffer Buffer;
    if (!Buffer.LoadFromFile("bounce.ogg"))
        exit(1);

    unsigned int SampleRate = Buffer.GetSampleRate();
    unsigned int Channels   = Buffer.GetChannelsCount();

    // Create a sound instance and play it
    sf::Sound Sound(Buffer);
    Sound.Play();

2
General discussions / Can SMFL do classes?
« on: May 21, 2011, 02:28:33 pm »
In other words,

I want to have something like:

SFML * app;
app = new SFML(1024,768,32,fullscreen);

The value in this is I can build everything else into the class and only use the main code to do my calls. I am beginning to realize how simple SFML is and wondering this may make it somewhat more complicated but anyway..

app->loadsprites(char *spritedat, IMG *img, int xwid, int yhgt, int count);

Pages: [1]
anything