English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 11 May 2017, 03:31   #1
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Exclamation SDL-1.2.15 for RTG testing

UPDATE:
I've updated this original post to reflect that the SDL-1.2.15 sources are now available on Github for anyone looking for it in the future.

Sources are available from here:
https://github.com/AmigaPorts/libSDL12

Last edited by Marlon_; 10 December 2017 at 15:42.
Marlon_ is offline  
Old 08 December 2017, 17:29   #2
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
thanks, just missed that. and yes please, share the source code

#1) some issues when linking:
Code:
(SDL_systimer.go):SDL_systimer.go: undefined reference to `_kprintf'
(SDL_systimer.go):SDL_systimer.go: undefined reference to `_kprintf'
(SDL_string.go):SDL_string.go: undefined reference to `___floatunsidf'
(SDL_string.go):SDL_string.go: undefined reference to `___floatunsidf'
(SDL_string.go):SDL_string.go: undefined reference to `___floatunsidf'
(SDL_audio.go):SDL_audio.go: undefined reference to `___floatunsidf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: undefined reference to `_kprintf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: undefined reference to `_kprintf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: undefined reference to `_kprintf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: undefined reference to `_kprintf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: undefined reference to `_kprintf'
(SDL_cgxvideo.go):SDL_cgxvideo.go: more undefined references to `_kprintf' follow
(SDL_dummyaudio.go):SDL_dummyaudio.go: undefined reference to `___floatunsisf'
(SDL_cgxmodes.go):SDL_cgxmodes.go: undefined reference to `_kprintf'
(SDL_cgximage.go):SDL_cgximage.go: undefined reference to `_kprintf'
(SDL_cgximage.go):SDL_cgximage.go: undefined reference to `_kprintf'
(SDL_cgximage.go):SDL_cgximage.go: undefined reference to `_kprintf'
(SDL_cgximage.go):SDL_cgximage.go: undefined reference to `_kprintf'
(SDL_cgximage.go):SDL_cgximage.go: more undefined references to `_kprintf' follow
kprintf may come from building with assert (non -DNDEBUG), but the float thing i have no clue.

Last edited by emufan; 08 December 2017 at 17:39.
emufan is offline  
Old 08 December 2017, 17:31   #3
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by emufan View Post
yes please, share the source code


Lol, if I can find it in my mess.
Marlon_ is offline  
Old 08 December 2017, 17:43   #4
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by Marlon_ View Post
Lol, if I can find it in my mess.
I've also a hard time to not get lost in my source folders

this does help for example: libSDL_Marlon.1.2.15.a --> -lSDL_Marlon.1.2.15
emufan is offline  
Old 08 December 2017, 17:47   #5
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by emufan View Post
I've also a hard time to not get lost in my source folders



this does help for example: libSDL_Marlon.1.2.15.a --> -lSDL_Marlon.1.2.15


Yeah, i have like 15 different SDL folders. :P trying to sort it properly now
Marlon_ is offline  
Old 08 December 2017, 17:51   #6
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
ok, cool. if you find it, just have a look on those CFLAGS LDFLAGS before you
clear the source code for sharing. i'm curious what may cause the two issues above
emufan is offline  
Old 08 December 2017, 20:20   #7
arti
Registered User
 
Join Date: Jul 2008
Location: Poland
Posts: 662
For _kprintf just link -ldebug.

For the other -lm.
I ussualy get it if compiled with -msoft-float.
arti is offline  
Old 08 December 2017, 20:39   #8
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by arti View Post
For _kprintf just link -ldebug.

For the other -lm.
I ussualy get it if compiled with -msoft-float.
thanks, -ldebug fixed the _kprint stuff. still I get the float stuff:
Code:
:SDL_string.go: undefined reference to `___floatunsidf'
):SDL_string.go: undefined reference to `___floatunsidf'
4):SDL_string.go: undefined reference to `___floatunsidf'
:SDL_audio.go: undefined reference to `___floatunsidf'
x7e):SDL_dummyaudio.go: undefined reference to `___floatunsisf'
so this needs a special math lib?
using -g -O2 -m68020-40 with gcc 3.4.0 - same with -g -m68020 -m68881

