Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Blaise

Pages: [1] 2 3
1
Zaurus - pdaXrom / Native -- C++ / Qt
« on: March 28, 2005, 01:46:30 pm »
Hi Scott
I've been trying hard to native compile on a Z sl-5500 the last days. Finally, I managed to have ZGCC working. It compiles fine with a test "hello world" script. But trying to compile a quite more complex program, I get strange errors at "make" time like :
 undefined reference to '__ctype_b'
 undefined reference to '__ctype_tolower'
I am far from a C-guru. I found a trick to get ride of this error, but finally, my program doesn't run ok. What I have understood is that these errors happen because of missing or bad versions of the compiler libraries (libc ? other ?) (seems that zgcc compiler is version 2.95.2).
Before, I had tryed also the dev_img-1.5 tool but could not mount the cramfs. But now, with my zgcc experience, I am going to go back to it, see if I get better results than with zgcc.
good luck !

2
Software / Help On Installing Apache
« on: March 26, 2005, 04:36:07 pm »
I found it: delgroup and deluser :

#delgroup www-data
#deluser www-data
deluser: www-data: User could not be removed from /etc/shadow

#ipkg -d sd install apache_1.3.29-1_arm.ipk
Installing apache (...) to sd...
Configuring apache
#ipkg-link mount /mnt/card

#ipkg info apache
Package: apache
Version: 1.3.29-1
Depends: libdb4.1, libexpat1, apache-common
Status: install user installed
Architecture: arm
Installed-Time: 1115452xxxxxxx

Very nice !  

3
Software / Help On Installing Apache
« on: March 26, 2005, 04:06:07 pm »
I thought I had managed to install apache a few days ago. The server is serving basic html pages ok (text-buttons). I haven't try with more complex pages (images, links). But I can't run properly a cgi that I compiled, I don't know yet either it is because of apache orsomething else (compilation trouble ?).
However, I'm puzzling about apache install. lardman noticed it to me but I did not pay that much attention, believing apache was fine because simple html pages were served.
For apache, I have to install apache-common before, that runs fine :
#ipkg info apache-common
Package: apache-common
Version: 1.3.29-1
Depends: libdb4.1, libexpat1
Status: install user installed
Architecture: arm
Installed-Time: 1115452xxxxxxx

Now, when I install apache, I get this error :
#ipkg -d sd install apache_1.3.29-1_arm.ipk
Installing apache (...) to sd...
Configuring apache
addgroup: www-data: group already in use
postinst script returned status 1
ERROR: apache.postinst returned 1
#ipkg-link mount /mnt/card

And ipk info gives :
#ipkg info apache
Package: apache
Version: 1.3.29-1
Depends: libdb4.1, libexpat1, apache-common
Status: install user unpacked
Architecture: arm
Installed-Time: 1115452xxxxxxx

Status: install user unpacked  -->  ? ? ? What does that mean, unpacked ? Doesn't mean installed, does it ? Then how can I have apache well installed ? As the ipkg install is screaming about www-data group already in use, how could I remove this group before installing apache to see if it installs better ? (not familiar with user and group managing, moreover on Z).
tks in advance

4
Zaurus - pdaXrom / Compiling Remind For Pdaxrom
« on: March 26, 2005, 02:50:55 pm »
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 ?

5
Zaurus - pdaXrom / Compiling Remind For Pdaxrom
« on: March 26, 2005, 01:46:32 pm »
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 !

6
OpenZaurus/Opie/Qtopia / Why Zgcc.sh Doesn't Append Path ?
« on: March 26, 2005, 01:30:44 am »
In order to setup zgcc, there is a script to run called zgcc.sh that appends some pathes and makes some links. When I run it (./zgcc.sh) the pathes aren't appened but the links are made. How come ?
I copied this file elsewhere and appened at the begining of the file this line :
#!/bin/sh
But it doesn't work either.

The only way I have found to have a nice zgcc setup is to type all the zgcc.sh file in a console, which takes quite a long time on the Z keyboard (!!!).

