Unsolved Raspberry Cross Compile error building QTbase, no libraries found
-
Hi, I want to make an application for my raspberry pi 3 and I was following the instruction on this page https://wiki.qt.io/RaspberryPi2EGLFS, and fails on the command:
./configure -release -opengl es2 -device linux-rasp-pi2-g++ \ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- \ -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs \ -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
It prompt the error;
error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
And because of that a lot of libraries can't be found like <GLES2/gl2.h> or <pulse/pulseaudio.h> and many others.
I followed all the previous steps, any suggestion on what I do wrong?.I'm using ubuntu 16 on a 64 bit computer.
If you want more info please ask.
-
Here is a link to the referenced bugreport QTBUG-36129
You should be able to log on to JIRA with your forum credentials.Apparently the bug has been closed with Qt5.3.0 RC1. Which version of Qt are you using?
-
@koahnig I'm using 5.7
-
@Fransebas Does your pi sysroot directory contain the libs you need? If not that is why it can't find them. You need to have those libraries installed for your Pi.
-
@ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.
-
@Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:
@ambershark But isn't that the reason why we use the sysroot to later synchronize? I mean isn't this process first compile in my computer and then I send the result, so the libraries should be in my computer.
Right but somewhere on your system you need to have the libraries that are built for Pi architecture in order to build. In this case GLES and pulseaudio. But there will be others as well.
Also this may help you set up your environment to build properly:
http://visualgdb.com/tutorials/raspberry/qt/embedded/
Step #6 is the key to getting libs/headers you need from the Pi onto your build system.
-
@ambershark Thanks thats probably the problem thanks
-
@Fransebas said in Raspberry Cross Compile error building QTbase, no libraries found:
@ambershark Thanks thats probably the problem thanks
No problem.. I have never done development for Pi, so let me know how that goes and whether it fixes it or not. I have done ARM development though and the problems/solutions are similar. :)
-
@ambershark =0 I finally made it, thanks!!! I don't actually use the link you post because it's all on windows and don't use window but I made a mistake in the analogous step 6 in the guide for ubuntu