Problem Qt-Embedded / PandaBoard
-
wrote on 8 Oct 2012, 16:12 last edited by
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 ?
-
wrote on 8 Oct 2012, 18:40 last edited by
Do you see "textedit" listed when running ls?
-
wrote on 9 Oct 2012, 06:58 last edited by
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. -
wrote on 9 Oct 2012, 07:25 last edited by
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 ? -
wrote on 9 Oct 2012, 07:48 last edited by
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]
-
wrote on 9 Oct 2012, 07:58 last edited by
Ok,
are you using Qt Creator to build you application?
Have you added the new Qt building tu Qt Creator settings? -
wrote on 9 Oct 2012, 08:08 last edited by
Yes I did ! I have any error after building it
-
wrote on 9 Oct 2012, 08:15 last edited by
can you post the result of:
@
ls -la
@
in the folder where you have the built executable? -
wrote on 9 Oct 2012, 08:29 last edited by
@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.
-
wrote on 9 Oct 2012, 08:32 last edited by
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?
-
wrote on 9 Oct 2012, 08:41 last edited by
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?
-
wrote on 11 Oct 2012, 09:00 last edited by
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? -
wrote on 12 Oct 2012, 07:10 last edited by
I copied the project because the executable need images included in the folder. I cross compile, I don't build from the board!
-
wrote on 28 Jul 2013, 06:53 last edited by
The version of cross-compiler is not suitable.
You should use arm-linux-gnueabihf-g++ -
wrote on 30 Sept 2013, 16:11 last edited by
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.