Author Topic: Xcas  (Read 8451 times)

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« on: October 04, 2005, 03:04:07 pm »
Well, it doesn't seem many people are as interested in a good calculator for pdaXrom as I am (nobody was able to help me with my "Blit combination not supported" error in TiEMU), but if you are, it would be nice if we can figure out how to at least get Xcas working. I downloaded the only package I could find from http://www-fourier.ujf-grenoble.fr/~parisse/giac.html,  but it seems pretty old and fussy; not wanting to work with the newest version of pdaXrom. After it complaining about softfloat.so missing (and installing the package), I now get the "undefined symbol: __divsi3" error message, and can't figure out what to do. Some other threads recommended doing an "export LD_PRELOAD=/usr/lib/libgcc_s.so" before executing (these were for other programs, but the same error message), but I just get an error saying the libgcc_s.so is not found.

I'm pretty much a n00b when it comes to linux, so your patience is appreciated. Is there any chance someone is interested in compiling a new version, or at least knows of a workaround to get Xcas to function. It would be really nice to have a solid, GUI'd CAS for pdaXrom (and a working TiEMU would be awesome as well). Any help is much appreciated.
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Xcas
« Reply #1 on: October 04, 2005, 03:49:24 pm »
If you downloaded the arm-version on that page, it's pretty sure that you won't get it working. It's probably compiled for familiar-linux.

Best bet is to download the source and compile it.
http://sourceforge.net/projects/xcas/ (is where the source is, I guess)
I'll have a look at tiemu as soon as I have setup the new cross-sdk. (weekend?)
If someone wants to try while we're waiting, I won't stop them.  

Chero
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Xcas
« Reply #2 on: October 04, 2005, 08:50:26 pm »
I don't know if you guys care, but Xcas runs fine on the Sharp ROM under X/Qt. It's big, though. I untarred the precompiled binary from the page linked above into a 16Mb flash card and there was not enough space for the documentation.


Felipe
SL 5000 D  and C860 Sharp ROM
Too many accessories...

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #3 on: October 04, 2005, 10:00:45 pm »
I'd love to be able to compile it on my own, but I'm quite inexperienced in the whole building process, let alone cross-compiling things for my Zaurus. I'm going to try out the whole pdaX86 thing (I dropped my Linux box when moving and haven't had the time to survey the damage... needless to say, it doesn't work right now) and try see if perhaps I can get this done myself. I guess it's never too late to learn something, and it would be nice to give back to this community that has done so much for me in the past.

Wish me luck!
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Xcas
« Reply #4 on: October 05, 2005, 01:07:37 am »
Good luck !!!
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #5 on: October 06, 2005, 01:28:26 pm »
Thanks Chero!

Well, I installed the latest cross-sdk (I finally dumped my Windows and switched to Mandriva... for good this time), but I'm having some problems. I've been following the steps listed at http://www.pdaxrom.org/index.php?showid=35&menuid=1 for building the apps, however, it was written for an older version.  The LDFLAGS=... thing references files for the old sdk (I think), and the directory structure of the new one is totally different. I tried pointing the directory after -rpath-link to /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib/X11 (which seems to make the most sense to me considering what the instructions said... but I still have no idea what exactly it means) and a few other places, but I always get the error "configure: error: installation or configuration problem: C compiler cannot create executables"

Any insight into this?
Thanks again.
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Xcas
« Reply #6 on: October 06, 2005, 02:02:36 pm »
Quote
Thanks Chero!

Well, I installed the latest cross-sdk (I finally dumped my Windows and switched to Mandriva... for good this time), but I'm having some problems. I've been following the steps listed at http://www.pdaxrom.org/index.php?showid=35&menuid=1 for building the apps, however, it was written for an older version.  The LDFLAGS=... thing references files for the old sdk (I think), and the directory structure of the new one is totally different. I tried pointing the directory after -rpath-link to /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib/X11 (which seems to make the most sense to me considering what the instructions said... but I still have no idea what exactly it means) and a few other places, but I always get the error "configure: error: installation or configuration problem: C compiler cannot create executables"

Any insight into this?
Thanks again.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

From another page :
First run this :
To setup the needed variables and pathes run "/opt/arm/runzgcc-vfp.sh"
Now the SDK environment has been configured and setup : you should have a different prompt
From this prompt, do what you did (with changed dirs as you did before)

The page is : [a href=\"http://www.pdaxrom.org/index.php?showid=34&menuid=1]http://www.pdaxrom.org/index.php?showid=34&menuid=1[/url]

I didn't test this sdk yet, I know that's how it (still) worked for rc10.
From the error you give, I suppose you didn't run "runzgcc-vfp.sh"(not sure)

Chero
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Xcas
« Reply #7 on: October 06, 2005, 03:04:55 pm »
Quote
(...) LDFLAGS=... thing references files for the old sdk (I think), and the directory structure of the new one is totally different. I tried pointing the directory after -rpath-link to /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib/X11 (...)

you can ignore this, sashz has put everything under /opt/cross/arm/3.4.4-xscale-softvfp/armv5tel-cacko-linux/lib so gcc knows where to search.

simply use:
Code: [Select]
./configure -host=armv5tel-cacko-linux --build=i686-linux
Quote
configure: error: installation or configuration problem: C compiler cannot create executables"
Welcome to cross compiling ;-)
Some scripts don't take into account the fact that you are cross compiling (you did pass the -host= etc ?)
so they might compile a hello world program and try to run it. As the executable is built for arm it doesn't run on your pc , hence the error.

