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 - ThomasAn.

Pages: [1]
1
General / (SOLVED) Setup issues
« on: February 18, 2016, 04:58:16 am »
SOLVED: I forgot to to replace the old with new graphics, system, and window DLLs in the project's build folder.

-------------------------------------------------------
Original:
SFML was properly setup a couple of years ago (Windows, CodeBlocks 13).
Now, after updating to CodeBlocks 16, I am getting errors.

Downloaded SFML 2.3.2 from source and recompiled (using default Cmake settings) from instructions here:
http://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php
http://www.sfml-dev.org/tutorials/2.3/start-cb.php

Still getting errors.

Quote
---------------------------
Game01.exe - Entry Point Not Found
---------------------------
The procedure entry point _ZN2sf6Window6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE could not be located in the dynamic link library C:\Users\Thomas\AnTh\A0_UNI-Boulder\CSCI2270 DataStructures\HW12-SnakeGameAI\Code\Game01.exe.
---------------------------
OK   
---------------------------

2
Graphics / How to draw a *single* vertex ?
« on: May 18, 2013, 08:41:53 am »
I see a lot of documentation about vertex arrays ... but how can we draw a *single* vertex ?

3
General / sfml 2.0 undefined reference to getDefaultFont
« on: April 25, 2013, 06:39:35 am »
I am writing a simple game and so far all works well, with graphics and keyboard working well, but ...
... today for the first time I am trying to add some text elements and get this error.

Just doing the text sample from the doc page:
(And I have the Arial.ttf in the local folder)

Quote
// Declare and load a font
 sf::Font font;
 font.loadFromFile("arial.ttf");
 
 // Create a text
 sf::Text text("hello");
 text.setFont(font);
 text.setCharacterSize(30);
 text.setStyle(sf::Text::Bold);
 text.setColor(sf::Color::Red);

 // Draw it
 window.draw(text);

4
General / Graphics tut for SFML 2.0
« on: February 15, 2013, 02:57:21 am »
I am looking for a newbie graphics tutorial for SFML 2.0. Is there anything out there yet ?

5
General / [SOLVED] I am simply unable to run SFML on my system ?
« on: February 06, 2013, 04:00:49 am »
1. Using Codebloks 12.11 and SFML 1.6 and the tutorial --> here, everything looks fine but when I to compile the sample.

#include <SFML/System.hpp>
#include <iostream>

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

I get segfaults. Windows terminates the program.

2. I downloaded SFML 2.0 went over the other tutorial --> here and then running the sample:

#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;
}

I get numerous build errors.

3. I downloaded Cmake and SFML2.0 and then followed the instructions --> here, I get it to compile up to 94% before getting a bunch or errors.

This is simply not working for me every way I turn it.

Quote
[ 94%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cp
p.obj
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp: In me
mber function 'bool sf::priv::SoundFile::openWrite(const string&, unsigned int,
unsigned int)':
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:199:48
: error: 'SF_FORMAT_OGG' was not declared in this scope
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:199:64
: error: 'SF_FORMAT_VORBIS' was not declared in this scope
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp: In st
atic member function 'static int sf::priv::SoundFile::getFormatFromFilename(cons
t string&)':
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:303:41
: error: 'SF_FORMAT_WVE' was not declared in this scope
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:304:41
: error: 'SF_FORMAT_OGG' was not declared in this scope
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:305:41
: error: 'SF_FORMAT_MPC2K' was not declared in this scope
D:\ThomasAn\A0_Appl\S00_Programming\SFML-2.0\src\SFML\Audio\SoundFile.cpp:306:41
: error: 'SF_FORMAT_RF64' was not declared in this scope
mingw32-make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.obj
] Error 1
mingw32-make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
mingw32-make: *** [all] Error 2

Pages: [1]