简体   繁体   English

交叉编译树莓派3的QtModules

[英]Cross compile QtModules for raspberry pi 3

I need to cross compile QSerialPort module and QtChart Module for the pi cm3 on Ubuntu x64, after having successfully compiled qtbase following the https://wiki.qt.io/RaspberryPi2EGLFS#Step_by_step guide. 在按照https://wiki.qt.io/RaspberryPi2EGLFS#Step_by_step指南成功编译了qtbase之后,我需要在Ubuntu x64上交叉编译pi cm3的QSerialPort模块和QtChart模块。

In the same guide is told to compile other modules in the following way: 在同一指南中,还要求以下列方式编译其他模块:

git clone git://code.qt.io/qt/<qt-module>.git -b <qt-version>
cd <qt-module>

~/raspi/qt5/bin/qmake -r
make
make install

I tried that method with 我尝试了这种方法

git clone git://code.qt.io/qt/qtserialport.git
cd qtserialPort

but doing 但是在做

~/raspi/qt5/bin/qmake -r

i get the error 我得到错误

Project MESSAGE: cmake executable not found. Not running CMake unit tests

How to fix the error? 如何解决错误?

Looking into this file in the QtSerialPort repository, it seems like there is some kind of integration with CMake's CTest framework. 在QtSerialPort存储库中查看此文件 ,似乎与CMake的CTest框架进行了某种集成。 Hence, to get rid of the message, I guess you could try to install CMake: 因此,要摆脱此消息,我想您可以尝试安装CMake:

sudo apt-get install cmake

However, I am not sure if this actually is an error (as it says Project MESSAGE - it might just be informational and safe to ignore). 但是,我不确定这是否真的是一个错误(因为它说Project MESSAGE它可能只是提供信息,可以忽略)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM