LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Need help installing a Cross compiler toolchain (https://www.linuxquestions.org/questions/ubuntu-63/need-help-installing-a-cross-compiler-toolchain-4175551567/)

kazzarian 08-24-2015 01:53 AM

Need help installing a Cross compiler toolchain
 
I have a chinese board that has i.MX 283 on board.

I also have the toolchain and the QT Environment which was supplied by them

Since i'm new to all of this they have given step by step procedure to install things.

However, i'm facing a problem in the last step. All the steps are listed below:

The file "gcc-4.4.4-glibc-2.11.1-multilib-1.0.tar.bz2" is cross gcc for imx28.Need copy to linux system.
The file "Trolltech.tar.bz2" is cross qt env,also need copy to linux system.
The file "pb_touch_070_v12.pdf" is Schematic diagram for the development board.
The steps is like this.
1. copy gcc-4.4.4-glibc-2.11.1-multilib-1.0.tar.bz2 and Trolltech.tar.bz2 to your home dir.
2. open a terminal in linux system.
3. run shell "cd /usr/local/"
4. run shell "tar jxvf $HOME/Trolltech.tar.bz2"
5. run shell "mkdir -p /opt/freescale/usr/local"
6. run shell "cd /opt/freescale/usr/local"
7. run shell "tar jxvf $HOME/gcc-4.4.4-glibc-2.11.1-multilib-1.0.tar.bz2"
8. run shell "touch "export PATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:$PATH" >>/etc/profile"

In the last command it first gave me error: Permission Denied
The i did sudo
then i tried with root access

But then i'm getting this error:
touch: cannot touch ‘export PATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/akki/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin’: No such file or directory

Kindly help me understand this and solve this error.

rigor 08-24-2015 09:21 AM

Hi kazzarian,

If step 8 is not some mistake in what you were given, then my guess is that they want to accomplish the same thing as two commands run separately ( as root, or via sudo ) :

Code:

echo 'export PATH=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:$PATH' >>/etc/profile

touch /etc/profile

The first command will append a new line to the end of /etc/profile to include the cross compiler stuff in the PATH environment variable, so the cross compiler can be found when you want to use it.

The touch command will update the access time of /etc/profile, since in some environments only the modify time will be updated when a appending to a file.

I'm guessing they are thinking it might be safer to have people change /etc/profile this way, rather than having people use an editor to modify /etc/profile.


HTH.

kazzarian 08-25-2015 01:34 AM

Everything looks fine for now, i got some help from someone.

Now one weird thing is happening.

I also got a qmake from vendor specifically for the board. I have to use that particular qmake for compiling an application for the board.

Now, as per the steps given, i extracted but when i try to use that qmake, it gives me a stupid error: No such file or directory(Whereas it exists)

I try touch command, it modiefies the timestamp and that can be seen, i tried changing permissions via chown and chmod by sudo and root user as well but it seems that nothing changes because even after changing the permissions from the terminal when i check the properties, it still shows me the owner is root and i do not have the permission.

Can someone please explain what exactly the problem is?


All times are GMT -5. The time now is 05:36 PM.