Virtual machine Ubuntu 18 raspberry Pie 4 Qt5 14.2 cross compilation

Time:2021-12-21

The compilation process mainly refers toCross compile Qt5 for raspberry Pie 4 14.2 (with eglfs support), you can follow the tutorial step by step. In the whole process, there are two places to pay attention to.

       1. Sudo RPI update will fail to download through the command due to network problems. The best way is to install locally. The download method of update compressed package is throughhttps://ghproxy.com/Input linkhttps://github.com/Hexxeh/rpi-firmware/archive/master.tar.gzDownload,

After downloading, followManual update (RPI update) raspberry pie firmwareStep update.

Query the result, LS – LA / opt / VC / lib to see if there is any in this directorylibEGL.soandlibGLESv2.soThese two libraries are not available before the update. If these two libraries appear and are real libraries rather than soft links, the update is basically successful.

       2. If you “configure and cross compile QT” in step 3, run“./ After "configure" fails, be sure to delete it before the next run of configureconfig.logandconfig. Cache (under the qtbase directory), otherwise the correct change will still fail.

Recommended Today

Summary of import and export usage in JavaScript

import import 和 require 的区别 import 和js的发展历史息息相关,历史上 js没有模块(module)体系,无法将一个大程序拆分成互相依赖的小文件,再用简单的方法拼装起来。这对开发大型工程非常不方便。在 ES6 之前,社区制定了一些模块加载方案,最主要的有 CommonJS 和 AMD 两种。前者用于服务器,后者用于浏览器。ES6 在语言标准的层面上,实现了模块功能,而且实现得相当简单,完全可以取代 CommonJS 和 AMD 规范,成为浏览器和服务器通用的模块解决方案。也就是我们常见的 require 方法。 比如 `let { stat, exists, readFile } = require(‘fs’);` 。ES6 在语言标准的层面上,实现了模块功能。ES6 模块不是对象,而是通过export命令显式指定输出的代码,再通过import命令输入。 import 的几种用法: 1. import defaultName from ‘modules.js’; 2. import { export } from ‘modules’; 3. import { export as ex1 } from […]