maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Request] HP48 emulator x48 for N9(50) (https://talk.maemo.org/showthread.php?t=82334)

aRTee 2012-02-14 20:45

[Request] HP48 emulator x48 for N9(50)
 
Seems like this should be easy, open source, code from here:
http://developer.berlios.de/projects/x48/

Plus, if it helps in any way, the droid48 port code is here:
https://github.com/shagr4th/droid48

So, is there any dev willing to go for this one? It is after all a classic!

www.rzr.online.fr 2012-02-17 19:49

Re: [Request] HP48 emulator x48 for N9(50)
 
I did build x48 on harmattan :
apt-get install x48

Get:1 http://repo.pub.meego.com ./ x48 0.0.0-0~rzr1 [124kB]

DISPLAY=:0 x48
x48: using XShm extension.
can't open /home/user/.hp48/rom
can't open rom.dump


can you help were to get that rom ?

reinob 2012-02-17 22:58

Re: [Request] HP48 emulator x48 for N9(50)
 
Have you tried here?
http://developer.berlios.de/project/...?group_id=3335

There you have (supposedly) ROMs for S(X) and G(X), various revisions.

I remember many years ago when we had to extract the ROM ourselves. I think that since a couple of years the ROMs are freely distributable, but I've been off of the on-line HP48 world for a few years already. (I still use my - real - 48S regularly).

www.rzr.online.fr 2012-02-18 12:57

Re: [Request] HP48 emulator x48 for N9(50)
 
yes but it looks that it is looking for a set of files ... I did not took more time to investigate ... i guess you will figure out once installed :

http://rzr.online.fr/q/harmattan

reinob 2012-02-18 21:02

Re: [Request] HP48 emulator x48 for N9(50)
 
AFAIK only a single file (ROM dump) is needed.

If you download one of the files linked above (and unpack it, obviously), just try:

$ ./x48 -rom /path/to/rom/file

www.rzr.online.fr 2012-02-18 22:36

Re: [Request] HP48 emulator x48 for N9(50)
 
~/MyDocs/local/tmp $ DISPLAY=:0 x48 -rom gxrom-r
x48: using XShm extension.
x48: can't open /home/user/.hp48/hp48
x48: FATAL ERROR, exit.
- can't load font '-*-fixed-bold-r-normal-*-14-*-*-*-*-*-iso8859-1'
- Please change resource 'smallLabelFont'

reinob 2012-02-19 00:05

Re: [Request] HP48 emulator x48 for N9(50)
 
OK. The first problem is that you first need to initialize x48 for the ROM you want.

$ x48 -initialize -rom gxrom-r

The second is that the font it needs doesn't exist. Probably xlsfonts does not exist for the N9, so just try with "fixed":

$ x48 -initialize -smallFont fixed -verbose -rom gxrom-r
(-verbose so that you can hopefully see what's going on).

www.rzr.online.fr 2012-02-19 13:49

Re: [Request] HP48 emulator x48 for N9(50)
 
have you tried to install it too ?

now the screen appear in hz mode so it is half useful
I also tested the netbook layout which is a bit better


rm -rf ~/.hp48 ;

x48 -initialize \
-smallFont fixed -mediumFont fixed -largeFont fixed -connFont fixed \
-verbose -rom gxrom-r +netbook

x48: using XShm extension.
x48: read gxrom-r
x48: using XShm extension.
x48: wire connection on /dev/pts/4
x48: wrote /home/user/.hp48/hp48
x48: wrote /home/user/.hp48/rom
x48: wrote /home/user/.hp48/ram


x48 asks about "Try to recover memory?" "Yes/No" ?
how to answer now ?




note there is a geometry option ...


x48 Version 0.6.4, Copyright (c) 1994-2005 by Eddie C. Dost <ecd@dressler.de>.

usage:
x48 [-options ...]

where options include:
-help print out this message
-display <displayname> X server to contact
-name <string> set application name to <string>
-title <string> set window title to <string>
-geometry <geometry> position of window
-iconGeom <geometry> position of icon window
-iconic start iconic
-visual <visualname> use visual <visualname>
-mono force monochrome
-gray force grayscale
-monoIcon force monochrome icon
-smallFont <fontname> <fontname> to draw small labels (MTH - DEL)
-mediumFont <fontname> <fontname> to draw medium label (ENTER)
-largeFont <fontname> <fontname> to draw large labels (Numbers)
-connFont <fontname> <fontname> to display wire & IR connections
-/+xshm turn on/off XShm extension
-version print out version information

reinob 2012-02-19 14:23

Re: [Request] HP48 emulator x48 for N9(50)
 
Nope. I don't have an N9. But I have x48 running under Linux (Ubuntu 11.04).

Try adding the -netbook option. With -netbook you disable the netbook (horizontal) layout, i.e. uses portrait. With +netbook you enable the netbook layout, i.e. landscape.

Good luck.

www.rzr.online.fr 2012-02-19 14:29

Re: [Request] HP48 emulator x48 for N9(50)
 
1 Attachment(s)
+netbook is far better ...
but it shouldnt be that hard to create a layout that fit the mobile device
anyway since it's a native qt app there is a toolbar and it is in hz mode ...
this can be fixed but i dont remember if it require to change the source or not ...

btw you could test it on scratchbox if u want to get better support ...


All times are GMT. The time now is 02:25.

vBulletin® Version 3.8.8