Yocto QT5 Build Error When Using Serial Port Module

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

kengineer
Posts: 15
Joined: Tue Oct 31, 2017 3:08 pm

Yocto QT5 Build Error When Using Serial Port Module

Wed May 23, 2018 2:47 pm

I am using the Microchip Yocto build with the SAMA5 and have been working on creating my own layer with some of my own recipes. FYI I am using "Morty" so I know this isn't the very latest release of meta-atmel and others. However, I have found that when creating a recipe to build a custom QT5 app that utilizes the serial port (QT += serialport within the .pro file), the qmake system in Yocto will not recognize it failing with an error similar to the following:

Code: Select all

| ERROR: Error calling /home/user/yocto/poky/build-atmel/tmp/sysroots/x86_64-linux/usr/bin/qt5/qmake -makefile -o Makefile  -r   /home/user/yocto/poky/build-atmel/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/my_qt_application/version-version/git/my_qt_application.pro  --
| Project ERROR: Unknown module(s) in QT: serialport

The solution I have found is create a bbappend file for qtserialport and add something like the following:

Code: Select all

PACKAGECONFIG_append_sama5 = " qtserialport"

Return to “LINUX”

Who is online

Users browsing this forum: Mustafa and 1 guest