EGLFS启用但前提条件不符,正在在Rpi3上安装Qt。

huangapple go评论77阅读模式
英文:

error EGLFS enabled but pre-condition fail, installing qt on Rpi3

问题

I am trying to compile Qt 5.15.8 LTS from source for my RPi3. I followed the steps in this tutorial, but I encounter errors when using the -opengl and -eglfs options. The error states: Feature "eglfs" was enabled, but the pre-condition failed. The same issue occurs with the opengl option. I've researched and suspect a conflict between Broadcom and Meza libraries, even though I'm using the latest RPi OS. I'm using VSCode + CMake via SSH and can't start any window on the RPi screen. I also noticed I have Qt GUI module (libqt5gui5-5.15.2+dfsg-9+rpi1) installed by default. Is there a way to use these libraries with VSCode instead of compiling the entire Qt framework from scratch, which previously took around 40 hours?

英文:

im trying to compile from source Qt 5.15.8 LTS into my rpi3, i did updated/upgraded and follow all the steps of this tutorial, but i cant compile if i use the -opengl and -eglfs options, every time i get the same error Feature "eglfs" was enabled, but the pre-condition failed , same for opengl, i can configure/compile as long i dont use those 2 options, but sadly when i try to run any compiled program using the qt lybraries i get the follow error qt.qpa.plugin: could not find the qt platform plugin "xcb" in "" same for eglfs, and only give me 4 options, linuxfb, minimal, offscreen, vnc

i did read somewhere that the problem might be a conflict betwen the broadcom and meza libraries, but im using a rpi3 and installed the latest os from the rpi page.

i have been checking every tutorial, example and qt forum to no avail, honestly i start to believe that using qt on rpi3 is imposible, as anyone ever been capable of compiling and running apps on the rpi3?

note: im using vscode+cmake via ssh from my laptop to the rpi and it works ok, the only problem is that im unable to start any window on the rpi screen.

no mather if i use any of the follow, i cant configure, i have to remove all of them in order for configure script to work -eglfs -opengl -xcb

EDIT, forgot to add the output of the compile as well my compile configuration

EDIT2 while checking the installed programs on my rpi3 i did found i have by default installed qt gui module(libqt5gui5-5.15.2+dfsg-9+rpi1) as well others but they seems to be libraries, theres anyway to use those to compile using vscode instead of the header files?, that way i might avoid compiling from scracht the entire qt framework, last time took me like 40 hours to fully compile

Configuration
EGLFS启用但前提条件不符,正在在Rpi3上安装Qt。

if i try to compile using the -eglfs i get the follow error
EGLFS启用但前提条件不符,正在在Rpi3上安装Qt。

when i check if eglfs is aviable its not (QPA Backends)
EGLFS启用但前提条件不符,正在在Rpi3上安装Qt。

if i compile without the opengl and eglfs i can create programs but im unable to run it and get the next error
EGLFS启用但前提条件不符,正在在Rpi3上安装Qt。

答案1

得分: 1

如果你只需要Raspberry OS提供的Qt版本,那么你可能只需安装开发包:

sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

但我不确定你是在寻找X11版本还是eglfs版本,这并不清楚。

英文:

If all you want is the version of Qt provided by Raspberry OS, then you can probably get away with installing the dev packages:

sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

I'm not sure if you are looking for the X11 version or the eglfs version though, this isn't clear.

huangapple
  • 本文由 发表于 2023年4月17日 12:58:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76031831.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定