我尝试了Qt提供的示例模块。我下载了qt-everywhere-opensource-src-5.9.3 tar文件并将其解压缩。然后我运行以下命令。
./configure -v -prefix $ PWD / qtbase -commercial -nomake tests -opengl es2 -egl
但是我遇到了这些错误。
Note: Also available for Linux: linux-clang linux-icc Note: Dropped compiler flags '-pthread' when detecting library 'glib'. Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing. Note: No wayland-egl support detected. Cross-toolkit compatibility disabled. ERROR: Feature 'egl' was enabled, but the pre-condition '(features.opengl || features.openvg) && (features.angle || libs.egl)' failed.
系统上安装了EGL相关库。
你可能错过了一些包裹。如果你想要Wayland,你最有可能需要为libwayland
和libwayland-egl
开发包,但我不确定它们在Ubuntu上被称为什么。