OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dino on August 04, 2004, 10:34:10 am
-
I just downloaded the onboard development image here:
http://www.zaurususergroup.com/modules.php...Developer_Image (http://www.zaurususergroup.com/modules.php?op=modload&name=UpDownload&file=index&req=viewdownloaddetails&lid=207&ttitle=Developer_Image)
The install script was not working for me so I did the following:
1) added "/mnt/cf/dev/dev_img-1.5 /root/develop cramfs noauto,loop 0 0" to /etc/fstab
2) typed "mount /root/develop"
At this point all is well and I can see the contents in /root/develop.
3) added ":/root/develop/bin" to /etc/profile. The line now looks like:
PATH="$OPIEDIR/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/root/develop/bin
The problem is when I type "compiler_setup.sh" it responds "not found".
If I type "echo $PATH", /root/develop/bin is there.
If I type "cat /root/develop/bin/compiler_setup.sh" the file is found and displayed.
I could just type the full path name and go from there, but not having /root/develop/bin in my path may create problems later.
Any ideas?
Thanks!
-
Check execute permissions on the script?
If it's not executable are you sure it's not supposed to be sourced rather than run?
Si
-
I think I know what the problem is. The first line is:
#! /bin/bash
In OZ I find that scripts need to be changed to
#! /bin/sh
I had to copy the script (named it compsetup.sh) because the cramfs would not let me make changes.
I edited the copy and now I get:
./compsetup.sh: 12: Syntax error: "(" unexpected
Line 12 of the script is:
function mklink()
{
}
Is this a sh verses bash problem?
Thanks,
-
Does /bin/bash exist on OZ (I don't have my Z in front of me).
If it's not there then create a symlink to /bin/sh - easier than modifying lots of scripts.
Si
-
The setup script was written for Sharp based ROM. It needs some tweaking to run on OZ properly. It's not that hard, but since I'm not using OZ, I can't do that...
-
The setup script was written for Sharp based ROM. It needs some tweaking to run on OZ properly. It's not that hard, but since I'm not using OZ, I can't do that...
What kind of things do we need to do to get dev_image 1.5 working on OZ (3.2 or 3.3.5)
-
OZ doesn't have bash installed... "sh" is the built in busybox shell. It uses a slightly different syntax for defining functions in scripts.
Just replace "function mlink {... }" with "mlink { ... }" (i.e. just get rid of the word "function" in front of it).
-
OZ doesn't have bash installed... "sh" is the built in busybox shell. It uses a slightly different syntax for defining functions in scripts.
Just replace "function mlink {... }" with "mlink { ... }" (i.e. just get rid of the word "function" in front of it).
did that and now it does seem to be working (very preliminary check though). I also change the DEVELOP variable to /root/develop (OZ doesn't have /home/Zaurus/develop).
I pointed the 'echo "export PATH=\$PATH:$2/bin">>/home/Zaurus/.profile' to 'echo "export PATH=\$PATH:$2/bin">>/ect/profile'
and took out the other export line.
I also stopped the script from running the compiler setup script, so I could modify it.
I took out the 'function' labels before the functions, and it seemed to work.
I've not done anything yet, but perl responds and I'm going to try a compile soon
sl-5500 OZ 3.3.5
-
progress on dev_image for OZ
after initial modifications to the setup scripts I've also added a few things to the /etc/profile
I mounted the dev_image in a loop back deview on /root/develop as well as uncompressing tmake from trolltech and making a simlink to /root/tmake
-added
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/develop/lib
PATH=$PATH:/root/develop/bin:/root/tmake/bin
CPATH=/root/develop/include
LANG="en-US"
LC_ALL="C"
TMAKEPATH=/root/tmake/lib/linux-g++
then down in the export line add ' CPATH LANG LC_ALL TMAKEPATH'
this will cause the terminal app to be setup for development any time you open it, if you want you could make the changes in a script and run it before development.
with this setup i've been able to compile a simple c++ file
#include <iostream.h>
main()
{
cout << "hello world" << endl;
return 0;
}
however I get an error from ld saying that it can't find lqt at the end of the compiling process for a qt app.
I've searched my Z high and low and I can't find it either.
Any help on this would be great!