gcc & g++

456 views
Skip to first unread message

rahim panahi

unread,
May 16, 2012, 5:58:23 AM5/16/12
to beagl...@googlegroups.com
Hi all
I've downloaded a toolchain containing gcc and g++ in it , after installing angstrom from narcissus I've tried to compile the toolchain so
as I've read from somepages in internet I went to this folder
/usr/local/angstrom/arm    and entered the following command
sh ./environment-setup
but nothing happend and just the command line jumped to another line as below :

>>root@beagleboard:/usr/local/angstrom/arm#  sh ./environment-setup
>>root@beagleboard:/usr/local/angstrom/arm#
 
and I thought that gcc and g++ were installed by this command so I ran this code to compile my opencv example to see if I can see a simple image
histogram or not
>>root@beagleboard:/# g++ -o Hist Hist.cpp `pkg-config --libs opencv` `pkg-config --cflags opencv`
but the output was :
>> sh: g++: not found
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I'm sure that my toolchain contains gcc and g++ because I searched the arm folder and found them , but I think that  they are not installed .
any suggestion about this problem(my compile command is wrong or ...) ?

Jack Mitchell

unread,
May 16, 2012, 2:08:01 PM5/16/12
to beagl...@googlegroups.com
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:
> beagleboard...@googlegroups.com
> Frequently asked questions: http://beagleboard.org/faq

Rahim,

Type gcc and then double tab after running the ./environment-setup, the
angstrom-cross-binaries have a different name rather than just pure
'gcc' or 'g++'.

Regards,
Jack.

John (USP)

unread,
May 16, 2012, 2:13:40 PM5/16/12
to beagl...@googlegroups.com

From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of rahim panahi
Sent: Wednesday, May 16, 2012 2:58 AM
To: beagl...@googlegroups.com
Subject: [beagleboard] gcc & g++

 

Hi all
I've downloaded a toolchain containing gcc and g++ in it , after installing angstrom from narcissus I've tried to compile the toolchain so
as I've read from somepages in internet I went to this folder
/usr/local/angstrom/arm    and entered the following command
sh ./environment-setup
but nothing happend and just the command line jumped to another line as below :

>>root@beagleboard:/usr/local/angstrom/arm#  sh ./environment-setup
>>root@beagleboard:/usr/local/angstrom/arm#
 
and I thought that gcc and g++ were installed by this command so I ran this code to compile my opencv example to see if I can see a simple image
histogram or not
>>root@beagleboard:/# g++ -o Hist Hist.cpp `pkg-config --libs opencv` `pkg-config --cflags opencv`
but the output was :
>> sh: g++: not found
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The arm cross compiler command would be arm-angstrom-linux-gnueabi-g++ or arm-angstrom-linux-gnueabi-gcc

 

Regards,

John


I'm sure that my toolchain contains gcc and g++ because I searched the arm folder and found them , but I think that  they are not installed .
any suggestion about this problem(my compile command is wrong or ...) ?

Jack Mitchell

unread,
May 16, 2012, 2:15:49 PM5/16/12
to beagl...@googlegroups.com

Whoops! My mistake, it is indeed pre-fixed - not post-fixed as I earlier stated! * arm-angstrom-linux-gnueabi-g++* is correct.

John (USP)

unread,
May 16, 2012, 2:25:02 PM5/16/12
to beagl...@googlegroups.com

If you see gcc and g++ in your toolchain, they are probably linked to the files I mentioned above. I would recommend that you use the full name as the native compiler uses gcc and g++ so you will end up with x86 code and not arm code. Just make sure the compiler bin folder is in your PATH.

 

Regards,

John


-- To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

Koen Kooi

unread,
May 16, 2012, 2:46:02 PM5/16/12
to beagl...@googlegroups.com
. environment-setup

or more clearly:

dotSPACEenvironment-setup

John (USP)

unread,
May 16, 2012, 3:30:53 PM5/16/12
to beagl...@googlegroups.com


> -----Original Message-----
> From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com]
> On Behalf Of Koen Kooi
> Sent: Wednesday, May 16, 2012 11:46 AM
> To: beagl...@googlegroups.com
> Subject: Re: [beagleboard] gcc & g++
>
>
Good spot Koen. You can also do this

source environment-setup

Make sure you are using the correct environment-setup file. I installed
Angstrom in my home folder so my environment-setup file is in
~/.oe/environment-setup so here is the command I use:

source ~/.oe/environment-setup

Regards,
John

maddy

unread,
Jul 4, 2012, 11:36:45 PM7/4/12
to beagl...@googlegroups.com
hi...
I have developed a toolchain and now i want to develop a native compiler for Beagleboard-xM, hope u can help me..

Maxim Podbereznyy

unread,
Jul 7, 2012, 2:43:33 PM7/7/12
to beagl...@googlegroups.com

Maddy, you are a tough guy! Why do you need our help?

05.07.2012 7:36 пользователь "maddy" <manojku...@gmail.com> написал:

Manoj Arora

unread,
Jul 8, 2012, 12:38:09 AM7/8/12
to beagl...@googlegroups.com
Dear Maxim,
I know that I am tough guy... no one takes birth with the full knowledge... and if u want to learn than what goes in asking for help from anyone in the universe... now whether people help here or not it depends on thm...  Even u would have taken help from various places... and every linux developer is a tough guy.. so, u r also..
.
.
Reply all
Reply to author
Forward
0 new messages