12 July 2017, 21:45 | #101 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
|
|
12 July 2017, 22:50 | #102 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
the SDL-AGA version? i did already, but it just puts out an error message:
Quote:
and "SDL_SYS_JOYSTICK" (not included with current SDL-AGA aminet release). so i was about to extract the "SDL_SYS_JOYSTICK" code section of an older link library and implant it into the latest aminet release. but no success as of yet. with an AppleWIN.68k_SDL-AGA build we could see, if it crashs the same way, the SDL-RTG build does. |
|
12 July 2017, 23:31 | #103 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
I am terrified!!!
|
12 July 2017, 23:54 | #104 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
same here
but i found a way to extract the module in question from the link library: Code:
m68k-amigaos-ar.exe x libSDL_SDL_SYS_JOYSTICK.a ... SDL_sysjoystick.o ... #2) boah, cool. this does really work. Code:
$ make -j 3 ==== Building applewin (release_m68k-amigaos) ==== Linking applewin #3) zoned: linapple68k-testbuilds.lha includes SDL-AGA version - not yet tested - report back Last edited by emufan; 13 July 2017 at 00:09. |
13 July 2017, 00:00 | #105 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
THANK YOU! |
|
13 July 2017, 00:08 | #106 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Unless of course, you took the joystick part from the SDL-AGA without timer |
|
13 July 2017, 00:10 | #107 | ||
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
np, just test yourself first
Quote:
Quote:
which is using latest SDL-AGA from aminet (timer feature). no clue if it will work, but at least we can now build a binary #1) and we have learned a lot Last edited by emufan; 13 July 2017 at 00:15. |
||
13 July 2017, 01:00 | #108 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
|
|
13 July 2017, 01:24 | #109 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
yes, in the zone already
maybe it will just crash, i dont know. |
13 July 2017, 01:51 | #110 | |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Quote:
I'm not sure how good my last SDL port is (the one on AmiNet), I remember that I was working on a better implementation which I had started from scratch but I didn't get to finish it. |
|
13 July 2017, 01:58 | #111 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
Please help us NovaCoder!!! Please help us get this working!! : US! |
|
13 July 2017, 02:30 | #112 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i did a test now on my own, and it's still about the "Timer support" - see image attached.
since the SDL-Amiga (rtg version) does not have the timer issue, it must be something else. maybe it's the rtg sdl version, but could be something completely different within the linapple/applewin code. #1) i cannot find the error message in the source or in the sdl dev files. snoopdos does not give any hint, what does produce the error message. #2) it is the SDL-AGA lib itself, you can read the error message in the object file. other timer related things you can find - so maybe the "timer trap" was not disabled, when Novacoder added the timer support?! Last edited by emufan; 13 July 2017 at 02:45. |
13 July 2017, 18:15 | #113 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i'm looking for things we have disabled/removed.
one thing i need to get fixed in Timer.cpp - setitimer is defined in <sys/time.h> Code:
$ make ==== Building applewin (release_m68k-amigaos) ==== Timer.cpp Linking applewin obj/m68k-amigaos/Release/Timer.o(.text+0x1f0):obj/m68k-amigaos/Release/Timer.o: undefined reference to `setitimer' obj/m68k-amigaos/Release/Timer.o(.text+0x282):obj/m68k-amigaos/Release/Timer.o: undefined reference to `setitimer' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:179: ../bin/applewin.68k] Error 1 make: *** [Makefile:17: applewin] Error 2 Code:
if(setitimer(ITIMER_REAL, &mytimeset, NULL) != 0) { fprintf(stderr, "Error creating timer (setitimer failed)\n"); _ASSERT(0); return; } ... setitimer(ITIMER_REAL, &mytimeset, NULL); i can eliminate one "undefined reference to `setitimer'" - even while the linker issues a warning. Makefile: Code:
LDFLAGS += -s -D__AMIGA__ -fno-rtti -noixemul -fno-exceptions -fpermissive -fbbb=sapcmfbi \ -m68020 -msoft-float -I/opt/m68k-amigaos/include/SDL -I/opt/m68k-amigaos/include \ -L/opt/m68k-amigaos/lib -L/opt/m68k-amigaos/m68k-amigaos/lib -fomit-frame-pointer \ -Xlinker --allow-multiple-definition -L/opt/m68k-amigaos/lib \ -L/opt/m68k-amigaos/m68k-amigaos/lib -L/opt/m68k-amigaos/m68k-amigaos/libnix/lib/libnix \ -L/opt/m68k-amigaos/m68k-amigaos/clib2/lib LIBS += -lSDL -ljpeg -lz -ldebug -lSDL_image LINKCMD = $(CXX) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) what needs to be done to fix this error? Last edited by emufan; 13 July 2017 at 18:23. |
13 July 2017, 18:18 | #114 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
is setitimer actually defined in any lib?
Last edited by alkis; 13 July 2017 at 18:18. Reason: typo |
13 July 2017, 18:27 | #115 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
13 July 2017, 18:28 | #116 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
Hmm, looks like libc function. try adding -lc at LIBS
|
13 July 2017, 18:44 | #117 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
|
13 July 2017, 19:14 | #118 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i did a simple grep on all *.a within /opt/m68k-amigaos - (GCC) 6.3.1b 20170707
not a single hit - for example multiple hits for memcpy Quote:
done , same missing setitimer we may have a compiler which lacks some features. so while we look into fixing the source code of the emulator, we may have a "non working" compiler - so trying to fix the source code is all in vain, until we can ensure the compiler has all features implemented :/ Last edited by emufan; 13 July 2017 at 19:21. |
|
13 July 2017, 19:18 | #119 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
How do you go about doing that??! |
|
13 July 2017, 19:20 | #120 |
Amiga user
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 455
|
Okay, I found my AppleWin porting effort on my Amiga X1000. It's running okay (see screenshots), but seems the ROM is not converted properly (endian issue I guess, so the emulator can't boot from the ROM). Problem is I don't remember how I compiled the binary at all and I am not sure if the porting script is not somewhere on my microAmigaOne, which wasn't started since years). If I find something more regarding my porting efforts, I will post here. I know not of much help, except showing that it can be done. But at least you shall try examining the AmigaOS 4 binary.
Edit: Removed attachment of LinApple for AmigaOS 4. Last edited by drHirudo; 25 July 2017 at 08:22. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Porting SDL2 to Amiga | copse | request.Other | 3 | 30 November 2017 17:46 |
Porting an Amiga game to PC | CYBER_SLUNK | Coders. General | 4 | 31 January 2017 19:14 |
Porting Photoshop to Amiga | KONEY | Coders. General | 25 | 29 December 2016 23:49 |
Porting PhotoChrome ST/e to Amiga. | pandy71 | request.Other | 0 | 09 February 2015 15:12 |
Porting Qt Framework to Amiga OS enviroments | Pyromania | Coders. General | 2 | 24 July 2013 06:42 |
|
|