14 July 2017, 01:49 | #121 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Quote:
|
|
14 July 2017, 02:47 | #122 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
not sure. for now we have to wait for an update of the crosscompiler,
or someone who can tell us what we are doing wrong. i found a simple source code, which uses setitimer function. i can build the binary on cygwin with g++ v5.4 - while building the same with m68k-amigaos-g++ v6.3.1 - i get a big list of different errors. so i think something is wrong with the crosscompiler. @drHirudo: do you remember which compiler you were using? Last edited by emufan; 14 July 2017 at 02:57. |
14 July 2017, 03:03 | #123 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
|
It's not the cross-compiler's fault. It's some library. Probably ixemul does not implement the scheme.
|
14 July 2017, 03:03 | #124 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
How are you setting those timers?
I don't think you should be calling 'SetTimer()' you should be using SDL Timers if you are using SDL. https://wiki.libsdl.org/SDL_AddTimer Also about the missing SDL Joystick functionality...I'd advise that you to simply stub out the SDL Joystick calls in 'Joystick.cpp' and use my latest SDL_AGA.lib from AmiNet, after you get it up and running you can then worry about implementing the joystick handling. Last edited by NovaCoder; 14 July 2017 at 03:18. |
14 July 2017, 03:55 | #125 | ||
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
and i cannot find anything with "setitimer" in the link libs. i'm no expert but from the looks, something is missing. Quote:
the trouble is, i can build the SDL-AGA version, but only if i remove and "fix" the setitimer calls. so this might explain the sdl-aga error message about missing timer support |
||
14 July 2017, 05:18 | #126 | |
Amiga user
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 455
|
Quote:
|
|
14 July 2017, 06:30 | #127 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
just did a simple grep on those link libs and found no "setitimer". so if you managed to compile it with the same restrictions, your custom definitions could help alot |
|
15 July 2017, 04:36 | #128 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
What?! That's it?
|
24 July 2017, 22:48 | #129 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Is it officially dead? Do we cancel the entire project?
|
24 July 2017, 22:53 | #130 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
25 July 2017, 00:05 | #131 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
drHirudo what gives man??! - claps hands very fast - chop chop man! We are waiting for you!
|
25 July 2017, 01:05 | #132 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
25 July 2017, 01:50 | #133 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Vaca.... what? Will I hope he have a happy and restful vacation
|
25 July 2017, 07:42 | #134 | ||
Amiga user
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 455
|
Quote:
Quote:
|
||
25 July 2017, 19:44 | #135 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
Advice to all that?
-hands you a cup of cold fresh water with couple of fresh ices- |
04 August 2017, 18:55 | #136 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 675
|
I am just saying that it is ok about applewin being cancelled or not ported. I am deciding to get the real apple ii machine instead.
|
04 August 2017, 19:11 | #137 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
dont be disappointed. there is still some hope, if we can get the scr code of the os4 version.
maybe this will help to make a os3 port. |
11 August 2017, 03:08 | #138 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Hiya,
I had a quick look at the source linapple_src-2b.tar.bz2, I think this is a better version to use than the updated RetroPie source. If you could get it working then you can always update it with some of the newer stuff. The main stuff I changed was: Replace thread handling to use SDL: Code:
// for CRITICAL_SECTION handling // NOVA_CODER - #include <pthread.h> // NOVA_CODER - pthread_mutex_t g_CriticalSection = PTHREAD_MUTEX_INITIALIZER; SDL_mutex *g_CriticalSection = NULL; void CpuIrqReset() { _ASSERT(g_bCritSectionValid); if (g_bCritSectionValid) SDL_LockMutex(g_CriticalSection); g_bmIRQ = 0; if (g_bCritSectionValid) SDL_UnlockMutex(g_CriticalSection); } Code:
/* NOVA_CODER #ifndef _WIN32 //for Timers try to use POSIX compliant timers #include <signal.h> #include <sys/time.h> #endif*/ bool SysClk_InitTimer() {// first initialization of the timer /* memset(&sa_SysClk, 0, sizeof(sa_SysClk)); // clear sigaction struct sa_SysClk.sa_handler = &SysClk_TickTimer; sigaction(SIGALRM, &sa_SysClk, NULL); // set SIGALRM handler*/ //if(signal(SIGALRM, SysClk_TickTimer) == SIG_ERR) // return false; // NOVA_CODER SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param); printf("Timer has been initted!\n"); return true; } Hope that helps. Last edited by NovaCoder; 18 February 2019 at 10:11. |
11 August 2017, 12:00 | #139 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
thanks alot Nova
while building with SDL_AGA, i get these linker errors: Code:
../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0x10):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickInit' ../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0xcc):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickName' ../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0x3fc):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickClose' ../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0x546):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickOpen' ../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0x71e):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickQuit' ../SDL/lib/SDL_AGA_040.a(SDL_joystick.o)(.text+0xa0e):SDL_joystick.o: undefined reference to `_SDL_SYS_JoystickUpdate' collect2: ld returned 1 exit status Code:
m68k-amigaos-nm.exe SDL_AGA_040.a ... 000007de T _SDL_PrivateJoystickHat U _SDL_SYS_JoystickClose U _SDL_SYS_JoystickInit U _SDL_SYS_JoystickName U _SDL_SYS_JoystickOpen U _SDL_SYS_JoystickQuit U _SDL_SYS_JoystickUpdate ... Code:
extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void); extern DECLSPEC void SDLCALL SDL_SYS_JoystickUpdate(void); any idea? Last edited by emufan; 11 August 2017 at 12:07. |
11 August 2017, 12:08 | #140 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
I'd just use the older RTG version of the SDL to get it up and running first.
|
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 |
|
|