qt交叉编译 ./configure 选项opengl es2 报错
-
./configure
--prefix=${CYBER_CROSS_WORKING_DIR}/qt-everywhere-src-${VERSION}/arm-qt
-opensource
-debug
-opengl es2
-xplatform linux-arm-gnueabi-g++
-confirm-license
make -j16 && make install
popd
,以上配置会出现报错
将以上选项的-opengl es2 \ 换为-no-opengl \ 可以正常编译安装,请教一下大家这是什么原因? -
@bobbyzhang 看提示,板子是否支持ES2,如果不支持,则把选项去除,如果支持,则你的配置选项出现问题,看提示貌似配置了win32,另外把编译依赖的工具都安装好了,例如python,gperf,具体看文档
-
@bobbyzhang Hi . I don't speak chinese but i understand your issue.
for Qt to detect opengl es 2 you will need to have libEGL.so and libGLESv2.so in your sysroot, especially in opt\vc\libso rename libEGL.so.1 and libGLESv2.so.2 to libEGL.so and libGLESv2.so
rename libEGL_static.a to libEGL.a and
libGLESv2_static.a to libGLESv2.a
Run configure again.You may find detailed infos in my article https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link