Last edited by emufan; 08 December 2017 at 20:49.
emufan is offline  
Old 08 December 2017, 20:53   #9
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by emufan View Post
thanks, -ldebug fixed the _kprint stuff. still I get the float stuff:
Code:
:SDL_string.go: undefined reference to `___floatunsidf'
):SDL_string.go: undefined reference to `___floatunsidf'
4):SDL_string.go: undefined reference to `___floatunsidf'
:SDL_audio.go: undefined reference to `___floatunsidf'
x7e):SDL_dummyaudio.go: undefined reference to `___floatunsisf'
so this needs a special math lib?
using -g -O2 -m68020-40 with gcc 3.4.0 - same with -g -m68020 -m68881
have you tried -lm020 or -lm-020 ?
Marlon_ is offline  
Old 08 December 2017, 21:12   #10
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by Marlon_ View Post
have you tried -lm020 or -lm-020 ?
both unknown, *hmm*

#1) arti gave me his sdl 1.2.15 - and it does work, excellent stuff.

@arti: please share your sdl version, it's a big improvement over the old one, we are using atm

Last edited by emufan; 08 December 2017 at 21:51.
emufan is offline  
Old 09 December 2017, 02:10   #11
grelbfarlk
Registered User
 
Join Date: Dec 2015
Location: USA
Posts: 2,902
I'd probably like the source to 1.2.15 if it's not too much trouble.
grelbfarlk is offline  
Old 09 December 2017, 02:21   #12
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
arti: please release it to the aminet.net to the public. This will open a gate for more potential sweet ports! We need more ports!! MORE!!!!
xboxown is offline  
Old 09 December 2017, 04:22   #13
grelbfarlk
Registered User
 
Join Date: Dec 2015
Location: USA
Posts: 2,902
Quote:
Originally Posted by xboxown View Post
arti: please release it to the aminet.net to the public. This will open a gate for more potential sweet ports! We need more ports!! MORE!!!!
What happened to that RPG you were going to make that I'd do the graphics for, that had the sausages (of various varieties) as the only health pickups?
grelbfarlk is offline  
Old 09 December 2017, 08:50   #14
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by grelbfarlk View Post
I'd probably like the source to 1.2.15 if it's not too much trouble.
no message from arti, so not sure. i'd like to get an ok from him first.
emufan is offline  
Old 09 December 2017, 14:28   #15
buggs
Registered User
 
Join Date: May 2016
Location: Rostock/Germany
Posts: 132
The number of poeple with interest in this particular SDL branch seems to be growing.

So in response, here is the current state

https://github.com/HenrykRichter/libSDL12_Amiga68k

If anyone would like to lend a hand cleaning up the code that went through many hands, I'd happily accept.
buggs is offline  
Old 09 December 2017, 15:49   #16
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by buggs View Post
The number of poeple with interest in this particular SDL branch seems to be growing.

So in response, here is the current state

https://github.com/HenrykRichter/libSDL12_Amiga68k

If anyone would like to lend a hand cleaning up the code that went through many hands, I'd happily accept.
Yay! I suppose this is the AMMX-SDL version?

EDIT: Yes. Yes it is!

Last edited by Marlon_; 09 December 2017 at 15:57.
Marlon_ is offline  
Old 09 December 2017, 18:17   #17
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by buggs View Post
So in response, here is the current state
thanks to all involved
emufan is offline  
Old 10 December 2017, 15:42   #18
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
UPDATE:
I've updated this original post to reflect that the SDL-1.2.15 sources are now available on Github for anyone looking for it in the future.

Sources are available from here:
https://github.com/AmigaPorts/libSDL12
Marlon_ is offline  
Old 20 December 2017, 14:43   #19
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
I try to build the AMMX version --> Makefile.bax using gcc6:
Code:
video/amigaos/SDL_cgxvideo.c:34:23: error: expected identifier or
‘(’ before numeric constant
 #define Apollo_AMMXon 0
                       ^
./video/apollo/apolloammxenable.h:24:22: note: in expansion of macro ‘Apollo_AMMXon’
 extern unsigned char Apollo_AMMXon;
                      ^~~~~~~~~~~~~


video/amigaos/SDL_cgxvideo.c:
34: #define Apollo_AMMXon 0
35:
36: #include "SDL_config.h"
#1) i did comment out this one:
Code:
34: #define Apollo_AMMXon 0
to
34: // #define Apollo_AMMXon 0
does build, but while linking with gcc3 I get:
Code:
SDL_surface.go: undefined reference to `___memset64'
SDL_surface.go: undefined reference to `___memset64'
SDL_surface.go: undefined reference to `___memset64'
SDL_video.go: undefined reference to `___memset64'
SDL_pixels.go: undefined reference to `___memset64'
SDL_pixels.go: more undefined references to `___memset64' follow
where is this memset64 function?

#4) hmm, well, maybe another "-OX" issue with gcc6?
I've removed "-O3" gcc option from makefile.bax and it does build libSDl which
links just fine with the gcc3 made objects

Last edited by emufan; 20 December 2017 at 15:00.
emufan is offline  
Old 20 December 2017, 16:00   #20
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
This version identifies itself as 1.2.14 btw. See sdl_version.h
Hedeon 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
SDL problem. tolkien Coders. C/C++ 10 24 March 2015 03:29
use SDL 1.2.13 with AmyDevCpp TheDarkCoder Coders. General 3 18 August 2009 20:55
req details for sdl turrican3 request.Other 0 20 April 2008 22:06
WinUAE w/SDL mangamuscle request.UAE Wishlist 8 31 January 2007 11:41
What do you know about Amiga SDL? Tolismlf Amiga scene 6 15 November 2004 18:54

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 17:28.

Top

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