English Amiga Board


Go Back   English Amiga Board > Requests > request.Other

 
 
Thread Tools
Old 17 April 2014, 22:56   #1
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 280
Porting SDL2 to Amiga

There's a new rewritten version of SDL that has been released, SDL2.

If someone got it working on Amiga, then all the games which can be easily ported using it to other platforms (Windows, Linux, Android, iOS, ...) could be easily gotten to work on the Amiga.

Anyone willing to do the work?
copse is offline  
Old 29 November 2017, 22:32   #2
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Did anyone try to build it for m68k-amigaos?
it is possible to build it without 3D support, at least it was done for MorphOS.
there is no src code included, so I cannot check the config.log or other usefull things :/

I try to build 2.0.7 - but run into trouble when running the ./configure script:
Code:
CC=m68k-amigaos-gcc.exe ./configure --host=m68k-amigaos --disable-shared
....
checking for GCC -Wall option... yes
checking for necessary GCC -Wno-multichar option... no
configure: error:
*** Unsupported host:  Please add to configure.in
in configure.in I've added:
Code:
            *-*-amigaos*)       ARCH=linux ;;				
            *-*-linux*)         ARCH=linux ;;
            *-*-uclinux*)       ARCH=linux ;;
tested also:
            *-*-amigaos*)       ARCH=amigaos ;;				
            *-*-linux*)         ARCH=linux ;;
            *-*-uclinux*)       ARCH=linux ;;
and run 'autoconf' but still the error persists.
does anyone know how to add host/ARCH amigaos to the configure script?

#1) i found two more location in configure.in to add "amigaos"
Code:
checking for Altivec with GCC -faltivec option... no
checking for GCC -Wall option... yes
checking for necessary GCC -Wno-multichar option... no
checking for GCC -fvisibility=hidden option... no
checking for GCC -Wdeclaration-after-statement option... no
checking for dlopen... no
good news, 1st step taken, we have a Makefile:
Code:
SDL2 Configure Summary:
Building Static Libraries
Enabled modules : atomic audio video render events joystick haptic power
                               filesystem threadstimers file loadso cpuinfo assembly
Assembly Math   :
Audio drivers   : disk dummy
Video drivers   : dummy vulkan
Input drivers   :
Using libsamplerate : NO
Using libudev       : NO
Using dbus          : NO
Using ime           : YES
Using ibus          : NO
Using fcitx         : NO
#1) this wont be an easy thing. Makefile is in some parts a bit strange .
'make -k' let it build some objct files. but thats about it. too many errors (gcc3.4 and gcc6)
thats too much pain and frustration for 5+ functions I need to build another emulator

Last edited by emufan; 29 November 2017 at 23:37.
emufan is offline  
Old 30 November 2017, 14:00   #3
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 29
Posts: 483
Exclamation

Quote:
Originally Posted by emufan View Post
#1) this wont be an easy thing. Makefile is in some parts a bit strange .
'make -k' let it build some objct files. but thats about it. too many errors (gcc3.4 and gcc6)
thats too much pain and frustration for 5+ functions I need to build another emulator
Apps/Games built for SDL2 are most likely programmed with a modern computer in mind. It'll be sluggish and not really worth your time and effort, unless you put your heart and soul into optimizing it.

Porting SDL2 to AmigaOS 3.x would probably be easier if their SDL2 port was used as a base.

Honestly, it ain't that hard to convert an application from SDL2 to SDL1.2 if you put a little effort into it. And most of the open source games using SDL2 has most likely been updated from SDL1.2 to SDL2 at some point, so you can backtrack the changes and reimplement SDL1.2 fairly easily.

Which is what I did with MilkyTracker.
Marlon_ is offline  
Old 30 November 2017, 17:46   #4
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
it's just a plus/4 emulator. so nothing special. 20 out of 25 src files I can build.
remaining deal with keyboard/interface and initializing audio/video.

just found this one: SDL2 for AmigaOS 4 uses some code from sdl 1.2 for audio and joystick.
emufan is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
The X68000 games porting experiment AnimaInCorpore project.CARE 95 07 September 2018 09:23
Porting Qt Framework to Amiga OS enviroments Pyromania Coders. General 2 24 July 2013 06:42
porting vlc ? turrican3 request.Apps 4 25 June 2011 21:27
Help porting Mindscape's Legend Queller request.Other 6 30 October 2010 12:07
How come nobody considers porting Fellow to other platforms? MethodGit Amiga scene 26 09 August 2010 00:15

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06079 seconds with 13 queries