ok, i am close to giving up. I guess i am not enough familiar with compiling for linux devices.
I understand that i have to rebuild my qt5, what i already did but it doesn't work for me.
I tried to do the following steps:
1) configure:
Using the option -qt-xcb:
niki@debian:~/opt/qt5/qtbase$ sudo ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi -qt-xcb -v > outputConfigure.txt
niki@debian:~/opt/qt5/qtbase$ sudo ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi -qt-xcb -v > outputConfigure.txt
To copy to clipboard, switch view to plain text mode
2) make & make install
sudo make
sudo make install
sudo make
sudo make install
To copy to clipboard, switch view to plain text mode
Then i would expect to find the platform plugin XCB in the folder: /usr/local/qt5pi/plugins/platforms/ -> but it's not!!
There are a bunch of errors and warnings, but these were also there when i compiled qt5 the first time.
3) Copy to sd-card
After the steps above i would copy the rasp-pi-rootfs folder to my sd-card of the raspbery.
4) install xcb dependencies
On my raspberry i would: sudo apt-get install libxcb1-dev
5) compile and deploy my code to the raspberry using QTcreator
6) run
./myApp -platform xcb
I really appreciate your help!
I know it's not easy to work through my problem description.
Ben
Bookmarks