LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-24-2015, 01:53 AM   #1
kazzarian
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
Exclamation 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.
 
Old 08-24-2015, 09:21 AM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
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.
 
Old 08-25-2015, 01:34 AM   #3
kazzarian
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble installing cross-compile toolchain on raspberry pi DutchGeek Linux - Embedded & Single-board computer 6 12-05-2014 05:47 AM
building a cross compiler / toolchain for ARM11 on linux from scratch ProfWho Linux - Newbie 4 09-28-2013 04:19 AM
Final Phase GCC build fails for ARM cross compiler toolchain bencpeters Linux - Embedded & Single-board computer 1 11-13-2011 05:23 PM
How to build Cross Compiler Toolchain on Fedora for other Linux distributions? drroot Programming 8 04-25-2011 04:35 PM
Installing the gcc cross compiler sujith4u87 Linux - Software 1 04-08-2010 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration