Cross Compiling on BeagleBone Black
-
Can you post the error content ?
-
Hi,
This is the error I am getting now,/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib/crt1.o: In function
_start': init.c:(.text+0x30): undefined reference to
main'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCore.so.4.8.6] Error 1
make[1]: Leaving directory `/home/raghu/Desktop/qt-everywhere-opensource-src-4.8.6/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2Please help me to get rid off this error.
-
You changed Qt's version in between ?
Did you update your cross-compiler also ?
-
Hi,
I successfully configured "qt-everywhere-opensource-src-4.8.6", also "make" and "make install" was successful.
I created a Qt application and compiled it. Even it compiled successfully.
I deployed it onto the beaglebone black.But the binary is not running on the board,
I have even transferred all the libraries into board. Still the binary is not running.It is stating an error “bash: ./Test: No such file or directory”.
Can you please help me with this as it's very urgent.
Thank you.
-
The message is pretty self-explanatory, Test doesn't exist
-
Hi,
When I give "ls -al" it is listing the "Test", So its confirmed that Test binary is present in the path.
-
Hi,
I some tried to link the libraries now I am getting this error when I execute the exe in the target system.
"./Test : error while loading shared libraries: libEGL.so.1: cannot open shares object file: No such file or directory" -
You are missing some dependencies on your target
-
hi,
The all the above issues where resolved.
But currently I am facing a new issue. I deployed my application successfully into beaglebone black and even the application is running. But no texts are being displayed on the UI. I tried with linking the Qt directory path but i was not successful in that.
Can I know what changes needs to be done to get the text displayed on the UI?
-
Did you deploy the font files ?
-
Yes I have deployed the fonts and have also specified the QT_QWS_FONTDIR to that where the fonts are there.
When I set the width and height by giving the following environmental variable: QWS_DISPLAY = LinuxFB:mmWidth=800:mmHeight=480, I could see some of the texts but it is not properly aligned and some texts are still missing.
Can I know how can I resolve it?
-
Are you getting any information on the console stating that there's a problem ?
-
No I am not getting any error on the console. Everything seems to be fine.
I even tried by generating the fontdir file for the fonts, thinking it might be searching for that fontdir file. But I could not achieve success out of this. -
I also tried several ways for getting the text displayed. Like setting the QT_QWS_FONTDIR to my font dir, By setting the QWS_DISPLAY, also I tried to run the application by giving the following command: "./Test -qws -font unicode" but couldn't achieve any success.
Please direct me where I am going wrong.
Waiting for an helpful suggestion. -
What output do you get on your console when running your application ?
-
The UI is being displayed as a output but none of the texts are shown.
-
Are you running it directly on the target or using ssh/serial console ?
-
I am deploying the application into target using Qtcreator itself. As Qtcreator provides that options.
-
What language are you using for your application ?
-
I am using "English" language itself.
Now I am trying to run my application which also includes images of type ".png", but now application is not at all running, now I am getting an error in console like :
"QFSFileEngine::open: No file name specified.
Bus errorixel: coordinate (-1,-1) out of range"