Problem Qt-Embedded / PandaBoard
-
Hi everybody.
I have some problems with qt-embedded. I try to execute the textedit demo in qt examples. I do it with my pandaboard and a linux OS. When I execute ./textedit , I have the message :
bash : ./textedit : No such file or directoryI compiled the Appli from my PC with qt-everywhere-opensource-src-4.8.3. I build qt-everywhere-opensource-src-4.8.3 with arm-linux-gnuaebi-gcc-4.6 and arm-linux-gnuaebi-g++-4.6.
The configure command was : ./configure -embedded arm -xplatform qws/linux-arm-gnueabihf-g++/ -little-endian -qvfb -lrt -qt-gfx-linuxfb -qt-gfx-qvfb.
I tried with others qt-embedded versions but I still got the same message « bash : ./textedit : No such file or directory ».
What I did wrong ? Someone already had the problem ?
-
Do you see "textedit" listed when running ls?
-
Yes I do ! That's why I don't understand!
When I do : file textedit
the message says it's build dynamically
but when I do : ldd textedit
the message says that it's not a dynamic executable. -
Do you know how to compile Qt libraries and Qt application on Linux PC?
Does your Qt building process ends without error?
Have you installed Qt after building?
What is the content of qws/linux-arm-gnueabihf-g++/qmake.conf ? -
I compile Qt-embedded with this command :
./configure -embedded arm -xplatform qws/linux-arm-gnueabihf-g++/ -little-endian -qvfb -lrt -qt-gfx-linuxfb -qt-gfx-qvfband make -j2 then sudo make install
I add the new qmake in Qtcreator to compile programs.
My qmake.conf is like this :
@qmake configuration for building with arm-linux-gnueabi-g++
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)modifications to g++.conf
QMAKE_CC = arm-linux-gnueabi-gcc-4.6
QMAKE_CXX = arm-linux-gnueabi-g++-4.6
QMAKE_LINK = arm-linux-gnueabi-g++-4.6
QMAKE_LINK_SHLIB = arm-linux-gnueabi-g++-4.6modifications to linux.conf
QMAKE_AR = arm-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-linux-gnueabi-objcopy
QMAKE_STRIP = arm-linux-gnueabi-stripload(qt_config)
@
During the compilation of Qt embedded I had errors but I fixed them with solutions I found on the web.[Edit: Added @ tags -- mlong]
-
Ok,
are you using Qt Creator to build you application?
Have you added the new Qt building tu Qt Creator settings? -
Yes I did ! I have any error after building it
-
can you post the result of:
@
ls -la
@
in the folder where you have the built executable? -
@ls -la
total 224
drwxrwxr-x 3 linaro linaro 4096 Oct 9 08:24 .
drwxr-xr-x 10 linaro linaro 4096 Oct 9 08:24 ..
-rw-r--r-- 1 linaro linaro 14365 Sep 11 03:36 example.html
drwxrwxr-x 4 linaro linaro 4096 Oct 9 08:24 images
-rw-r--r-- 1 linaro linaro 1930 Sep 11 03:36 main.cpp
-rwxrwxrwx 1 linaro linaro 108964 Oct 8 15:50 textedit
-rw-r--r-- 1 linaro linaro 24236 Sep 11 03:36 textedit.cpp
-rw-r--r-- 1 linaro linaro 3690 Sep 11 03:36 textedit.h
-rw-r--r-- 1 linaro linaro 535 Oct 9 2012 textedit.pro
-rw-r--r-- 1 linaro linaro 45701 Oct 9 2012 textedit.pro.user
-rw-r--r-- 1 linaro linaro 1634 Sep 11 03:36 textedit.qrc@I did a chmod 777 textedit to change the rights of the appli.
-
Ok, now you are on a Linux PC I suppose, so you need to transfer the executable in the target board and try to execute it.
Have you also copied the built libraries on the target board?
-
My ls -la command was from my Pandaboard.
I transfererd my executable in my PandaBoard, and copied the built librairies. I changed my $PATH but I still have@bash : ./textedit : No such file or directory@
Did I make something wrong?
-
If you ls is from pandaboard, why did you copy you Qt project and not only the executable?
Are you cross-compiling or building directly on the board? -
I copied the project because the executable need images included in the folder. I cross compile, I don't build from the board!
-
The version of cross-compiler is not suitable.
You should use arm-linux-gnueabihf-g++ -
Nadroj: I'm trying to compile qt-everywhere-opensource-src-4.8.5 but I had errors running the ./configure. In your post you say you correct the errors, could you tell me how? Thank's.