Anyone knows how I could run this file (OZ-3.5.2, OPIE-1.2, I think sh is runing and not bash). ?
Tks
This is the original zgcc.sh file delivered by ZGCC :

export GCC_EXEC_PREFIX=/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/
export COMPILER_PATH=/mnt/card/.zgcc/bin:/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/
export CPATH=/mnt/card/.include/
export LIBRARY_PATH=/mnt/card/.zgcc/lib/:/mnt/card/.zgcc/lib/gcc-lib/arm-linux/2.95.2/:/lib/:/home/QtPalmtop/lib/
export CPLUS_INCLUDE_PATH=/mnt/card/.include/g++-3/
PATH=/mnt/card/.zgcc/bin:$PATH
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/card/.zgcc/lib
export LD_LIBRARY_PATH
TMAKEPATH="/mnt/card/.zgcc/tmake/lib/sharp-onboard/"
export TMAKEPATH
ln -sf /lib/libc.so.6 /usr/lib/libc.so
ln -sf /lib/libm.so.6 /usr/lib/libm.so
ln -sf /mnt/card/.zgcc/bin/libstdc++-3-libc6.1-2-2.10.0.so /home/QtPalmtop/lib/libstdc++-libc6.2-2.so.3

7
OpenZaurus/Opie/Qtopia / Where To Find Libtiff-devel
« on: March 26, 2005, 12:04:30 am »
At ipkgfind, I can see libtiff3g.ipk , but I also need the devel package to compile an application. Does anybody know where I could find a libtiff.ipk and its related devel ipk ?
Tks

8
Angstrom & OpenZaurus / Problems Installing Opera
« on: March 25, 2005, 10:31:21 pm »
After a system crash, I reflashed the whole thing( OZ-3.5.2 + OPIE-1.2). Then I tryed to install opera first (always opera_sl-5x00-7.30.9965_arm.ipk) following the steps I wrote here (btw, I forgot to mention I had to install opie-sh at first, before oz-compat). And, it did not work ! Always the same error : undefined symbol: _7QString.shared_null.

I reflashed the whole thing and installed apache (libdb + libexpat1 + apache-common + apache), then install opera. Reboot, and now Opera is running fine !

So I think this opera ipk must need libdb4.1_4.1.25-10_arm.ipk and/or libexpat1_1.95.6-6_arm.ipk .
Try to install them before installing opera and it should run. You shouldn't have to install apache for opera or that will be very strange (?).

Note : I had to install libdb and libexpat1 with the -force-depends flag because if not, it was complaining about libgcc1 version :
#ipkg -d sd -force-depends install libdb4.1_4.1.25-10_arm.ipk
#ipkg-link mount /mnt/card
#ldconfig
#ipkg -d sd -force-depends install libexpat1_1.95.6-6_arm.ipk
#ipkg-link mount /mnt/card
#ldconfig

Hope it works for you.

9
OpenZaurus/Opie/Qtopia / Bison Install Problem
« on: March 24, 2005, 05:18:07 pm »
Shame at me !
I dl bison_1.875-r0_arm.ipk at OpenZaurus / Download / 3.5.2 / feed / devel / and installed it without problem !        
Now, building MapServer, I got some dependencies mistakes and again some "undefined reference to '__ctype_b'" errors. I have to clear out wether it's due to my dev Zbox or to MapServer files.
Anyway, end of thread !  
Blaise

