Help - Search - Members - Calendar
Full Version: Compiling Remind For Pdaxrom
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
kleinerp
I am new to Zaurii and pdaXrom but eager to learn. Can anyone tell me what steps I have to go through to get remind (http://www.roaringpenguin.com/penguin/open_source_remind.php) running on my C860? Can I just run ./configure, make, and make install on the Z? Do I need to compile the package first before transferrin it to Z? I am running OSX - how do I compile remind for the Z on this platform? I've only ever installed Unix apps via Fink.

Thanks in advance
Andy.
pgas
The cross compiler provided is for linux x86 only: you will not be able to compile on OSX.

You have to use the native compiler on the Z (ie install the zgcc.img).
kleinerp
QUOTE(pgas @ Mar 25 2005, 04:12 AM)
The cross compiler provided is for linux x86 only: you will not be able to compile on OSX.

You have to use the native compiler on the Z (ie install the zgcc.img).
*


OK...I downloaded zgcc-3.3.2.img onto my SD card and then did
#mkdir -p /opt/arm/3.3.2-vfp
#mount -o loop,ro -t cramfs /mnt/card/zgcc-3.3.2.img /opt/arm/3.3.2-vfp

I then did #export PATH="$PATH:/opt/arm/3.3.2-vfp/bin"

When trying to run ./configure from the folder I unpacked Remind into I get

checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

What am I doing wrong?
pgas
What version of pdaxrom are you using?
Did you install the image corresponding to your release?

Can you try to compile a simple helloworld by hand to get a more meaningfull message (or look inside config.log)?

My RC9.1 zgcc-3.3.2.img expect to be mounted in /opt/native/arm/3,3,2-xscale-softvfp.
Maybe the problem is that gcc expect something different from /opt/arm/3.3.2-vfp?

Look inside /etc/rc.d/rc.sysinit you should see a mkdir and a mount for zggc-3.3.2.img if it is found in /home/root. You will see the path it expects.
Blaise
Hi kleinerp,
Since a few days, I try to compile for (in) Zaurus (...headache ahead...). What is the C860 ? A Sharp device ? another brand ? What rom is it flashed with ?
I have a Z sl-5500 with OpenZaurus-3.5.2 + OPIE-1.2 .
I have managed to setup ZGCC inside and can now compile natively on the Z. It seems that the actual ZGCC delivers gcc-2.95.2, and I think that the actual common gcc for PC (and Mac ?) is gcc-3.x .I don't know if this a big difference, it must depends of the source you want to compile ? A simple "hello-Zaurus" source compiles and runs fine, but I am now trying to compile a more complex source that depends on several graphic library, and although it's compiling fine, it doesn't execute as it should. It isn't clear yet if it is because of the gcc-2.95.2 or something else, I am trying to get ride of all the errors one by one...

I have been looking a lot for ways different ways to compile for Zaurus, and have reach the QuantumSTEP project. Have you heard about it ? It seems to be a MacOSX platform that can cross-compile for Zaurus. See those pages :
http://www.dsitri.de/wiki.php?page=myPDA-Zaurus-Edition
http://www.dsitri.de/wiki.php?page=myPDA-Zaurus-Edition

You said you had MacOSX, that's right ? This QuantumSTEP stuff looks great at first glance, it doesn't seem to be well known, or I have missed it on all the Zaurus pages I wandered through. But unfortunately, I have... NO ... MacOSX :-[ . So I can't help you on that :-(
I hope you'll find your compilation tool soon. Good luck !
pgas
Blaise the SLC-860 is a sharp zaurus. For a presentation of the different models
(except the newer 3000 & 1000) see in french: http://www.zaurusfr.org.

This sub-forum is about pdaxrom a rom wich uses X as it graphical environement. This rom is up to know only for the SL-C-700 750 760 860.

The zgcc you have installed is probably the one for the sharp rom. The orignal roms (sharp) are build with gcc-2.95.2.

Though you state you use OpenZaurus-3.5.2 + OPIE-1.2,
This rom is built with gcc-3,2 IIRC and doesn't use the same graphics libraries as the sharp roms (opie instead of qtopia): this is probably why more complex applications
won't run (unless you try to run them with opie-compat)

I suggest you try to use the gcc provided in the openzaurus feed instead.
Blaise
pgas, you seem quite skilled with compilation, nice to hear from you. Sorry for kleinerp if I'm here a bit off-topic. I'll make it short and begin new thread if needed. I haven't used opie-compat for zgcc to compile, it didn't complain about it. I had to install oz-compat and opie-sh to install opera, I don't know if it is related. I'll stick to zgcc (gcc-2.95.2) for a while see if i can debug my app. I already tryied to compile natively with gcc-3.x (installed a lot of gcc stuff (cpp, libstdc,... ) ) but never managed to have the compiler runing fine. See the threads :
How To Setup Native Onboard Development On 3.5.2, using new development section of oz feed
and
c Compiler Cannot Create Executable", What's up with this error?
You said "(unless you try to run them with opie-compat)" . How do you "run" a application with opie-compat (my app is a cgi executable for apache...).
What about quantumSTEP for kleinerp ?
pgas
I'm not skilled at all, and don't know much about oz opie-compat and the rest.

I don't know exactly what is inside the zgcc you are using. But i think that as the libraries and gcc versions are different between you zgcc and your system, This might cause trouble.
OZ-compat I think is a set of libaries from the sharp-rom so that applications like opera can still run in OZ. I think you need to setup come env variables like LD_LIBRARY_PATH or something so that opera uses these libraries.
So maybe by doing the same thing you would be able to run your application build with zgcc.....


I don't know how to solve your problem with the native onboard development
(though the problem maybe that gcc may not like symbolic link but might wants the real file in the right place ie in /usr/ something and not in /mnt/card/usr something). so installing everything in / instead of /mnt/card might help....

I'm sorry but I don't think I can help you much more.........
kleinerp
QUOTE(pgas @ Mar 26 2005, 08:17 AM)
What version of pdaxrom are you using?
Did you install the image corresponding to your release?

Can you try to compile a simple helloworld by hand to get a more meaningfull message (or look inside config.log)?

My RC9.1 zgcc-3.3.2.img expect to be mounted in /opt/native/arm/3,3,2-xscale-softvfp.
Maybe the problem is that gcc expect something different from /opt/arm/3.3.2-vfp?

Look inside /etc/rc.d/rc.sysinit you should see  a mkdir and a mount for zggc-3.3.2.img if it is found in /home/root. You will see the path it expects.
*



Thanks pgas. I placed zgcc-3.3.2.img in /home/root and rebooted my C860. The img file is automatically mounted now at /opt/native/arm/3,3,2-xscale-softvfp.

So I went back to my Remind folder and typed ./configure. It starts to compile and lots of messages scroll by......the recurring one being:
error while loading shared libraries: libpcre.so.0: cannot open shared obj
ect file: No such file or directory

I'm guessing I'm missing the libpcre library? How do I install that? The message about "ect file: No such file or directory".....is that a typo? should it say etc?
pgas
install the pcre-xxx from the feed correspondig to you release.


*edit: oh I see the ect message thing!

It is a word-wrapping problem, read:

error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
SSG
QUOTE(pgas @ Mar 27 2005, 08:17 PM)
install the pcre-xxx  from the feed correspondig to you release.

what is "message about "ect file: No such file or directory"" ?
*


pcre user grep in /usr/bin
possible change $PATH first /bin:
kleinerp
QUOTE(pgas @ Mar 27 2005, 12:17 PM)
install the pcre-xxx  from the feed correspondig to you release.


*edit: oh I see the ect message thing!

It is a word-wrapping problem, read:

error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
*


I've installed the pcre ipk and have now been able to compile remind on my Z smile.gif Many thanks for those that have helped.

The Remind documentation states that if you have TCl/Tk (wish 4.1 or hoigher) installed and are running X Windows that you can type wish ./build.tk followed by make install. I have installed the tcl and tk packages from the RC9 feed but when I type wish .build.tk get:
bash: wish: command not found.

What gives?
pgas
either:
- wish is not included in the package
- wish is not in the path: export PATH=/path/to/wish/:$PATH
- wish can also come with a number version like wish83 instead of just wish
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.