The most important parameters are -device and -sysroot. configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-sysroot $ROOTFS -prefix /usr/local/qt5 For most Embedded Linux boards, the configure command looks similar: The following is an example configuration for the Raspberry Pi 2. The name that follows after this argument must, at least partially, match one of the subdirectories under devices. The device is selected through the configure tool's -device parameter. The mkspec also contains information about either an implementation of the eglfs hooks (vendor-specific adaptation code), or a reference to the suitable eglfs device integration plugin. For example, the linux-rasp-pi2-g++ mkspec contains build settings such as the optimal compiler and linker flags for the Raspberry Pi 2 device. The directory qtbase/mkspecs/devices contains configuration and graphics adaptation code for a number of devices. This is not relevant for non-accelerated platforms, for example the ones using the LinuxFB plugin, which is meant for software-based rendering only. Additionally, some devices require vendor-specific adaptation code for EGL and OpenGL ES 2.0 support. Configuring a Specific Deviceīuilding Qt for a given device requires a toolchain and a sysroot. Alternatively, for quick tests, the -platform command-line can be used with the same syntax. If the default is not suitable, the QT_QPA_PLATFORM environment variable parameter can be used to request another plugin. On many boards eglfs is chosen as the default one. The availability of these depend on the configuration of Qt. There are multiple platform plugins that are potentially usable on Embedded Linux systems: EGLFS, LinuxFB, DirectFB, Wayland. Multiple graphical processes can be supported through Wayland. For single-process use cases, the Qt Platform Abstraction is a superior solution. Since the Qt 5.0 release, Qt no longer contains its own window system (QWS) implementation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |