OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Xcas, Getting it to Work...
stuffman
post Oct 4 2005, 11:04 AM
Post #1





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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.
Go to the top of the page
 
+Quote Post
Chero
post Oct 4 2005, 11:49 AM
Post #2





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



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. wink.gif

Chero
Go to the top of the page
 
+Quote Post
jfv
post Oct 4 2005, 04:50 PM
Post #3





Group: Members
Posts: 438
Joined: 24-June 03
Member No.: 202



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
Go to the top of the page
 
+Quote Post
stuffman
post Oct 4 2005, 06:00 PM
Post #4





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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!
Go to the top of the page
 
+Quote Post
Chero
post Oct 4 2005, 09:07 PM
Post #5





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



Good luck !!!
Go to the top of the page
 
+Quote Post
stuffman
post Oct 6 2005, 09:28 AM
Post #6





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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.
Go to the top of the page
 
+Quote Post
Chero
post Oct 6 2005, 10:02 AM
Post #7





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



QUOTE(stuffman @ Oct 6 2005, 06:28 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.
*


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
Go to the top of the page
 
+Quote Post
pgas
post Oct 6 2005, 11:04 AM
Post #8





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



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
./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)
Go to the top of the page
 
+Quote Post
stuffman
post Oct 6 2005, 12:15 PM
Post #9





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



QUOTE(Chero @ Oct 6 2005, 01:02 PM)
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
*



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 sad.gif
Go to the top of the page
 
+Quote Post
stuffman
post Oct 8 2005, 10:44 PM
Post #10





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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.
Go to the top of the page
 
+Quote Post
pgas
post Oct 9 2005, 12:20 AM
Post #11





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



for the native sdk you don't need a special script.

you also only need to issue
CODE
./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
mount -o loop zgcc-3.4.4.img /opt/native/arm/3.4.4-xscale-softvfp

(you might need to create the dir before).
Go to the top of the page
 
+Quote Post
lardman
post Oct 9 2005, 05:44 AM
Post #12





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
stuffman
post Oct 9 2005, 02:11 PM
Post #13





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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!
Go to the top of the page
 
+Quote Post
stuffman
post Oct 9 2005, 06:51 PM
Post #14





Group: Members
Posts: 104
Joined: 27-May 04
From: State College, Pa.
Member No.: 3,471



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.
Go to the top of the page
 
+Quote Post
pgas
post Oct 9 2005, 09:31 PM
Post #15





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



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/ ?
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th November 2014 - 03:16 PM