qt says : arm-none-linux-gnueabi-g++ not found

hdak
hi, i compiled qte4.63-source and installed qtcreator.but when compiling
qt-gui program qt says "arm-none-linux-gnueabi-g++ not found" in build
issues.please help

arm-none-linux-gnueabi-g++ is running on terminal.

there is compile output:

Running build steps for project hi...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: `/home/henry/Belgeler/QT/hi-build-desktop' dizine giriliyor
arm-none-linux-gnueabi-g++ -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/qws/linux-arm-g++
-I../hi -I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include/QtCore
-I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include/QtNetwork
-I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include/QtGui
-I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include -I. -I. -I../hi -I. -o
main.o ../hi/main.cpp
make: arm-none-linux-gnueabi-g++: command not found
make: *** [main.o] Hata 127
make: `/home/henry/Belgeler/QT/hi-build-desktop' dizininden
çıkılıyor
The process "/usr/bin/make" exited with code 2.
Error while building project hi (target: Desktop)
When executing build step 'Make'

davef
Show us your export statement for the toolchain and the results of 
<which arm-linux-gcc>

hdak
->echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/bin:/opt/sun-j
re/bin:/usr/local/arm/4.4.3/bin

->arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with:
/opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure
--build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3
--with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-roo
t
--enable-languages=c,c++ --disable-multilib --with-arch=armv4t
--with-cpu=arm920t --with-tune=arm920t --with-float=soft
--with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions
--enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3
--with-mpfr=/opt/FriendlyARM/toolschain/4.4.3
--with-ppl=/opt/FriendlyARM/toolschain/4.4.3
--with-cloog=/opt/FriendlyARM/toolschain/4.4.3
--with-mpc=/opt/FriendlyARM/toolschain/4.4.3
--with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sy
s-root
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99
--enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1) 


thanks

davef
Sorry, run out of suggestions.

Maybe, http://www.sereno-labs.com/ might offer suggestions.

Good luck.

hdak
->arm-linux-gcc
arm-none-linux-gnueabi-gcc : no input file

->sudo arm-linux-gcc
arm-linux-gcc : command not found

what is the wrong?

Daniel
seems that your path environment variable is only set for the current user,
but not for root

hdak
how can i add for root?

hdak
i compiled on terminal there is result:

hamza@ham hi $ qmake -spec
/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/qws/linux-arm-g++/ -o
Makefile *.pro
WARNING:
/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/common/g++.conf:46:
Variable QMAKE_RPATH is deprecated; use QMAKE_LFLAGS_RPATH instead.
WARNING:
/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/features/yacc.prf:27:
Unescaped backslashes are deprecated.
WARNING:
/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/features/lex.prf:19:
Unescaped backslashes are deprecated.
hamza@ham hi $ make clean
rm -f moc_mainwindow.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o moc_mainwindow.o
rm -f *~ core *.core
hamza@ham hi $ make
/usr/bin/uic mainwindow.ui -o ui_mainwindow.h
arm-none-linux-gnueabi-g++ -c -pipe -O0 -Wall -W -D_REENTRANT -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-I/usr/local/Trolltech/QtEmbedded-4.6.3-arm/mkspecs/qws/linux-arm-g++ -I.
-I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui
-I/usr/include -I. -I. -o main.o main.cpp
make: arm-none-linux-gnueabi-g++: Komut bulunamad&#305;
make: *** [main.o] Hata 127

Markus
Hello davef,
i am facing the same problem.

I am getting the following answer:

which arm-linux-gcc
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc

How do i switch to arm-none-linux-gnueabi-g+?

Best regards,
Markus

davef
Think if you actually look at <arm-linux-gcc> you will see it is a script
which calls <arm-none-linux-gnueabi> with march=armv4t.

Try just doing <which arm-linux-g++> and see  what that says.

Good luck!

Markus
Hello,
yesterday i have found the solution for my problem.
Problem description:
I have added the path to the crosscompiler into the PATH variable. After
that i was able to compile qt-everywhere by editing qmake.conf.
But then i faced the problem, that qt creator could not find the
crosscompiler even though i configured the previously made qmake-file.

Solution
I have solved this problem by configuring the full path to compiler within
qmake.conf:
/opt/FriendlyARM/toolschain/4.5.1/bin/arm-none-linux-gnueabi-g++ etc.
After compiling qmake again i was able to configure qmake within qtcreator
and compile the program.

