Deployment to Beaglebone black
-
Hi all,
I am using Qt5.0.2, Qt creator 2.7.0.
Target is to deploy Qt App to Beaglebone black.
I have downloaded the Toolchain for beaglebone black i.e "angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3"
I have also cross checked the Toolchain and I found that it is working fine.
But in Qt qmake selection i.e. TOOLS->OPTIONS->BUILD & RUN->Qt Version, the qmake path given is "/usr/local/angstrom/arm/bin/qmake"
But when I select this,Iam getting a warning "ABI detection failed: Make sure to use matching matching compiler when building".Because of the above warning I am unable to build the Qt project:
Below is the error information :"tarting: "/usr/bin/make"
c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I../aaa -I/QtCore -I/QtGui -I -I. -I../aaa -I. -o main.o ../aaa/main.cpp
make: c: Command not found
make: [main.o] Error 127 (ignored)
make: o: Command not found
make: [aaa] Error 127 (ignored)
o aaa main.o -L -lglib-2.0 -lQtGuiE -lQtCoreE -lpthread
16:38:21: The process "/usr/bin/make" exited normally."This is because of wrong QMake !
How can I resolve this, What should be the approach ? Please help me out, I got stuck here ! -
Hi,
I'm not an angstrom specialist, it's been years since I last built something with it. But it seems you are using a tool chain that is from 2011 and from the name of it it's pre-built for Qt 4.6.3 which is pretty outdated.
You should look throughout this forum, there are several posts regarding using Qt 5 with BBB
-
Hi,
I looked at this forum but everywhere they use the same cross compiler for beaglebone black.
As we can see the problem is happening with the make.
Is there any specific reason for the above error? -
Hi,
Where did you get Qt 5.0.2 for your Beablebone Black?
-
Qt 5.0.2 im using on my Virtual box not on the Beaglebone Black.
-
I'm also unfamiliar with Angstrom, however assuming it is anything similar to how this goes on other embedded boards particularly for cross-compiled Qt, usually the process is as follows:
-
grab an image for the embedded board OS (the sdcard image, nand image)
-
on a development host (x64 possibly) attempt to cross-compile Qt5 for the dev board architecture, using Qt5 sources+GCC toolchain for the board+the mounted board sdcard/band image OS
-
specify a target path in Qt's configure line, for placing the cross-compiled binaries on both systems (the development host and the mounted image)
-
cross-compilation will produce a qmake binary which is x64 in this example and placed directly at the development host OS - and the Qt5 cross-compiled libraries (I.e. the actual Qt libraries, built for the embedded board arch) placed on the mounted sdcard/nand image.
-
unmount the sdcard/nand image on the dev host and install it to the board
-
boot the board
-
remount the sdcard/nand image on the dev host
-
configure Qt Creator properly with: the GCC toolchain used to build Qt+the qmake binary+SSH access to the board for app deployment
As you are now, find your built qmake on the host and run it like so: qmake -v
It will tell you which Qt version it is based on and where it is expecting to find the Qt libraries. Make sure the cross-compiled libraries are accessible to it on the dev host - that is why the sdcard/nand image used in the build process must also remain mounted on the dev host, so that the host has an exact copy of the OS running on the board, Qt libraries included.
-
-
Hi,
This is the error I am getting in the Qt creator when I build the Qt in my desktop environment.
I am in need of a suggestion to get rid off this error then only I can deploy into Beaglebone Black -
Hi,
Please post all relevant information about the Desktop Environment (i.e. if GNU/Linux or Windows, which GNU/Linux Distro, if x86 or x64, which kernel version, etc)
Also, please confirm that you're using angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3 specifically as the toolchain you're using for building Qt5.
Also, please post the complete configure line you're using with Qt5, and if the configure step is successful, please post the qtbase/config.summary file contents.
Finally, after the configure step, please post the make / make install procedures you're using.
-
Hi,
Im not getting this error while configuring and installing the Qt.
Instead I am getting this error while building my Qt project.Yes I am using angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3 as a toolchain to cross compile the Qt project into beaglebone black.
-
Hi,
Please share the output of:
/usr/local/angstrom/arm/bin/qmake -v
readelf -h /usr/local/angstrom/arm/bin/qmake
readelf -h <path_to>/libQt5Core.so