好几天没搞好,郁闷。 过来求一个。也不知道自己哪里设置不对。
测试同一个QT的opengl例子:
使用全志库,失败信息如下:
...
Got keys from plugin meta data ("webp")
QFactoryLoader::QFactoryLoader() checking directory path "/boot/imageformats" ...
loaded library "/usr/lib/qt/plugins/imageformats/libqgif.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqicns.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqico.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqjpeg.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqsvg.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqtga.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqtiff.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqwbmp.so"
loaded library "/usr/lib/qt/plugins/imageformats/libqwebp.so"
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/plugins/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/boot/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/plugins/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/boot/accessiblebridge" ...
EGL Error : Could not create the egl surface: error = 0x3003
Aborted
转用主线开源lima+mesa3d.测试同样的qt例子。
...
Got keys from plugin meta data ("eglfs_kms")
QFactoryLoader::QFactoryLoader() checking directory path "/boot/egldeviceintegrations" ...
loaded library "/usr/lib/qt/plugins/egldeviceintegrations/libqeglfs-kms-integration.so"
MESA-LOADER: failed to open lima: /usr/lib/dri/lima_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
failed to load driver: lima
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri)
failed to load swrast driver
Could not create GBM device (No such file or directory)
Could not open DRM device
Aborted
离线