Author Topic: C64 Emulator?  (Read 4029 times)

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
C64 Emulator?
« on: September 24, 2006, 05:07:57 am »
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: [Select]
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: [Select]
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

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #1 on: September 24, 2006, 11:02:16 am »
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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #2 on: September 24, 2006, 12:44:12 pm »
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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
C64 Emulator?
« Reply #3 on: September 25, 2006, 04:27:50 am »
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
« Last Edit: September 25, 2006, 04:30:28 am by zi99y »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #4 on: September 25, 2006, 03:30:02 pm »
Glad I could help!   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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
C64 Emulator?
« Reply #5 on: September 25, 2006, 03:55:47 pm »
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: [Select]
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

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #6 on: September 25, 2006, 08:38:47 pm »
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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
C64 Emulator?
« Reply #7 on: September 26, 2006, 04:14:42 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

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #8 on: September 26, 2006, 07:45:21 am »
Quote
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142322\"][{POST_SNAPBACK}][/a][/div]

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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
C64 Emulator?
« Reply #9 on: September 27, 2006, 08:46:26 am »
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

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
C64 Emulator?
« Reply #10 on: September 27, 2006, 04:13:12 pm »
Glad I could help!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Seb

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://
C64 Emulator?
« Reply #11 on: October 01, 2006, 03:19:06 am »
vice-1.19 is supposed to work too but i think you have to compile it yourself

./configure
make
make install