Unfortunately at this point you must edit the configure script, find  and hack the test  to make it works.

Note that native compilation (compiling on you zaurus) is often easier but slower.
tricks for native compilation:

- use the zgcc image
- create a nfs export on your linux box and compile there (see the FAQ on pdaxrom.org before mounting the nfs drive)
- do the compilation from a ssh connection from your linux box
- if gcc crash with an error, it is generally because there is not enough memory, exiting X is often enough otherwise you'll need to create a swap
- use distcc to speed things up (see post #10 here)
« Last Edit: October 06, 2005, 03:10:04 pm by pgas »
SLC-860 cacko / senao wifi

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #8 on: October 06, 2005, 04:15:34 pm »
Quote
From another page :
First run this :
To setup the needed variables and pathes run "/opt/arm/runzgcc-vfp.sh"
Now the SDK environment has been configured and setup : you should have a different prompt
From this prompt, do what you did (with changed dirs as you did before)

The page is : http://www.pdaxrom.org/index.php?showid=34&menuid=1

I didn't test this sdk yet, I know that's how it (still) worked for rc10.
From the error you give, I suppose you didn't run "runzgcc-vfp.sh"(not sure)

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


Thanks guys! There's no "runzgcc-vfp.sh" script in this sdk, but I ran the "runsdk.sh" script, which I assumed to be the same thing. Doing just the ./configure thing worked about right, but reading the readme file says I need get the GMP, FLTK, FLVW, etc. packages before building. I'll get to work on this a bit tonight, but now I have to go study for my organic chemistry exam in two hours
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #9 on: October 09, 2005, 02:44:37 am »
Well, no luck with cross-compiling, so I installed the native zgcc image thing in hopes of doing some compiling natively (TiEMU this time, xcas seems like it has a bunch more dependancies than I want to deal with on my first project). I still get the same "C compiler cannot create executables" error. There is no shell script to set the enviroment variables, so I'm pretty sure this is at least part of the problem. I tried exporting all the variables in the runsdk.sh file on my linux box (but pointing to the right places on my Z), but I still get the error. Like I said, I'm a total n00b at this stuff, and I appreciate your help.

BTW, I was able to compile the package natively on my linux box, so at least I know it works.

Thanks again.
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Xcas
« Reply #10 on: October 09, 2005, 04:20:42 am »
for the native sdk you don't need a special script.

you also only need to issue
Code: [Select]
./configure without special --build or --target.

I tried a ./configure for Xcas  and it fails because of the dependencies, but I don 't get your error .

where did you mount the image? /opt/native/arm/3.4.4-xscale-softvfp ie
Code: [Select]
mount -o loop zgcc-3.4.4.img /opt/native/arm/3.4.4-xscale-softvfp(you might need to create the dir before).
« Last Edit: October 09, 2005, 04:21:45 am by pgas »
SLC-860 cacko / senao wifi

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Xcas
« Reply #11 on: October 09, 2005, 09:44:35 am »
Quote
Well, no luck with cross-compiling

Drop me a line if you need a hand cross compiling xcas - it's in OE & I've done some work on it so it builds correctly.


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

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #12 on: October 09, 2005, 06:11:08 pm »
Ok, things are going a bit better now... I was mounting the zgcc image to the wrong location, and that seemed to be the source of the problems. Now in... um... a few hours I should know if everything worked. Thanks again!
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

stuffman

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • http://www.dylanpowell.net/zaurus
Xcas
« Reply #13 on: October 09, 2005, 10:51:56 pm »
Ok... a few more problems here.

Before I compile the TiEMU executable, I have to compile a few of the libraries (libticables-3.9.6, libticalcs-4.6.1, and libtifiles-0.6.6). libticables has to be compiled first (as the other two depend on it), and it goes without a hitch. libtifiles also compiles correctly (libticalcs depends on it, so it has to go second). When I try to compile libticalcs, ./configure goes well well, but when I do make, I get an error (with the file cmd73.c- says "'CALC_TI84P' undeclared"). When I look at cmd73.c, CALC_TI84P is clearly defined with a #declare statement before the line numbers it gives in the errors. Compiling natively on my linux box, everything comes out just fine and dandy.

Any insight to this? I haven't started the X server to conserve memory, and I've even tried setting up a swap file, but still no luck. Also, I've had to manually change the PKG_CONFIG_PATH to include the path to the .pc files for the other libraries (I had to do the same thing on my linux box, but again, everything worked just fine). You guys have been lots of help so far, and I really appreciate it.
[span style=\'font-size:8pt;line-height:100%\']SL-C860 Running pdaXrom 1.1.0beta1.
5GB Seagate ST-1 Microdrive from Rio Carbon, Asst. Other CF Cards.
512MB Sandisk SD.
AmbiCom WL1100C-CF WiFi Card.
Some GPS Card I Can't Remember...
Palm Tungsten Retractable Stylus (If You're Not Using These, You're Missing Out!).
[/font][/span]

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Xcas
« Reply #14 on: October 10, 2005, 01:31:00 am »
hmm, is this the first error? can you paste a bit of the compilation output?

have you installed the libraries?
have you double-checked the PKG_CONFIG_PATH?
perhaps you can specify the location of the .h and .so using ./configure --with-include-dir=/../include --with-lib-dir=/../lib/ ?
SLC-860 cacko / senao wifi