Problem while using Qt v4.6.3
Hi,
I've installed Qt everywhere 4.6.3
Follow my configuration :
- PC is with ubuntu 10.4
- the target is with linux kernel 2.6.24
- Cpu : arm atsam9263
- GCC toochain is : arm-linux-gcc-4.3.2
- Compiler optimization had been desactived g++.conf :QMAKE_CFLAGS_RELEASE += -O0
- qmake.conf is as follow
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
TOOLS_BIN = /usr/local/arm/4.3.2/bin
# modifications to g++.conf
QMAKE_CC = $$TOOLS_BIN/arm-none-linux-gnueabi-gcc
QMAKE_CXX = $$TOOLS_BIN/arm-none-linux-gnueabi-g++
QMAKE_LINK = $$TOOLS_BIN/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = $$TOOLS_BIN/arm-none-linux-gnueabi-g++
# modifications to linux.conf
QMAKE_AR = $$TOOLS_BIN/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = $$TOOLS_BIN/arm-none-linux-gnueabi-objcopy
QMAKE_RANLIB = $$TOOLS_BIN/arm-none-linux-gnueabi-ranlib
# To include ts-lib
QMAKE_INCDIR += /usr/local/tslib/include
QMAKE_LIBDIR += /usr/local/tslib/lib
QMAKE_LFLAGS += -Wl,-rpath-link=/usr/local/tslib/lib
load(qt_config)
- Installation of Qt everywhere 4.6.3 run without errors : make and make install
- I copy one of the Qt binary example application in th target : hello
But when i try to run the application i have a message " hello not found"
~ $ ./hello
-sh: ./hello: not found
Even if i can see the binary hello
~ $ ls -l hello
-rwxrwxrwx 1 root root 5047 Jan 1 00:01 hello
Please could some one help me
Thanks
Re: Problem while using Qt v4.6.3
What does
$ file ./hello
say? I think the binary has not been crosscompiled.
Re: Problem while using Qt v4.6.3
yes Hello has been crosscopiled
and when you test the file ( file hello) the résult is :
"32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU 2.6.14, not stripped"
Thanks
Re: Problem while using Qt v4.6.3
Is your application linked to any shared library? If yes, try to check the existence of its dependencies. I remember seeing this not obvious error with my non-Qt app some time ago, but i don't remember the solution, sorry.
Re: Problem while using Qt v4.6.3
Question 1. Are the Qt libs installed on the target?
Question 2. Have you tried launching the program the following way?:
./hello -qws