Author Topic: Cross Sdk Runsdk.sh Problem ...[solved]  (Read 1968 times)

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Cross Sdk Runsdk.sh Problem ...[solved]
« on: May 08, 2007, 03:40:51 am »
Hi all,

ive been trying to run the runsdk.sh script to get the cross sdk going, but it doesnt seem to be working.  im doing this under puppy OS 2.13, i may try some other os's...

basically i run it and get:

sh-3.00# ./runsdk.sh
Type exit for leave arm-cacko-linux-gnu cross environment.
#

but none of the export variable have changed ??

eg:

# echo $PATH
/usr/lib/qt/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin
#
# echo $LD_LIBRARY_PATH
/usr/lib/qt/lib:/usr/lib/mozilla:/lib:/usr/lib:/usr/X11R7/lib:/root/my-applications/lib
#
# echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig
#
etc, etc...

but if i:

# export PATH=/opt/cross/arm/3.4.5-sa1100-softvfp/bin:$PATH
# echo $PATH
/opt/cross/arm/3.4.5-sa1100-softvfp/bin:/usr/lib/qt/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin
#

and "tab" responds to part command "finish's"

ive checked the permissions of my /etc/profile and are rw for all,

how can i get this script working, ??
« Last Edit: May 08, 2007, 09:30:56 pm by telemetric_au »
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Cross Sdk Runsdk.sh Problem ...[solved]
« Reply #1 on: May 08, 2007, 04:05:00 am »
Quote
Hi all,

ive been trying to run the runsdk.sh script to get the cross sdk going, but it doesnt seem to be working.  im doing this under puppy OS 2.13, i may try some other os's...

basically i run it and get:

sh-3.00# ./runsdk.sh
Type exit for leave arm-cacko-linux-gnu cross environment.
#

but none of the export variable have changed ??

eg:

# echo $PATH
/usr/lib/qt/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin
#
# echo $LD_LIBRARY_PATH
/usr/lib/qt/lib:/usr/lib/mozilla:/lib:/usr/lib:/usr/X11R7/lib:/root/my-applications/lib
#
# echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig
#
etc, etc...

but if i:

# export PATH=/opt/cross/arm/3.4.5-sa1100-softvfp/bin:$PATH
# echo $PATH
/opt/cross/arm/3.4.5-sa1100-softvfp/bin:/usr/lib/qt/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin
#

and "tab" responds to part command "finish's"

ive checked the permissions of my /etc/profile and are rw for all,

how can i get this script working, ??
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160757\"][{POST_SNAPBACK}][/a][/div]

depending on your shell, source runsdk.sh would do or use a .
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Cross Sdk Runsdk.sh Problem ...[solved]
« Reply #2 on: May 08, 2007, 09:27:38 pm »
yes, the first line of runsdk.sh is . /etc/profile, the problem is that its setting the variables and they just get set-back/lost for some reason. i tried it in DSL, and if i was not in root it worked but i needed to be in root to compile so no use to me... i imagine its got something to do with these mini-cut-down distro's and how they handle shells and users... as i have had it work properly in ubuntu.

either way on the up and up, i made up a work around script which solves the problem and i successfully used it to cross compile tcl last night  

it starts up bash with the contents/commands of runsdk.sh as an init-file ,

** those using it: if your not using the 3.4.5-sa1100-softvfp sdk, you just have to edit both the files to reflect your sdk location.


Hayden.
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site