English Amiga Board Amiga Lore


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

 
 
Thread Tools
Old 04 October 2017, 02:29   #81
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
libSDL_Image_wos.a and libJPEG(_wos).a working. Works with gif and jpeg that I've tried so far, now just to get png.

Had to link in order of -lSDL_Image_wos -ljpeg -lSDL_wos (just so I don't forget this tomorrow).

ppc-amigaos-g++ -warpup -O2 sdltest3.cpp -o SDLrun3-1.elf -lSDL_Image_wos -ljpeg -lSDL_wos

Last edited by grelbfarlk; 04 October 2017 at 02:38.
grelbfarlk is offline  
AdSense AdSense  
Old 04 October 2017, 02:59   #82
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 354
Quote:
Originally Posted by grelbfarlk View Post
libSDL_Image_wos.a and libJPEG(_wos).a working. Works with gif and jpeg that I've tried so far, now just to get png.

Had to link in order of -lSDL_Image_wos -ljpeg -lSDL_wos (just so I don't forget this tomorrow).

ppc-amigaos-g++ -warpup -O2 sdltest3.cpp -o SDLrun3-1.elf -lSDL_Image_wos -ljpeg -lSDL_wos
And you had to adjust your makefile
Hedeon is offline  
Old 04 October 2017, 04:45   #83
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
libPNG(_wos).a done too and works.
Again, not going to remember this:
ppc-amigaos-g++ -warpup -O2 sdltest3.cpp -o SDLrun3-1.elf -lSDL_Image_wos -lpng -lz -ljpeg -lSDL_wos

Last edited by grelbfarlk; 04 October 2017 at 22:55.
grelbfarlk is offline  
Old 04 October 2017, 21:11   #84
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 354
Quote:
Originally Posted by emufan View Post
ah, ok. can you confirm, it does produce amiga hunk type object files?

Amiga hunk type: sc 3D.c
Code:
00000000  000003e7 00000001  33442e63 000003e8  |........3D.c....|
00000010  00000001 74657874  000003e9 000001f6  |....text........|
gcc object type: gcc -O2 -c 3D.c
Code:
00000000  00020107 00000940  00000000 00000000  |.......@........|
00000010  00000090 00000000  00000040 00000000  |...........@....|
same src code, 1st build with sas/c, 2nd with gcc.
As far as I can see: When set to GCC mode and using Amiga Classic OS as target OS with the PPC link libraries and doing a simple Hello World in C, the object file is in Amiga hunk format. The resulting executable is a WarpOS executable in this case.

HOWEVER:

With PPC it is in Extended hunk format (I see hunk 0x4E9 in the object file, next to 0x3E9, 0x3E8 etc.).
Hedeon is offline  
Old 04 October 2017, 21:43   #85
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,776
that sounds promising. I cannot decipher them, but those 0x3E9, 0x3E8, 0x3E7 ...
are all typical amiga hunk types.
I could imagine, those 0x4E9 were introduced with warpos, but still sort of standard amiga hunk type.

but how to "set to GCC mode". is it a ppc-amigaos-gcc option?
and target "Amiga Classic OS" ? I thought warpup is Classic Amiga, with a ppc extension/co-processor.

Last edited by emufan; 04 October 2017 at 22:16.
emufan is offline  
Old 04 October 2017, 22:16   #86
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 354
Quote:
Originally Posted by emufan View Post
that sounds promising. I cannot deciffer them, but those 0x3E9, 0x3E8, 0x3E7 ...
are all typical amiga hunk types.
I could imagine, those 0x4E9 were introduced with warpos, but still sort of standard amiga hunk type.

but how to "set to GCC mode". is it a ppc-amigaos-gcc option?
and target "Amiga Classic OS" ? I thought warpup is Classic Amiga, with a ppc extension/co-processor.
StormC4 comes with an IDE with a lot of menus with options. You can choose between GCC and StormC3 mode. Amiga Classic OS/PPC Native/something i forgot.

So yes, warpup is in this case Classic Amiga with a ppc extension.
Hedeon is offline  
Old 04 October 2017, 22:23   #87
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 3,776
Quote:
Originally Posted by Hedeon View Post
StormC4 comes with an IDE...
ah, allright, I forgot the IDE. makes sense now
emufan is offline  
Old 05 October 2017, 23:39   #88
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
Any recommended version of SDL_Mixer? 1.2.5? Or any version of libOGG and libVorbis?

1.2.4 compiled and Playwav works, actually worked with one of the Wavs I made out of Amidi from HOMM2 midis 10+MB at 16-bit audio.

Trying to figure out why Playmus doesn't work. Pointed it at my Timidity patches which I can see it reading all the .cfgs but then just looks for
MIX_EFFECTSMAXSPEED
MUSIC_CMD


Mods play I guess midi isn't supported by this test program. No idea what's going on.

Last edited by grelbfarlk; 06 October 2017 at 03:45.
grelbfarlk is offline  
Old 07 October 2017, 02:23   #89
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
Will get back to SDL_mixer midi stuff later. Hedeon got Truetype working so SDL_ttf works.

Anyone have an SDL game suggestion that should work with a simple compile -lSDL?

Last edited by grelbfarlk; 07 October 2017 at 04:12.
grelbfarlk is offline  
Old 08 October 2017, 15:18   #90
Hedeon
Sonnet Hacker

 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 354
Quote:
Originally Posted by grelbfarlk View Post
Will get back to SDL_mixer midi stuff later. Hedeon got Truetype working so SDL_ttf works.
And midi too.
Hedeon is offline  
Old 10 October 2017, 00:29   #91
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
Xrick works.
grelbfarlk is offline  
Old 12 October 2017, 04:20   #92
grelbfarlk
Registered User

 
Join Date: Dec 2015
Location: USA
Posts: 686
jetpac "works".
grelbfarlk is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sdl-1.2.15 Marlon_ Coders. C/C++ 0 11 May 2017 03:31
UAE for WarpOS 0.8.12 grelbfarlk request.Apps 0 23 November 2016 01:14
WarpOS Programming Help? esc support.Other 8 21 October 2015 10:37
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 00:26.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.14952 seconds with 14 queries