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

Pages: [1]
General discussions / Difficuly of porting SFML to SDL
« on: October 05, 2022, 08:18:25 pm »
during the summer break, I started coding in SFML, only to recently learn that we use SDL / OpenGL in school. But I don't want to switch so fast, because I just got used to SFML and yeah.

I don't need to make the jump right now. This year, we are supposed to make a game and hand it in in April. Before that, I don't need any knowledge of SDL.
So my question is; How difficult would it be, if I made the game in SFML first and then port it to SDL after it is all finished? Or are there significant issues in doing so?

The game should be quite simple. There will be no shaders or anything of the sort. Just sprites, basic transformations and the sort.

Thank you in advance!

General discussions / Where to learn SFML from?
« on: August 25, 2022, 08:11:21 am »
Hello. I recently installed SFML and am wondering where to go from here - aka where do I learn SFML.

[req: Free, Video form]

I stumbled upon a SFML 2.4.1 course, however I am not sure of the changes made between 2.4.1 and 2.5.1 and how much of a difference it would make. I read the changelog, but I am not certain.

Other alternatives are some code-alongs.

I have a few years of experience with Processing (processing.org, simplified java for graphics) and a year of experience with C++ (no massive projects yet).

Considering all that, what would you recommend?
If I choose SFML 2.4.1 course, what changes do I need to look out for?
If I choose a code-along, which one should I choose?

Thank you

General / Entry Point Not Found - unable to run SFML c++ exe file.
« on: August 20, 2022, 04:41:33 pm »
I have been trying to install the SFML library on VSCode, however when I try to run the .exe file, several errors pop up (windows dialog messages)
"the procedure entry point __gxx_personality_v0 could not be located in the dynamic link library C:/Users/Uporabnik/Documents/c/c++/O'elliy books/SFML_test/app.exe."

"the procedure entry point
_ZNKSt7__cxx1112basic_stringlcSt11char_traitslcESalcEE12find_last_ofEPKcjj could not be located in the dynamic link library C:/lib/SFML-2.5.1/bi/sfml-graphics-2.dll."

and repeat he last error for sfml-system-2.dll, sfml-window_2.dll.

What I have done so far:
Followed this video (among others)

Installed VSCode (working fine with other projects, not sure about third party libraries since this is the first one)

Installed minGW 8.1 64 bit (version I usually use) and minGW 32 bit 7.3.0 (compatible with SFML, downloaded from SFML 2.5.1 download page)

Added environmental variables for mingw/lib and SFML/bin

Made sure that minGW 32 is before 64 in env. var.

Made sure that the compiler I use with VSCode is 7.3.0 (g++ --version)
"g++.exe (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 7.3.0"

c_cpp_properties.json VSCode file added include path: "C:/lib/SFML-2.5.1/include"

Used the SFML tutorial example on: https://www.sfml-dev.org/tutorials/2.5/start-vc.php
(green circle on black screen)

compiled with:
g++ -I C:\lib\SFML-2.5.1\include -c test.cpp -o test.o -m32 
g++ -LC:/lib/SFML-2.5.1/lib ./test.o -o application.exe -lmingw32 -lsfml-graphics -lsfml-window -lsfml-system -lsfml-main -mwindows -m32

(works fine until now)

and finally:
double click on application.exe

And this is when the errors pop up.

Additional info:
I am using Windows 10 x64, VSCode, SFML for 32 bit.
VSCode is working fine for me, compiled dozens of projects without issue.

This is not the only time I tried using SFML, the previous time was about a year ago, but then I had the
#include <SFML/Graphics.hpp> //no such file or directory exists.

I am probably giving way too much details, but after 8 hours of my life spent on this, I want the solution as fast as possible.

Thank you in advance.

Pages: [1]