amigamiaAdmin Posted
4 years agoHello Arosians,
Does anyone know if SDL 2.0 is being ported to AROS ABIv0 or v1?
I'd like to start using it to develop a new(old) video game that I have been trying to create for a while now. I want to use the process to learn more about video game development, AROS, C++ development and at the same time do the work once to port the game to other platforms.
The idea here is to develop the game with the tools available in AROS such as lunapaint, milky tracker, etc. The second part of the idea is to develop the game for AROS only first and then port it to other platforms.
The seed of this video game came many years ago when I was a high school student and due to life events, never sat down play with it. All I have is an idea and a splash image hand drawn.
The name of the video game is "Tommy Bacheroz" but I have since changed the name to "Tommy Buckaroo" to make it more internationally readable. Bacheroz is an anglicized word from "Bacherozzo" which is slang for "Bug" in Italian.
@ deadwood
"I think our compiler supports C++11."
The default compiler on abi0 native (4.6.4) is not c++11 compatible (hint, hint). But it does accept -std=c++0x. And I'm not sure, but maybe it will accept -std=c++1l for some features.
Edited by cavemann on 12-08-2020 14:15,
4 years agoActually I'm planning to update GCC to 6.5.0 as part of ABIv0 refresh. Hopefully this will give enough C++ support.
amigamiaAdmin Posted
4 years agoIndeed very good news. Thanks for your support deadwood.
amigamiaAdmin Posted
3 years agoHi deadwood, how is the progress going with GCC 6.5?
amigamiaAdmin Posted
2 years agoHi All,
We now have GCC 6.3.0 native in AROS and I am giving this a shot to compile SDL 2.0. Received a "Please insert volume "empty"" but clicking on cancel, seemed to have continued until the error in the attached image.
Edited by amigamia on 15-06-2022 16:20,
2 years ago You do not have access to view attachments
Deadwood has released 6.5.0. It will probably be on the next version of Aros-One. I would upgrade because of some fixes. Also try spoofing linux and see what happens.
Thanks for the link. Imo that changes things. Instead of using configure, it might be better to use the Amiga makefile. The problem of course is that you would have to deal with the endian issues. Not an easy task. Good luck!!!
amigamiaAdmin Posted
2 years agoI think I just managed to compile SDL 2.0 library for AROS after a few changes and switches between configure and the make file. This is compiled using the Makefile.minimal settings. Still need to test it though.
Edited by amigamia on 18-07-2022 15:14,
2 years ago You do not have access to view attachments
amigamiaAdmin Posted
2 years agoHmmm, I have the libSDL2.a that compiled earlier and placed it in /Development/lib. I also created a new folder called SDL2 in /Development/include/SDL2 and copied the .h files from the source archive
I created a Makefile according to
https://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/cli/index.php
I know it's finding the correct library (libSDL2.a) because if I rename it I get a different error.
However, it can seem to find the SDL_Quit. SDL_Init, and a bunch of other SDL_****xx functions. (See screenshot)
The source file 01_hello_SDL.cpp has been modified to include the SDL2/SDL.h
Any idea?
Edited by amigamia on 20-07-2022 12:30,
2 years ago You do not have access to view attachments
amigamiaAdmin Posted
2 years agoWell I tried different things. What worked first was to run a slightly modified Makefile.minimal to match the correct Includes and gcc
This generated a libSDL.a file but I get the same issue when compiling against this library.
I also was able to run the configure by tricking it into thinking it's a linux box with the following command:
./configure --build=i386 --host=i386-unknwon-linux --disable-video-opengl --disable-video-x11 --disable-video-rpi --disable-pulseaudio --disable-esd
This goes all the way to the end. In the process it asks for an empty volume and an opt as well but clicking on cancel makes it continue. See the attached for the end result of that.
This generates the default Makefile and if I issue the following command with no switches, it reads the Makefile that was just generated
However, it complains about the platform
You do not have access to view attachments
amigamiaAdmin Posted
2 years agoFound online that I can use
to bypass the issue with the platform but goes into all sorts of other errors (See attached). So, I decided to give the Makefile.minimal a shot and that one worked after some modifications. Generates the LibSDL.a
You do not have access to view attachments
amigamiaAdmin Posted
2 years agoI issued the
and I cannot find just SDL_Init for example. I can find SDL_Init_REAL which is strange but maybe that'll work??
You do not have access to view attachments