dgame
Active Member
- Joined
- Oct 1, 2006
- Messages
- 945
Disclaimer: I am not a programmer. I am learning as I go and this is something I want on my Pandora.
I finally managed to cross-compile the Basilisk II 68K Macintosh Emulator and it works on the Pandora.
This is NOT an official release. It is a request for help.
I am using the DJWillis toolchain and have received lots of help setting it up from sebt3 and Hitnrun. Thanks!
Also thanks to Zx for sharing his SDK, I got the DJWillis toolchain to work first so I haven't tried it yet.
So here is the Basilisk II 68K Macintosh Emulator compiled for the Pandora. The keyboard and the mouse work. The sound works.
The touchscreen works but it shares a bug like with Xfce in that when the touchscreen is pressed and releases it does not register the mouse button as having been released.
The result is that the mouse always behaves as if it is being pressed when using the touch screen. If you try it you will see. The nub mouse works fine.
I don’t know how to make a PND yet so just extract the BasiliskII-app.zip folder to your SD card and execute “StartBasiliskII.sh” from the GUI (with the mouse or enter key) to run it.
The “StartBasiliskII.sh” script merely executes the ./BasiliskII program from the current directory or PWD.
This is important as I changed:
char *home = getenv("HOME");
to
char *home = getenv("PWD");
so it does not read or write the preference files from and to the NAND.
However, if you execute BasiliskII from the GUI (with the mouse or enter key) instead of using the StartBasiliskII.sh script the PWD will be the same as HOME and it will write to the NAND.
The StartBasiliskII.sh script is the same as executing BasiliskII from a terminal (./BasiliskII) as it preserves the PWD and the BasiliskII pref files get written and read form the BasiliskII folder.
Problems:
I cant get it to go full screen. When I attempt to compile with enable-xf86-dga the <X11/extensions/xf86dga.h> and <X11/extensions/xf86dga.h> are not in the Pandora tool chain I use.
The dga (frame buffer?) screen modes either don’t work or produce black screens.
When I double-click the title bar it (the title bar) disappears and the app goes full screen (in a window) for a few seconds and then the bar returns.
It is still workable as the 720x480 window is nice when Basilisk II is “always on top” or when Xfce panel is set to auto-hide.
You can use the left-shoulder button + drag window to have the entire 480 height visible.
I have uploaded the complete app and source here:
LINK to BasiliskII-app.zip (10.6MB)
LINK to BasiliskII-source.zip (1.8MB)
The BasiliskII-app.zip archive contains a pre-configured 20MB disk.hfv and should run without modification.
The BasiliskII-source.zip archive contains all of the source and the manually modified Makefile I used to compile the app.
Most of the Pandora related things are in the src/Unix folder of BasiliskII-source.zip.
Remember to always use the StartBasiliskII.sh script or launch the app from a terminal.
If you can compile it yourself and try to get full-screen working then go for it.
If you look at the code and have any suggestions to get full-screen working post them here and I can try it.
Thanks!
I finally managed to cross-compile the Basilisk II 68K Macintosh Emulator and it works on the Pandora.
This is NOT an official release. It is a request for help.
I am using the DJWillis toolchain and have received lots of help setting it up from sebt3 and Hitnrun. Thanks!
Also thanks to Zx for sharing his SDK, I got the DJWillis toolchain to work first so I haven't tried it yet.
So here is the Basilisk II 68K Macintosh Emulator compiled for the Pandora. The keyboard and the mouse work. The sound works.
The touchscreen works but it shares a bug like with Xfce in that when the touchscreen is pressed and releases it does not register the mouse button as having been released.
The result is that the mouse always behaves as if it is being pressed when using the touch screen. If you try it you will see. The nub mouse works fine.
I don’t know how to make a PND yet so just extract the BasiliskII-app.zip folder to your SD card and execute “StartBasiliskII.sh” from the GUI (with the mouse or enter key) to run it.
The “StartBasiliskII.sh” script merely executes the ./BasiliskII program from the current directory or PWD.
This is important as I changed:
char *home = getenv("HOME");
to
char *home = getenv("PWD");
so it does not read or write the preference files from and to the NAND.
However, if you execute BasiliskII from the GUI (with the mouse or enter key) instead of using the StartBasiliskII.sh script the PWD will be the same as HOME and it will write to the NAND.
The StartBasiliskII.sh script is the same as executing BasiliskII from a terminal (./BasiliskII) as it preserves the PWD and the BasiliskII pref files get written and read form the BasiliskII folder.
Problems:
I cant get it to go full screen. When I attempt to compile with enable-xf86-dga the <X11/extensions/xf86dga.h> and <X11/extensions/xf86dga.h> are not in the Pandora tool chain I use.
The dga (frame buffer?) screen modes either don’t work or produce black screens.
When I double-click the title bar it (the title bar) disappears and the app goes full screen (in a window) for a few seconds and then the bar returns.
It is still workable as the 720x480 window is nice when Basilisk II is “always on top” or when Xfce panel is set to auto-hide.
You can use the left-shoulder button + drag window to have the entire 480 height visible.
I have uploaded the complete app and source here:
LINK to BasiliskII-app.zip (10.6MB)
LINK to BasiliskII-source.zip (1.8MB)
The BasiliskII-app.zip archive contains a pre-configured 20MB disk.hfv and should run without modification.
The BasiliskII-source.zip archive contains all of the source and the manually modified Makefile I used to compile the app.
Most of the Pandora related things are in the src/Unix folder of BasiliskII-source.zip.
Remember to always use the StartBasiliskII.sh script or launch the app from a terminal.
If you can compile it yourself and try to get full-screen working then go for it.
If you look at the code and have any suggestions to get full-screen working post them here and I can try it.
Thanks!