ILD

build imx6 qt6 with opengl es3 support
作者:Yuan Jianpeng 邮箱:yuanjp89@163.com
发布时间:2023-6-2 站点:Inside Linux Development


install Qt6 dependencies

install ninja

$ sudo apt install ninja-dev

Build host qt6


ubuntu build qt6 host failed:

CMake Error at /usr/lib/llvm-6.0/lib/cmake/clang/ClangTargets.cmake:496 (message):
  The imported target "clangBasic" references the file

     "/usr/lib/llvm-6.0/lib/libclangBasic.a"

  but this file does not exist.  Possible reasons include:

because multiple version libclang installed [2]

$ sudo apt-get purge --auto-remove libclang-common-6.0-dev


ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.


install opengl package [1]

$ sudo apt install libgl1-mesa-dev libglu1-mesa-dev


Cross compile qt6



Reference

[1] https://forum.qt.io/topic/122458/qt-6-0-build-from-source-on-raspberry-pi-4-opengl-functionality-tests-failed/15

[2] https://github.com/CastXML/CastXML/issues/148


Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.