Now i am facing the problem to deploy the compiled program to the eval
board. But i guess, that's an other story :-)

Best regards,
Markus

davef
Excellent.  I am sure the solution will be helpful to others.  Good luck
with the next phase of the project.

hdak
hi i reinstalled everything on xubuntu 10.10 now qmake is ok in
terminal.Now what is the next step for gui programming on qtcreator?

hdak
i'm ok.i used eclipse&qt integratinon

Dhruv Vyas
@ hdak....

You can follow this tutorial for making qui step.

http://mini2440vietnam.blogspot.in/2011/05/programming-application-for-m...

@ davef

Can you assist me through this ?

I am planning to use arm-linux-gcc 4.4.3 toolchain for this.

I extracted it and set the path according to procedure.

however when i type arm-linux-gcc --version command, it throws me an error
as below :

/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: 15: exec:
/opt/FriendlyARM/toolschain/4.4.3/bin/.arm-none-linux-gnueabi-gcc: not
found


Let me know if you have any solution to this program.

davef
Dhruv,

Yes, I'll try.

Have you exported the path to your compiler in .profile or .bashrc?

I write compile scripts as I got tired of re-typing the commands millions
of times.  For those you could place a echo statement to give you the
result of your --version command.

There is an old tutorial on the Wiki page that tries to outline the steps
involved in doing things from scratch.  Watch out for errors!

I would also check that that is the correct syntax for the command.

Last question, are you wanting to learn how to do stuff from scratch or
more interested in writing applications?

Dhruv Vyas
Dave...!

I am more interested in writing application. However, as my qt is stuck, i
can not move further so experimenting with basics right now.

What my goal is to design a gui using qt for mini2440.

davef
I am not trying to discourage you from getting an understanding of the
basics, because I am sure it is worthwhile in the long run and it will
"keep you off the streets" for many many evenings.  For example, do you
need you have a good understanding of semiconductor physics to work with
these microprocessors? The physical limitations are normally highlighted in
the datasheet, you don't need to know why they are there.  In other words .
. . "hardware abstraction".

After about 10 years working with 8bit uPs to the level of running
webservers on them it took a good 2-3 years (10 to 20 hours a week) just to
get a basic of understanding of running Linux on this board. 

I am not saying that there haven't been some problems, but running a BSP
(Pengutronix) even for the Qt stuff has been much less painful.  There is
good support and people working with Qt, see here:
http://wingston.workshopindia.com/wingz/embedded-programming-on-the-mini...
(seems to be down at the moment).

Did you get any further with your problem?  Reading further up this thread:

> Think if you actually look at <arm-linux-gcc> you will see it is a script
> which calls <arm-none-linux-gnueabi> with march=armv4t.

reminded me that this comment is only specific to the FriendlyArm
toolchain.

Dhruv Vyas
Yeh...I surely agree to your point.

Understanding basics is very necessary as to know how things are actually
working @ hardware level.

However due to my education, I have fair idea of 8 bit uP, 16 bit uP and
arm 7 architectures.  

As far as, this problem is concerned. I believe i need to set up whole
thing in my 32 bit old pc, it might be having problems with newer version
of ubuntu or 64 host systems.

blueshift
Dear all,
I am following the instructions to compile QT app for Tiny6410 board.
I could compile it successfully. Just a simele hello word QT application.

But when i run in the board in terminal (./testQT -qws), it gives me
following error:
testQT: Error while loading shared libraries: libQtGui.so.4: cannot open
shared object file: No such file or directory

How do i proceed with resolving this error?

Regards,
Girish Thavai

davef
Have you tried to find any libQt libraries on your target?

find -name libQt* -print

My guess is that none of them are there because that library is always or
almost always needed!

blueshift
Dear davef, 
yes the QT libraries are already installed in the target.
I set some PATHs in target and created symbolic links. The application runs
now. ;-)

davef
Now, both you and the program can find them :)

Everything has to be just right, but when it is you feel good. It can be a
real challenge . . . most days!

Rome'o
Hi,
Please help me!!
I used CentOS,but when write 'arm-linux-gcc' command ..

[root@ICICVM etc]# arm-linux-gcc -v
readlink: invalid option -- m
Try `readlink --help' for more information.
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: line 15: /etc/.: is a
directory
/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: line 15: exec: /etc/.:
cannot execute: Success

davef
What do you see when you run readlink --h

http://unix.stackexchange.com/questions/15381/php-package-wont-install-c...