14 August 2017, 23:50 | #161 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
the trouble for now are those fullpath/currentdir things, this differs alot from unix/linux.
this gives me alot of headache :/ while building without noixemul ( found default options in AmiDevCPP) I get one undefined linker error: Code:
objects/CPU.o(.text+0x25156):objects/CPU.o: undefined reference to `___eprintf' objects/CPU.o(.text+0x253c2):objects/CPU.o: undefined reference to `___eprintf' objects/CPU.o(.text+0x25422):objects/CPU.o: undefined reference to `___eprintf' objects/CPU.o(.text+0x25496):objects/CPU.o: undefined reference to `___eprintf' objects/CPU.o(.text+0x25508):objects/CPU.o: undefined reference to `___eprintf' $ m68k-amigaos-nm.exe ../objects/CPU.o | grep print U ___eprintf any idea where it does come from? #1) sort of compiler issue MingW Last edited by emufan; 15 August 2017 at 00:04. |
15 August 2017, 00:30 | #162 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 678
|
So what will be your next step?
|
15 August 2017, 01:03 | #163 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 722
|
|
15 August 2017, 01:22 | #164 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
waiting for alkis
Quote:
Code:
$ grep eprint usr/local/amiga/m68k-amigaos/include/assert.h extern void __eprintf (const char *, const char *, int, const char *); extern void __eprintf (const char *, const char *, int, const char *); (__eprintf ("%s:%u: failed assertion `%s'\n", \ extern void __eprintf (); /* Defined in libgcc.a */ (__eprintf ("%s:%u: failed assertion `%s'\n", #1) added those in cpu.cpp: extern void __eprintf (const char *, const char *, int, const char *); extern void __eprintf (); /* Defined in libgcc.a */ added -lgcc to linker option, all does not have an effect :/ Last edited by emufan; 15 August 2017 at 01:39. |
|
15 August 2017, 01:52 | #165 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 722
|
have downloaded the file and added eprintf.c to the project?
or just add this to any file (just once) Code:
void __eprintf (format, file, line, expression) const char *format; const char *file; unsigned int line; const char *expression; { (void) fiprintf (stderr, format, file, line, expression); abort (); /*NOTREACHED*/ } |
15 August 2017, 02:03 | #166 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i added the code in an existing src code file cpu.cpp, but __eprintf
is already defined in assert.h - got duplicate definition when compiling. so since nothing worked, i just "//" all _ASSERT && assert lines and now it does build |
15 August 2017, 02:09 | #167 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 678
|
Building is one thing but does it run, can you select disk image, can it boot games, is it functional?
|
15 August 2017, 02:28 | #168 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
just testing/checking things. and not using "-noixemul" does have a positive effect, directory listing now does work without any fix even choosing a dsk image does work now too. get flooded with debug infos , ahve to look at it. i guess the config loading issue could be fixed now too. #1) indeed, enabled LoadConfig - does work now, does output massive debug infos, but no more crash Last edited by emufan; 15 August 2017 at 02:36. |
|
15 August 2017, 02:30 | #169 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 678
|
Wait...wait..wait...wait (very fast) are you saying we a have a full functioning emulator right now??!!!
A....are you saying I can go to the zone now and play with it no problem!!!??? I AM SOOO HAPPPY!!! |
15 August 2017, 02:31 | #170 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
15 August 2017, 02:35 | #171 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,416
|
Compile with 'NDEBUG' as a preprocessor definition to ditch the ASSERTS
|
15 August 2017, 02:36 | #172 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,416
|
Sounds like you are getting somewhere though, well done
|
15 August 2017, 02:40 | #173 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
@xboxown: just a littlebit *hopefully*
Quote:
I just saw it does now read and write from/to the config file. |
|
15 August 2017, 02:51 | #174 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,416
|
|
15 August 2017, 03:10 | #175 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
Quote:
one little problem, when starting the emulation. i had a build where it painted a black screen only, now i get those random chars, at the moment i cannot remember what i did to make it black. zoned: AmiApple-WIP.lha images and config and some dsk included. it does need ixemul.library v48 or newer. if you have a rtg workbench, it will start in a window, otherwise it will open a new rtg screen. #1) if you run with -b option (benchmark) it fails after a while with an error when doing cpu benchmark, maybe this is something to investigate. yes, this was a good idea, why did we waste our time doing it the noixemul way ... :/ Last edited by emufan; 15 August 2017 at 04:06. |
|
15 August 2017, 04:28 | #176 | |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 678
|
Quote:
However, even if I press F2 or load a game it doesn't start it just leaves you with # and @ filling the screen but nothing else. Am I missing something or it is not fully functional yet? |
|
15 August 2017, 04:50 | #177 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Didn't you read the post you quoted? |
|
15 August 2017, 04:57 | #178 |
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 678
|
Eh? -scratches hair- What post that I quoted? OH!! Nevermind! Good progress though!!
|
15 August 2017, 09:47 | #179 |
BoingBagged
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
|
Great work!
Keep it rolling... |
15 August 2017, 17:36 | #180 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
@xboxown: F2 should start the emulation, but something is wrong here,
still investigating. you can edit the linapple.conf, change computer type or other things. maybe one combination does work, out of the blue. dunno. |
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 |
|
|