Help - Search - Members - Calendar
Full Version: C64 Emulator?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
zi99y
Hi all,

I apologise for this smalltime question in advance, but I have been trying hard to find an emulator for the C64 (Commodore 64) and so far have found myself at a loss.

The sole thread on this board relating to Vice was from 2.5 years ago and LordDavon provided an unpackaged version, which I have managed to package myself, but but get the error
CODE
x64: relocation error: x64: undefined symbol: __umodsi3


Then there's a qtopia package of frodo that installs but as it's totally qtopia based it gets the standard errors relating to libqpe.so.1

Lastly I have tried installing Vice under debian pocketworkstation, I have tried the older version on the stable branch, and also the testing version. Each complain about
CODE
Xlib: extension "XFree86-VidModeExtension" missing on display ":0.0"
whcih I imagine is to do with chrooting from within X, I don't know if it's possible to setup xorg to run in chroot mode.

So as you can see I've exhausted all my ideas, it's no show stopper but it would be fantastic to have a C64 emulator on pdaxrom, but I've no time to learn cross compiling at present.

Any suggestions or ideas would be great smile.gif
Capn_Fish
I may be able to compile it with my limited skills (anything past "./configure, make, make install" is generally above me), but I need the source code. If you can point me to it I'll give it a shot.
Capn_Fish
I got the latest Frodo compiled. It wouldn't "make install", but it seems to work if you put the ROM files in the same directory as the executable.
zi99y
Thats really kind, thanks! I must admit if it's really that simple I should really have a go at compiling myself -

So would I just extract this and run Frodo direct?

Will have a go with frodo when I get home, thanks again smile.gif
Capn_Fish
Glad I could help! smile.gif I believe all you have to do is put an executable (I don't know how they are different, but there are three of them) in the same directory as the ROM files and execute it.
zi99y
It's very close! I can run the executable and get the nice blue C64 basic screen, but am unable to attach a d64 disk image to it.

When run from the command line I get the following error:
CODE
error: CmdPipe: unable to execute child process wish
~CmdPipe child process returned error
Alas, master, no preferences window will be available.
If you wish to see one, make sure the 'wish' interpreter
(Tk version >= 4.1) is installed in your path.
You can still use Frodo, though. Use F10 to quit,
F11 to cause an NMI and F12 to reset the C64.
You can change the preferences by editing ~/.frodorc


I have installed the TCL package which provides TC / TCL version 8.4, but still this error persists.

Without being able to attach disks, it is rather useless. There do not appear to be any command line parameters either, and .frodorc doesn't get created otherwise maybe we could edit that.

I'm keen for any ideas, it's so close!!!
Capn_Fish
I know next to nothing about this emulator. You could try all of the executables if you haven't already. Somebody using this emulator under Cacko or OZ may be able to point you in the right direction. If anybody has any suggestions for recompiling, let me know and I'll try them. I have here a .frodorc file I got from a port of Frodo here
http://www.handheld-linux.com/swi/showdetail.php?app=594
I don't know if it will do any good, but here it is.
zi99y
thanks, I may be able to force it to load a .d64 disk image with that settings file. I suspect that it would normally create one on exit, but as I have to force quit (alt-F4 effectively) it probably skips that step.

I attempted to compile it myself and after the make, running the freshly generated executables gets exactly the same error - I guess that's what you did though.

After reading up a little I saw that you can compile with the switch --without-x so that it uses svgalib instead of tk/tcl , but alas it breaks out of the configure script because svgalib is not installed - any ideas if there's a package of this somewhere?

Also, I discovered that it is attempting to launch /usr/bin/wish - I have tried symlinking the tcl executable to this location but it doesn't like it - I wonder where this wish interpreter comes from - my googling hasn't turned up much except for pointing to the tk/tcl pages...... more investigation tonight smile.gif
Capn_Fish
QUOTE(zi99y @ Sep 26 2006, 03:14 AM)
thanks, I may be able to force it to load a .d64 disk image with that settings file. I suspect that it would normally create one on exit, but as I have to force quit (alt-F4 effectively) it probably skips that step.

I attempted to compile it myself and after the make, running the freshly generated executables gets exactly the same error - I guess that's what you did though.

After reading up a little I saw that you can compile with the switch --without-x so that it uses svgalib instead of tk/tcl , but alas it breaks out of the configure script because svgalib is not installed - any ideas if there's a package of this somewhere?

Also, I discovered that it is attempting to launch /usr/bin/wish - I have tried symlinking the tcl executable to this location but it doesn't like it - I wonder where this wish interpreter comes from - my googling hasn't turned up much except for pointing to the tk/tcl pages...... more investigation tonight smile.gif
*


You could try building the svgalib package. If you are compiling natively, I have had some trouble with that, but go ahead and try it. If you don't want to, I could try.
zi99y
I managed to get it working!! Turns out there are 2 packages that provide tk / tcl, I just installed the tk package and symlinked the executable to /usr/bin/wish and hey presto!

Only having some problems now with key mappings but have got games running on it which is very nice progress.

In other news I have compiled a version of Vice that works, although it's quite a heavy app and doesn't really emulate full speed, and as it's my first proper compile it's got some unneccesary baggage attached, but if anyone is interested I have made an ipk that is 10Mb, I don't think I can attach a file that big here.

So at least now there are 2 options, both currently flawed however, but I will look into it more when I have some spare time (yeah right!)

Thanks Capn Fish, your help encouraged me to look into compiling stuff and I'm very grateful
Capn_Fish
Glad I could help!
Seb
vice-1.19 is supposed to work too but i think you have to compile it yourself

./configure
make
make install
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.