11 July 2017, 19:19 | #41 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
|
Quote:
Eeeeeeeee! You are almost done!!! |
|
11 July 2017, 19:21 | #42 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
11 July 2017, 19:28 | #43 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
|
Let us just get it compiled To me right now that is the focus...everything else is sweet road after that!!
|
11 July 2017, 19:29 | #44 | |
Amiga user
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 456
|
Quote:
[ Show youtube player ] Additionally I used ApplePC (Apple II emulator for DOS) through DOSBox and PCTask (PCx) before: [ Show youtube player ] and Apple 2000e is also quite good Apple II emulator. Yet, AppleWin is still the best, especially if you want to play Prince of Persia for Apple II. On most of the other emulators Prince of Persia doesn't work properly. I will dig through my old projects to see if I can find my AppleWin porting efforts, to share them, but as I said it was for AmigaOS 4. I don't know if it will be of much use for AmigaOS 3 porting. |
|
11 July 2017, 19:30 | #45 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
|
Quote:
|
|
11 July 2017, 21:38 | #46 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
the example above should look like this: Code:
1 void CpuNmiReset() 2 { 3 _ASSERT(g_bCritSectionValid); 4// if (g_bCritSectionValid) pthread_mutex_lock(&g_CriticalSection); 5 g_bmNMI = 0; 6 g_bNmiFlank = FALSE; 7// if (g_bCritSectionValid) pthread_mutex_unlock(&g_CriticalSection); 8 } |
|
11 July 2017, 21:42 | #47 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
11 July 2017, 21:44 | #48 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
11 July 2017, 21:50 | #49 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
There's also a lot of code that has been lazily ported by doing an "api"-wrapper to translate Microsoft C++ specific functions into GNU C++ functions which is confusing the toolchain. Like SetFilePointer that's used in Harddisk.cpp and Disk*.cpp files is Microsoft specific. The wrapper is introduced in wwrapper.cpp: Code:
DWORD SetFilePointer(HANDLE hFile, LONG lDistanceToMove, PLONG lpDistanceToMoveHigh, DWORD dwMoveMethod) { /* ummm,fseek in Russian */ fseek((FILE*) hFile, lDistanceToMove, dwMoveMethod); return ftell((FILE*) hFile); } Code:
obj/m68k-amigaos/Release/Harddisk.o(.text+0xb48):obj/m68k-amigaos/Release/Harddisk.o: undefined reference to `SetFilePointer(void*, long, long, unsigned)' |
|
11 July 2017, 21:52 | #51 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
The SDL-Amiga one is for RTG, SDL_AGA is AGA only. It's up to you which one you want to use, but you need to know about the limits of AGA if you go that route.
|
11 July 2017, 22:10 | #52 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
|
|
11 July 2017, 22:10 | #53 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
11 July 2017, 22:32 | #54 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
11 July 2017, 23:18 | #55 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
how did you fix - for example - this one:
Code:
obj/m68k-amigaos/Release/Frame.o(.text+0x68):obj/m68k-amigaos/Release/Frame.o: undefined reference to `DrawStatusArea(short)' #1) hmm, i've found something, set type to BOOL, if the function is used, in Frame.cpp: Code:
// DRAW THE STATUS AREA BOOL DrawStatusArea(DRAW_BACKGROUND | DRAW_LEDS); vs: // DRAW THE STATUS AREA DrawStatusArea(DRAW_BACKGROUND | DRAW_LEDS); Last edited by emufan; 11 July 2017 at 23:35. |
11 July 2017, 23:40 | #56 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
12 July 2017, 00:16 | #57 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
hmm, those "undefined reference" errors are really weird.
in Timer.cpp: set type int for setitimer: Code:
int setitimer(ITIMER_REAL, &mytimeset, NULL); i tried a indirect declaration (int)setitimer , but this didnt work out well :/ |
12 July 2017, 00:21 | #58 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Code:
/opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/libstdc++.a(ctype_configure_char.o)(.text+0x7a): In function `std::ctype<char>::ctype(int*, char const*, bool, unsigned long)': /home/marlon/amigaos-cross-toolchain/.build-m68k/build/gcc-6/m68k-amigaos/libstdc++-v3/src/c++11/ctype_configure_char.cc:49: undefined reference to `vtable for std::ctype<char>' /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/libstdc++.a(ctype_configure_char.o)(.text+0x18a): In function `std::ctype<char>::ctype(char const*, bool, unsigned long)': /home/marlon/amigaos-cross-toolchain/.build-m68k/build/gcc-6/m68k-amigaos/libstdc++-v3/src/c++11/ctype_configure_char.cc:60: undefined reference to `vtable for std::ctype<char>' |
|
12 July 2017, 00:29 | #59 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i still dont get these errors - but how did you fix all these "SetFilePointer":
Code:
obj/m68k-amigaos/Release/Riff.o(.text+0x82):obj/m68k-amigaos/Release/Riff.o: undefined reference to `SetFilePointer(void*, long, long, unsigned)' |
12 July 2017, 00:32 | #60 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Code:
DWORD SetFilePointer(HANDLE hFile, LONG lDistanceToMove, PLONG lpDistanceToMoveHigh, DWORD dwMoveMethod) { /* ummm,fseek in Russian */ fseek((FILE*) hFile, lDistanceToMove, dwMoveMethod); return ftell((FILE*) hFile); } EDIT: It could be that it just tries to link in the wwrapper.o file after it tries to link in Riff.o, which causes the linker not to understand that the function is internal. One could test this theory by editing the makefile (created by premake) in the projects folder. |
|
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 |
|
|