Author Topic: New Hp48gx Emulator Port  (Read 12534 times)

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« on: May 03, 2005, 01:17:29 pm »
New hp48gx emulator port.

x48 0.4.2 compiled for Z with support for Clamshell VGA screens.  i.e. I moved the buttons around.

http://sense.net/zc/x48/

Screen Shot:

http://sense.net/zc/x48/x48.gif
« Last Edit: May 03, 2005, 01:22:11 pm by datajerk »

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
New Hp48gx Emulator Port
« Reply #1 on: May 03, 2005, 01:37:08 pm »
Damn. Get me all excited, why don't you

I don't yet have a Z running pdaxrom, so I've been hoping someone would port an HP 48 emulator to Qtopia.

Ah well. I'll have to stick with my real 48s for the time being...
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #2 on: May 03, 2005, 01:55:33 pm »
I also run Qtopia, but use X/qt to run X apps within Qtopia.  This port was easy.  Converting to QT may be possible in the future.

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #3 on: May 03, 2005, 04:35:27 pm »
It seems to start on pdaxrom rc9, but just after the window displays, it bombs with a font error:

"can't load font '-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1'"

I don't know enough about X fonts to fix this. Anyone have any pointers?

Mike.
sl-c3100
pdaxrom 1.1.0 beta1

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #4 on: May 03, 2005, 05:59:14 pm »
I do not use pdaxrom, but I would guess that you are short on fonts.  Look at the pdaxrom feed for font ipks and install them all.  If still missing, try to extract the fonts from the X/qt feed.  x48 uses only standard X11R6 fonts.  A complete X11R6 install should have them.

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #5 on: May 03, 2005, 06:29:13 pm »
OK, after a bit of reading I added a line in the fonts.alias file to point the helvetica font at another standard font. So now the UI is displayed.

Sadly, this is where it all comes to a halt ...

As soon as I press a key on the UI or on the Zs keyboard, it bombs. The command line shows:

./x48: relocation error: ./x48: undefined symbol: __mods13

I guess that's a bit more terminal, and this will need to be recompiled using the pdaxrom sdk. This is another area I have no experience of, but maybe I can have a go at the weekend, if no-one beats me to it.

Cheers,

Mike.
« Last Edit: May 03, 2005, 06:30:18 pm by w14 »
sl-c3100
pdaxrom 1.1.0 beta1

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #6 on: May 03, 2005, 06:36:02 pm »
Should be easy, the patch is not specific to the Zaurus or X/qt, just 640x480.  I developed and tested on an x86 Linux box.  Just apply the patch and compile.  I can try to create a static binary if that helps.  Let me know.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
New Hp48gx Emulator Port
« Reply #7 on: May 05, 2005, 10:56:29 am »
Too bad it doesn't run on opie/qtopia without xqt. It'd be great as a native app

Guylhem

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #8 on: May 05, 2005, 05:23:13 pm »
I started a EMU48 port to QT but it was taking too long and I needed an emulator quick.  This only took a few hours to hack out.  I spend a lot of time in X/qt, so it made sense for me.

I shouldn't be too hard to replace the X11 parts with QT.  I will look at it when I have more time.

Kedge

  • Newbie
  • *
  • Posts: 42
    • View Profile
New Hp48gx Emulator Port
« Reply #9 on: May 06, 2005, 05:26:57 am »
Quote
OK, after a bit of reading I added a line in the fonts.alias file to point the helvetica font at another standard font. So now the UI is displayed.

I have the same problem with the font, but didn't get right. Can you post the line you added?

kedge
C750 with Cacko 1.22b...

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
New Hp48gx Emulator Port
« Reply #10 on: May 06, 2005, 03:05:29 pm »
Quote
I started a EMU48 port to QT but it was taking too long and I needed an emulator quick.  This only took a few hours to hack out.  I spend a lot of time in X/qt, so it made sense for me.

I shouldn't be too hard to replace the X11 parts with QT.  I will look at it when I have more time.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78432\"][{POST_SNAPBACK}][/a][/div]

An EMU48 port to QT would be much better IMHO because emu48 emulation is more recent and refined than X48. I'd be very very interested in such an application - especially if it could support both portrait and landscape mode.

Guylhem

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #11 on: May 06, 2005, 07:21:34 pm »
Kedge:

I added -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 -misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1 to the end of the file.

datajerk:

The pdaxrom cross compiler does not include xmkmf or imake as far as I can see. Can you give me any pointers? Did you have to manually edit the makefile? Excuse my ignorance with this stuff ...

Mike.
« Last Edit: May 06, 2005, 07:22:19 pm by w14 »
sl-c3100
pdaxrom 1.1.0 beta1

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #12 on: May 07, 2005, 10:28:16 am »
Quote
The pdaxrom cross compiler does not include xmkmf or imake as far as I can see. Can you give me any pointers? Did you have to manually edit the makefile? Excuse my ignorance with this stuff ...

Mike.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Just run xmkmf;make on your Linux workstation to build and test it.  Then cd src, make clean, edit the Makefile, replace gcc with arm-linux-gcc, you will also need to make changes for the X11R6 paths.

I posted my Makefile here: [a href=\"http://sense.net/zc/x48/Makefile]http://sense.net/zc/x48/Makefile[/url], diff this with your generated Makefile to find what I changed.

After you have edited the Makefile, just type make.  Then arm-linux-strip x48.

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
New Hp48gx Emulator Port
« Reply #13 on: May 07, 2005, 10:33:14 am »
Quote
An EMU48 port to QT would be much better IMHO because emu48 emulation is more recent and refined than X48. I'd be very very interested in such an application - especially if it could support both portrait and landscape mode.

Guylhem
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78588\"][{POST_SNAPBACK}][/a][/div]

I will try to work on it this summer.

Kedge

  • Newbie
  • *
  • Posts: 42
    • View Profile
New Hp48gx Emulator Port
« Reply #14 on: May 09, 2005, 02:00:33 am »
Quote
Kedge:

I added -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 -misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1 to the end of the file.

Mike.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=78633\"][{POST_SNAPBACK}][/a][/div]

Thanks, works now like a charm.

Stefan
C750 with Cacko 1.22b...