英文:
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
if i try to compile using the -eglfs i get the follow error
when i check if eglfs is aviable its not (QPA Backends)
if i compile without the opengl and eglfs i can create programs but im unable to run it and get the next error
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论