10
OpenZaurus/Opie/Qtopia / Bison Install Problem
« on: March 24, 2005, 04:04:10 pm »
ok, i'm riding this thread alone ! Anybody experienced with zgcc and bizon/yacc around ? ? ?
there is a kind of bison ipk in my ipkg list, but I don't understand weither it's installed (build in ? unremovable ?) or not :
#ipkg info bison
Package: bison
Version: 1:1.35-3
Depends: libc6 (>= 2.2.4-')
Status: install prefer,user not-installed       <---- what does that mean ? ?
ARchitecture: arm

ipkg remove bison is useless :
#ipkg remove bison
No packages removed

I couldn't install any bison ipk. Tryed byacc without success as well (...). Went download at bison-gnu and ./configure / make from version 2.0 down to 1.25 (Z warms....)

---- From 2.0 down to 1.50, I got this kind of error at build (#make) :
../lib/libbison.a(quotearg.o): In function 'quotearg_buffer_restyled':
/mnt/cd/ms/bison/bison-1.75/lib/quotearg.c:522:undefined reference to '__ctype_b'
...
collect2: ld returned 1 exit status

---- From 1.35 down to 1.29, I got this kind of error at configure (#./configure) :
config.status: creating test/xxx
mv: unable to preserve ownership of 'xxx/xxx': Operation not permitted
config.status: creating srct/xxx
mv: unable to preserve ownership of 'xxx/xxx': Operation not permitted

---- 1.28 at #./configure gave :
linking ./intl/libgettext.h to intl//libintl.h
ln: intl/libintl.h: Operation not permitted
configure: error: can not link intl/libintl.h to ./intl/libgettext.h

---- 1.27 configured well, but at building, screamed :
files.o: In function 'openfiles':
/mnt/cf/ms/bison/bison-1.27/lex.c:274: the use of 'mktemp' is dangerous, better use 'mkstemp'
lex.o: In function:
/mnt/cf/ms/bison/bison-1.27/lex.c:356: undefined reference to '__ctype_b'
...
collect2: ld returned 1 exit status

---- 1.25 at building :
gcc: LRO.o: No such file or directory
make: *** [bison] Error 1

(I did not try 1.26a :-)
There were also some 'malloc' error close to the begining...

I must be missing something. Bison should ride in Z, isn't it ? ? ? Then how ? ?  ?    ? Can it really be linked to zgcc ?

I found some tricks related to the errors I got. But I have to write in /mnt/card/.include which is, now,  cramfs mounted. I can't write in this directory, is cramfs write-only, as squashfs ?
So if I want to write into .include, maybe I should install zgcc without cramfs ?
 I'm gonna try. I have to reflash the whole thing... by the way, which OPIE rom should I better take to work with native compilation ? 32-32, or 64-0, or others ? I've not yet really understand how the memory is shared, sorry about that.
Are there any other better suited roms for native zgcc develpment than OZ-352 / OPIE-12 ?
tks - blaise

11
OpenZaurus/Opie/Qtopia / Bison Install Problem
« on: March 24, 2005, 08:46:41 am »
No idea to help me install bison_1.35-3_arm.ipk ? I'm still trying.

I looked also at yacc because this is where the last build fails :
make: yacc: Command not found

and I found byacc_1.9_arm.ipk
I installed it and now, for mapserver :
#make clean
#./configure --with-good-options...        config passes ok
#make                                                  make fails with :
yacc -p msyy -d -omapparser.c mapparser.y
usage: yacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename
make: *** [mapserv.c] Error 1    

Does that mean that the file mapserv.c does not provide the correct syntax for byacc.
Will I have to update this mapserv.c to adjust to byacc syntax ?    ?
Is there any other yacc ipk around ?
I'm going to try again bison ipk install, but could it work if I build bison from source ? In that case which version should I take ? The last one (2.0) or an older one (like 1.35, 1.50, ...)  
Any idea welcomed  
Blaise

12
OpenZaurus/Opie/Qtopia / Bison Install Problem
« on: March 24, 2005, 03:42:23 am »
Finaly I managed to have zgcc working on Z sl-5500 with OZ-3.5.2 and OPIE-1.2 for native compilation of MapServer. It seems that I solved all libraries dependencies (freetype, libpng, libjpeg, gd); the "./configure" command ends ok. But the "make" command fails with :
#make
... . .
yacc -p msyy -d omapparser.c mapparser.y
make: yacc: Command not found
make: *** [mapparser.c] Error 127
#

Yacc seems related to Bison. I don't understand wether I have bison installed or not :
#ipkg info bison
Package: bison
Version: 1:1.35-3
Depends: libc6 (>= 2.2.4-')
Status: install prefer,user not-installed     <---- what does that mean ? ?
ARchitecture: arm

I dl "bison_1.35-3_arm.ipk" but when I try to install it, I get :
#ipkg install /mnt/cf/ms/bison_1.35-3_arm.ipk
Installing bison (1:1.35-3) to sd...
sh: /tmp/ipkg-ey3VZY/bison-PbK06y/preinst: not found
preinst script returned status 127
Aborting installation of bison
An error has occured, return value: 1.

Each time I retry to install bison, it doens't find the preinst in another /tmp/ipkg-xxxx directory.
I looked in /tmp but there is no directory like that, and if I create one, then when I retry to install bison, the name it looks for has changed.

Is Bison that difficult to install ? It seems strange. I'm geting closer and closer to my aim but now, I'm stuck with this "little" thing. Any suggestion for me to install Bison ?

btw: I think I have bison-dev ok :
#ipkg info bison-dev
Package: bison-dev
Version: 1.875-r0
Status: install user installed
Architecture: arm
Installed-Time: 11116542551
but it doesn't seem enough for the make.

Tks
Blaise

13
OpenZaurus/Opie/Qtopia / Dev_img-1.5 : Block Device Required
« on: March 23, 2005, 09:42:18 pm »
well..., now I'm trying zgcc and I had the same "Block device required" error when mounting cramfs part. Finaly, I found the solution in this thread :
Cramfs No Supported in OZ 3.5.2 :5
Thanks Hrw, now I can mount cramfs part with OZ-3.5.2.
I'll go on with zgcc see if I can have it work.
Blaise

14
OpenZaurus/Opie/Qtopia / Compilation Troubles
« on: March 22, 2005, 12:24:58 pm »
Quote
It probably won't be happy running/creating binaries for OZ as we use a later version of libc (and possibly GCC - not sure what version there is in there).
Ha ? I don't think I understand it all, but according to you, dev_img-1.5 won't make it on OZ-3.52 and OPIE-1.2 rom ?
 Ok, anyway, I tryied hard but can't manage to install dev_img-1.5.
I'm a bit lost now, but still willing to compile natively, as some people said it's possible. I'm going to try other roms and other develoment tools.
Any suggestion welcomed, 'f course.
blaise

15
OpenZaurus/Opie/Qtopia / Dev_img-1.5 : Block Device Required
« on: March 21, 2005, 07:19:20 pm »
This is what is going on :

I flash a fresh rom, then follow the instructions :

Setup instructions:

--------1. Unzip and copy contents of the file onto CF or SD card.
done :
#ls /mnt/card
Documents
dev_img-1.5
image_setup.sh
usr


--------2. Run image_setup.sh script as root:
image_setup.sh full_path_to_dev_image mount_point
where "mount_point" is any folder, for exmaple /mnt/dev
( I change the first line of /mnt/card/image_setup.sh from #!/bin/bash to #!/bin/sh )
#cd /mnt/card
#./image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
Setting mount point /mnt/dev...
Mounting image /mnt/card/dev_img-1.5...
mount: Mounting /mnt/card/dev_img-1.5 on /mnt/dev failed: No such file or directory
Failed to mount /mnt/card/dev_img-1.5 on /mnt/dev

A link has been created in /mnt :
#ls -l /mnt
...
dev -> /home/zaurus/develop
...
but /home is empty. (new flashed rom ?)
I add a new "zaurus" user :
#adduser zaurus
Then, delete the last line added in /etc/fstab by the preceeding aborted install.
Then try to install again :
#cd /mnt/card
#./image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
Setting mount point /mnt/dev...
Mounting image /mnt/card/dev_img-1.5...
mount: Mounting /mnt/card/dev_img-1.5 on /mnt/dev failed: Block device required
Failed to mount /mnt/card/dev_img-1.5 on /mnt/dev

----------3. When script finishes, relogin as zaurus
--> :-[

This is the last line of /etc/fstab :
/mnt/card/dev_img-1.5 /mnt/dev cramfs loop,noauto 0 0
Any idea ?
blaise

Pages: [1] 2 3