Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cross compilers
« previous next »
  • Print
Pages: [1]

Author Topic: Cross compilers  (Read 5746 times)

Offline 007quick

  • Member
  • *
  • Posts: 70
Cross compilers
« on: February 13, 2007, 11:48:13 PM »
Hello, I am using mandriva linux and ran the /tools/rockboxdec.sh script shell but it says that I am to add user/local/bin/arm-elf...... to the "Path"
What is the "Path" and how do I add that directory to the "Path"
Thx in advance! ;)

(Man you are quick Llorean!)
« Last Edit: February 13, 2007, 11:50:54 PM by 007quick »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9370
Re: Cross compilers
« Reply #1 on: February 14, 2007, 12:15:52 AM »
Check this:

http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler

Under the building gcc, section.  Should work.
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #2 on: February 14, 2007, 12:07:56 PM »
YAY I DID IT! :D :D :D
THANK YOU VERY MUCH!
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #3 on: February 14, 2007, 12:27:20 PM »
Ok here is where it stands.
Using the directions from the cygwin directions i am able to temporarily specify a "Path"
My Profile file is different than that of what they show as an example (expected)
Here is my profile file (sorry if it is big) Could someone point out were I am supposed to add the line that the cygwin directions tell you too? That would be great!
# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
    PATH="$PATH:/usr/X11R6/bin"
fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
    PATH=$PATH:/usr/games
fi

umask 022

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N

export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE

for i in /etc/profile.d/*.sh ; do
   if [ -x $i ]; then
      . $i
   fi
done

unset i
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9370
Re: Cross compilers
« Reply #4 on: February 14, 2007, 12:29:21 PM »
I actually have never bothered to edit the statup script, but I believe you could just add the export command you typed into the command line anywhere in that file (well outside of any loops and ifs would work best).
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #5 on: February 14, 2007, 12:31:30 PM »
I will try that in about an hour or so! Thanks for the quick response!
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Cross compilers
« Reply #6 on: February 14, 2007, 01:24:55 PM »
That's the root profile (/etc/profile) - I wouldn't edit that at all, it will be overwritten the next time Mandriva decide to issue an update to it.

Just create yourself a .profile file in your home directory :  /home/"whatever your username is"

and put :

Code: [Select]
#!/bin/bash
PATH=/usr/local/arm-elf/bin:$PATH
export PATH

in it
Logged

Read The Manual Please

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #7 on: February 14, 2007, 03:08:47 PM »
Ok, I tried makeing a .profile file with what you said but it didn't work.
I did find a .bash_profile file and I put your line into it but here it is with your stuff in. (It didn't work) Could someone look at it to see if it is correct or if this is even the right file to edit? Is there something else that I need to do after I edit it?
Thankyou
# .bash_profile

# Initialize keychain if needed
if [ -r $HOME/.ssh/identity -o -r $HOME/.ssh/id_dsa -o -r $HOME/.ssh/id_rsa ]; then
    if [ ! -d $HOME/.keychain ]; then
           keychain
        fi
fi

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

#!/bin/bash
PATH=/usr/local/arm-elf/bin:$PATH
export PATH

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #8 on: February 14, 2007, 04:15:35 PM »
I do beleive that I figured it out
Thankyou for all your help!
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Cross compilers
« Reply #9 on: February 15, 2007, 03:59:35 AM »
Care to enlighten us with what was wrong with our instructions ?
Logged

Read The Manual Please

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3555
  • creature
Re: Cross compilers
« Reply #10 on: February 15, 2007, 05:39:41 AM »
why don't you just use a .bashrc? It get sourced by the common startup script, with this lines:
Code: [Select]
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi
(unless your common startup script is behaving different which shouldn't be the case.
Logged

Offline 007quick

  • Member
  • *
  • Posts: 70
Re: Cross compilers
« Reply #11 on: February 15, 2007, 11:24:59 PM »
All i did was put the lines you told me to in the bash_profile file with the $PATH after the PATH=
Fixed up everything!
Quote from: GodEater on February 14, 2007, 01:24:55 PM


Code: [Select]
#!/bin/bash
PATH=/usr/local/arm-elf/bin:$PATH
export PATH
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cross compilers
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.134 seconds with 20 queries.