OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Tron on February 18, 2007, 12:43:59 pm

Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on February 18, 2007, 12:43:59 pm
Hello all,

I'm looking for a periodic table of the elements for pdaxrom (well, xpaxii13, actually) and want to use my favorite linux application, gperiodic (http://www.frantz.fi/software/gperiodic.php). As it is a gtk+-Application, I did expect it to work. It compiles fine on the Zaurus (C3100 with gcc 3.4.6), but when I try to run the executable all I get is 100% CPU load.

Maybe someone came across the same problem or one of the experts here has the time to take a quick look...
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Ling on February 18, 2007, 12:56:27 pm
If you look at the Want Compiled thread, Meanie posted earlier today that the standard gcc on the Z (w/ pdaXii13) will not work. I think that he said version 2.5.9 is needed, but not sure, check it out.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Meanie on February 18, 2007, 10:41:08 pm
Quote
If you look at the Want Compiled thread, Meanie posted earlier today that the standard gcc on the Z (w/ pdaXii13) will not work. I think that he said version 2.5.9 is needed, but not sure, check it out.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154606\"][{POST_SNAPBACK}][/a][/div]

I didn't say that at all. the gcc compiler on the Z is fine for compiling apps, but not for compiling kernel modules because we are still using an older kernel which needs an older compiler...
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Drake01 on February 19, 2007, 07:55:01 pm
Quote
I didn't say that at all. the gcc compiler on the Z is fine for compiling apps, but not for compiling kernel modules because we are still using an older kernel which needs an older compiler...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154627\"][{POST_SNAPBACK}][/a][/div]
That's great news!  I have to say that I miss my period table app from my old PDA.  It was surprising how many times we'd be in the backyard drinking beer by the moonlight when suddenly the course of the conversation would turn and we'd desperately need to know the melting point of tin or the atomic weight of uranium or some other ridiculous item.  (I'm being serious... I don't understand it, either.)
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: kkazakov13 on February 20, 2007, 12:57:15 am
You may try also compiling gelemental  Or I may try it at some time
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on February 21, 2007, 04:30:44 am
Thanks for the feedback. Although gelemental is based on gperiodic, I'll give it a try ;-)
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on February 21, 2007, 04:12:42 pm
It seems, I'm not smart enough for cross-compiling (on the Zaurus I ran out of memory).
On my linux box I get:

/usr/lib/libglibmm-2.4.so: could not read symbols: File in wrong format

Compiling for x86 gives me a functional executable - I've got no idea what might be wrong here. The library in question is installed correctly. Any ideas?
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: kkazakov13 on February 21, 2007, 05:37:01 pm
It's trying to link to x86 library, but it has to be arm library.

On zaurus you can setup swap file/partition (256mb/512mb) and you won't run out of memory.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on February 22, 2007, 02:41:35 am
Quote
It's trying to link to x86 library, but it has to be arm library.
Ah, so I need to get the missing library for the arm architecture from somewhere and integrate it into my cross-compile environment.

Quote
On zaurus you can setup swap file/partition (256mb/512mb) and you won't run out of memory.
Yes, I thought about that already - I guess I'll dump the OZ that's still on hd anyway and use one partition as swap. Using a file as swap never occurred to me, does not sound bad either.

But compiling on the Zaurus probably takes ages - the compile took up ~200MB of memory and needed around 10min on my P4 desktop box...
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: kkazakov13 on February 22, 2007, 05:14:19 am
Quote
But compiling on the Zaurus probably takes ages - the compile took up ~200MB of memory and needed around 10min on my P4 desktop box...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154950\"][{POST_SNAPBACK}][/a][/div]

Really ??? For a periodic table program ? wow  
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on February 23, 2007, 02:38:28 am
Quote
Really ??? For a periodic table program ? wow 

Yup, I'm not really sure why.

I got it running on my linux box (really nice program, I have to say), just not on the Z. Cross-compiling I'm still missing a few arm-libraries (I wonder what gelemental needs those for anyway) and if I compile directly on the Z with a swapfile enabled I finally get an "internal compiler error" and am told to submit a bug report - great  
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: T3_slider on February 23, 2007, 01:50:33 pm
I took a (brief) try at compiling gelemental on my C3200 (beta 3) but it looks like it needs  gtkmm which is not included in Meanie's zgcc 3.4.6 and I can't find it for the Z (and I don't think I really want to compile that for the Z, but we'll see).

So unless someone better at this than me gives it a shot (which is most people), it looks like too big of a job for a periodic table program.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on March 06, 2007, 03:17:29 pm
Quote
but it looks like it needs  gtkmm which is not included in Meanie's zgcc 3.4.6 and I can't find it for the Z
Well, yes, that's the point where I get stuck, too.

Does anyone know where to get that or has compiled it for the Zaurus?
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: jcabrer on March 06, 2007, 08:56:01 pm
Check the app in interactive mode:

# gperiodic -i

I compiled on Tosa today, and trying to run the gui does seem to hang.  I'm going to look in the code if I get a chance later tonight.

For now, it does run in interactive mode, which is ok I guess.

I'll post my results and ipks (gperiodic and termcap-devel) later.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on March 07, 2007, 08:49:35 am
Did you compile version 2.0.8? The one I did does not recognize the "-i" option, just "-v" (does nothing), "-D" (dumps the periodic table as text, this one works) and "-c <temp>" (different coloration according to phase).
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: jcabrer on March 07, 2007, 12:59:35 pm
Quote
Did you compile version 2.0.8? The one I did does not recognize the "-i" option, just "-v" (does nothing), "-D" (dumps the periodic table as text, this one works) and "-c <temp>" (different coloration according to phase).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155658\"][{POST_SNAPBACK}][/a][/div]

The version is 1.3.3

Is there another link?
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: jcabrer on March 07, 2007, 01:02:27 pm
Quote
The version is 1.3.3

Is there another link?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155692\"][{POST_SNAPBACK}][/a][/div]

So there is!  I'll try it now.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: jcabrer on March 07, 2007, 01:38:04 pm
The app seems to be broken.  The interactive mode code is missing, but the docs still say interactive is supported.  I'm guessing an earlier 2.x version may be needed.  I can't find the older source though...

gelemental requires gtkmm and glibmm.  This makes the requirements significantly more than what they would be under gperiodic.

I'm going to build them, just for fun.
Title: Periodic Table (gperiodic) For Pdaxii13
Post by: Tron on March 07, 2007, 02:31:44 pm
Quote
The app seems to be broken. 
Well, I can compile and run 2.0.8 fine on my linux box, so I'm not so sure about that. But you are right, the "-i" mode is missing there. I haven't found any usable documentation in the sources, though.