SFML 2.1 Code block
Ostatnio zmodyfikowano 2014-07-25 21:37
Pablosu Temat założony przez niniejszego użytkownika |
SFML 2.1 Code block » 2014-07-25 15:43:42 Cześć, co może być problemem, gdy ściągnąłem code block 13.12 + SFML 2.1 wykonałem krok po kroku poradnik i w czasie testów po prostu nic się nie dzieje. Ani blędów ani nic. Jedynie co pokazuje Message -------------- Build: Debug in SFML (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -g -IC:\Users\Paweł\Desktop\SFML-2.1\include -c C:\Users\Paweł\Desktop\SFML\main.cpp -o obj\Debug\main.o mingw32-g++.exe -LC:\Users\Paweł\Desktop\SFML-2.1\lib -o bin\Debug\SFML.exe obj\Debug\main.o C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-audio-d.a C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-graphics-d.a C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-main-d.a C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-network-d.a C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-system-d.a C:\Users\Paweł\Desktop\SFML-2.1\lib\libsfml-window-d.a -mwindows Output file is bin\Debug\SFML.exe with size 746.64 KB Process terminated with status 0 (0 minute(s), 8 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 8 second(s))
-------------- Run: Debug in SFML (compiler: GNU GCC Compiler)---------------
Checking for existence: C:\Users\Paweł\Desktop\SFML\bin\Debug\SFML.exe Executing: "C:\Users\Paweł\Desktop\SFML\bin\Debug\SFML.exe" (in C:\Users\Paweł\Desktop\SFML\.)
|
|
pekfos |
» 2014-07-25 16:34:47 Jak uruchomisz exe ręcznie, to działa? |
|
Pablosu Temat założony przez niniejszego użytkownika |
» 2014-07-25 17:50:08 Nie, chwilę coś mieli, mieli i nic. W Menadżerze jednak proces istnieje.
|
|
pekfos |
» 2014-07-25 18:01:09 A jak wygląda kod? |
|
Pablosu Temat założony przez niniejszego użytkownika |
» 2014-07-25 18:26:23 #include <SFML/Graphics.hpp> #include <cmath>
int main() { sf::RenderWindow okno( sf::VideoMode( 320, 240 ), "Kurs SFML 2.0 - http://cpp0x.pl" ); sf::Clock stoper; while( okno.isOpen() ) { sf::Event event; while( okno.pollEvent( event ) ) { if( event.type == sf::Event::Closed ) okno.close(); } //while okno.clear(); sf::CircleShape ksztalt( std::sin( stoper.getElapsedTime().asSeconds() ) * okno.getSize().y / 8 + okno.getSize().y / 4 ); ksztalt.setOrigin( sf::Vector2f( ksztalt.getRadius(), ksztalt.getRadius() ) ); ksztalt.setPosition( okno.getSize().x / 2.0f, okno.getSize().y / 2.0f ); ksztalt.setFillColor( sf::Color::Yellow ); okno.draw( ksztalt ); okno.display(); } //while return 0; }
|
|
pekfos |
» 2014-07-25 18:31:51 Jaki masz kompilator i jaką wersję biblioteki pobrałeś? |
|
Pablosu Temat założony przez niniejszego użytkownika |
» 2014-07-25 20:23:07 Kompilator : GNU GCC Compiler
SFLM 2.1 GCC 4.7 MinGW (DW2) - 32 bits Wcześniej miałem jeszcze GCC 4.7 TDM (SJLJ) - 32 bits ale wyrzucało inne błędy. Czym one się różnią tak w ogóle? |
|
pekfos |
» 2014-07-25 20:27:40 ale wyrzucało inne błędy. |
Jakie? |
|
« 1 » 2 |