Author Topic: Unit Convertor/Calc with Unit Convert that works  (Read 8449 times)

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« on: October 31, 2004, 11:45:42 pm »
I'm new to the Z world, and one of the things that drew me to it was seeing screenshots of Zaurus Unit Convertor online.  I need this app daily.

BUT!  I'm running OZ 3.5.1 and of course I have to makecompat ZUC to use it.  

Well, apparently this buggers up some floating point math or something and therefore renders ZUC unusable (none of the numbers/math works!).

So, if someone would like to make a nice little unit conversion program--with Pressure and Speed and Distance and Temperature (the ones I use the most) that would be so kind--especially Pressure (and if you want to add CFM to L/s that would be great, too!)

Thanks,
Kent!
« Last Edit: October 31, 2004, 11:48:23 pm by ksignorini »

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
« Last Edit: November 01, 2004, 08:12:15 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #2 on: November 01, 2004, 10:28:22 am »
Ya, um, I started that thread.  In fact, it's the reason I started this one.

See, I need a calculator/unit converter that works, and so far nothing in that other thread seems to work.

So again, if anyone wants to make one that works, I'll be the first to try it out!

Thanks,
Kent!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unit Convertor/Calc with Unit Convert that works
« Reply #3 on: November 01, 2004, 10:30:06 am »
Doesn't opie-calc do this?

I'm pretty sure It used to.


Si

P.S.
Quote
BUT! I'm running OZ 3.5.1 and of course I have to makecompat ZUC to use it.

Well, apparently this buggers up some floating point math or something and therefore renders ZUC unusable (none of the numbers/math works!).

The two things are independant; even if you didn't use the compat libs it still wouldn't work as OZ3.5.1 now uses -soft-float. The compat libs are simply to translate the different name-mangling schemes which are used by C++ programs (and libs) compiled with different versions of GCC (2.xx vs. 3.xx)
« Last Edit: November 01, 2004, 10:32:24 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #4 on: November 01, 2004, 12:40:17 pm »
Si:

If it does, I can't figure out how.  Where I would assume there should be a button for conversions it only says "Standard" and is greyed-out.  Truth be told, opie-calculator looks like a calc program I used to use on the Palm called Parens (which had a similar button for conversions).

Could there simply be a config file somewhere that defines the unit conversions that is missing or didn't get installed?  

(I installed opie-calculator from the OZ 3.5.1 feed.)

Thanks,
Kent!

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Unit Convertor/Calc with Unit Convert that works
« Reply #5 on: November 01, 2004, 01:47:32 pm »
Quote
The two things are independant; even if you didn't use the compat libs it still wouldn't work as OZ3.5.1 now uses -soft-float.
So would building ZUC in OE help? Or are changes to the code necessary?

z.
« Last Edit: November 01, 2004, 01:47:51 pm by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

jdmoorman

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Unit Convertor/Calc with Unit Convert that works
« Reply #6 on: November 01, 2004, 03:23:47 pm »
C3100 - pdaXiiV2, Kingston 4GB sd, Lynksys wcf12 cf wifi
sl6000 - on loan to pdaXrom team
C860, Lexar 1GB sd, 6GB microdrive, cacko 1.23 (sprouted legs and walked away)

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #7 on: November 01, 2004, 03:49:48 pm »
Can new units be added to neocal?

Because by default it doesn't look like it has pressure.

Kent!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unit Convertor/Calc with Unit Convert that works
« Reply #8 on: November 01, 2004, 05:55:05 pm »
Quote
So would building ZUC in OE help? Or are changes to the code necessary?

No, just recompiling (with the -soft-float option) would do the trick (which means using GCC3.xx anyway iirc), so adding it to OE would be the easiest way.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #9 on: November 01, 2004, 06:20:09 pm »
OK!  Well, I downloaded the source for version 1.1 and read the "copying" file.  The software is released under the GPL, so I think it could be re-compiled/re-distributed legally.  

So, how do we go about getting ZUC added to OE?

Kent!

p.s.  If anyone has all the cross-compiling/tool chain stuff for OE installed on their machine and wants to do a temporary recompile for me until ZUC is officially added to the OE project, I would certainly dig it!  The source for ZUC is available at:  http://prdownloads.sourceforge.net/zuc/zuc-1.1.tar.gz

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Unit Convertor/Calc with Unit Convert that works
« Reply #10 on: November 02, 2004, 03:40:48 am »
I tried it a couple of days ago (me, always thinking ahead  ) but I failed miserably and don't think I have the time to look for reasons... Here's what I did:

1. Identified (what I thought was) a suitable really-not-very-complex app already included in OE. I chose zgscore which is a golf scorecard.
2. Created a copy of the $PKGDIR/zgscore directory and called it $PKGDIR/zuc.
4. Renamed the .oe file in $PKGDIR/zuc to zuc_1.1.oe.
5. Edited $PKGDIR/zuc/zuc_1.1.oe to (what I thought were) proper settings.
6. Ran the OE setup script and then "oebuild $PKGDIR/zuc/zuc_1.1.oe"
7. Watched the build as it failed.

I suspect the problem is that zgscore.oe inherits the "palmtop" class (classes are like build templates which you customise in your .oe file). zuc should probably be using a different class. I don't know which one, though. Someone more knowledgeable should take a look at it...
« Last Edit: November 02, 2004, 03:42:52 am by zenyatta »
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unit Convertor/Calc with Unit Convert that works
« Reply #11 on: November 02, 2004, 06:18:02 am »
I'll take a look at it, but it probably won't be until next week as I'm a bit busy at the moment (my build PC's at home and I'm working late).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #12 on: November 02, 2004, 08:50:57 am »
Thanks!  I'll keep my eye on this post.  You can't imagine how (geeky quip coming up) excited I would be if you got this app recompiled for OE and it worked!

Thanks,
Kent!

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Unit Convertor/Calc with Unit Convert that works
« Reply #13 on: November 10, 2004, 06:04:57 pm »
Not pushing, uh-uh, but, has anyone had a chance to look at re-compiling this app over the last week?

Thanks,
Kent!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unit Convertor/Calc with Unit Convert that works
« Reply #14 on: November 11, 2004, 06:27:41 pm »
Sorry, I've been busy and in any case I'm trying to update OE so am out of the picture for the time being (don't have the sources, slow dial-up, etc.), perhaps someone with a working OE setup will be kind enough...?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva