From: maitai <mai...@virtual-winds.org>
To: Interest@qt-project.org
Subject: Re: [Interest] Compiling 5.11.2 on a Pi 3B
Hi Jason
This is my way for compiling qt for RPI 3 or 2, cross compiling from a Ubuntu virtual machine.
The trick for me is to replace the content of qtbase/mkspecs/devices/linux-rasp-pi2-g++/qmake.conf with
include(../common/linux_device_pre.conf)
QMAKE_LFLAGS += -Wl,-rpath-link,$$[QT_SYSROOT]/opt/vc/lib
QMAKE_CFLAGS += -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
DISTRO_OPTS += hard-float
QT_QPA_DEFAULT_PLATFORM = xcb
include(../common/linux_arm_device_post.conf)
load(qt_config)
and then:
configure:
./configure -release -no-eglfs -qt-xcb -xcb -nomake tests -no-use-gold-linker -nomake examples -skip qtscript -skip qtwebengine -skip qtwayland -skip qtdoc -skip qtlocation -skip qtgamepad -skip qtspeech -skip qt3d -skip qtwebview -skip qtwebchannel -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5111pi -extprefix ~/raspi/qt5111pi -hostprefix ~/raspi/qt5111 -v
This works for me on Jessie or Stretch, RPI2 or 3, with some other bad tricks when deploying, that is the idea.
Philippe.
Le 08-11-2018 20:19, Jason H a écrit :
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interestI really kicked ha hornets nest. Qt5 compiles on Stretch, but it's got terrible hardware accleration performance (read: none)There's no difference for me between xcb and eglfs and glxgears is running at 30fps.$ glxgears -info
GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits)
GL_VERSION = 3.0 Mesa 13.0.6
GL_VENDOR = VMware, Inc....152 frames in 5.0 seconds = 30.357 FPS$ qtapp -platform eglfs
libEGL warning: DRI2: failed to authenticate
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
Running on a software rasterizer (LLVMpipe), expect limited performance.What's the best backend to use for Qt on q RPi 3b?Sent: Thursday, November 08, 2018 at 8:24 AM
From: "Colin Worth" <jlk2...@gmail.com>
To: interest@qt-project.org
Subject: Re: [Interest] Compiling 5.11.2 on a Pi 3BI cross-compiled latest Qt 5.10.1 for Raspberry Pi 3B on linux a few months ago. Disabled es2 configure (-no-eglfs -no-egl). Stretch supports an experimental version of OpenGL for the pi, so platform plugin libxcb is okay. This is a good starting point: https://www.raspberrypi.org/forums/viewtopic.php?t=204529. In addition the configure flags, you can also remove references to egl eglfs from qtbase/mkspecs/devices/linux-rasp-pi3-vc4-g++/qmake.conf in the source tree. Hope this helps._______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interestColinOn Nov 8, 2018, at 7:24 AM, interest-requ...@qt-project.org wrote:Re: [Interest] Compiling 5.11.2 on a Pi 3B_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest