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

Pages: [1]
1
General discussions / Difficuly of porting SFML to SDL
« on: October 05, 2022, 08:18:25 pm »
Hello,
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!

2
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

3
General / Re: Entry Point Not Found - unable to run SFML c++ exe file.
« on: August 23, 2022, 06:05:51 pm »
UPDATE: switched to x64 and now it works. Don't know why the change but it works. Neat. Still no idea why it doesn't work on x32

4
General / Re: Entry Point Not Found - unable to run SFML c++ exe file.
« on: August 22, 2022, 10:36:27 am »
Not sure how much it helps, but I took the .exe file to another computer (that doesn't have mingw, sfml, or any coding related program)

It still had errors, but they were different this time.
One was:
Unable to find: libgcc_s reinstalling the program may help.
The other:
Something about stdlib

5
General / Re: Entry Point Not Found - unable to run SFML c++ exe file.
« on: August 22, 2022, 10:30:24 am »
You probably copied at one point the libgcc and libstdc++ DLL from a different MinGW installation next to your exe.
Make sure you use the ones provided by the downloaded MinGW 7.3.0, copy out of the bin/ directory.
I just re downloaded mingw32 & SFML for mingw (DF2) from the SFML-2.5.1 download page, extracted them and replaced the files. Followed the process in the video and there are still errors.

Additional info:
I followed this video:
https://www.youtube.com/watch?v=rZE700aaT5I&lc=UgzLU_bnKzbQ00jtyiR4AaABAg&ab_channel=BoostMyTool

And found out something more; Building a project dinamically still results in same errors, but doing it statically, results in only this error;

"the procedure entry point
_ZNKSt7__cxx1112basic_stringlcSt11char_traitslcESalcEE12find_last_ofEPKcjj could not be located in the dynamic link library "C:\...\sfml-app.exe"

which is strange. Why would it be dynamic link library if the app is built statically?

6
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)
(https://www.youtube.com/watch?v=Ptw1KKI9_Sg&t=299s&ab_channel=AhmedSamir)

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]
anything