#cmake #yocto #yocto-recipe
#cmake #йокто #йокто-рецепт
Вопрос:
Я пытаюсь создать свой рецепт для проекта, который зависит от различных компонентов, таких как Qt framework, Armadillo и Carmenta, несколько дней назад я боролся с ошибкой. Я нашел похожие ошибки, но все еще не могу решить свою проблему. ниже вы найдете содержимое файла log.do_configure.
DEBUG: Executing python function externalsrc_configure_prefunc DEBUG: Python function externalsrc_configure_prefunc finished DEBUG: Executing shell function do_configure -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc -- Check for working C compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g -- Check for working CXX compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/git (found version "2.24.3") -- Found ZLIB: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot/usr/lib/libz.so (found version "1.2.11") -- Found HDF5: hdf5::hdf5 (found version "1.8.21") -- Found OpenGL: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot/usr/lib/libGL.so CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/workspace/sources/ammsc2/AMMSC2-GuiLib/Carmenta_INCLUDE_DIR used as include directory in directory /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/workspace/sources/ammsc2/AMMSC2-GuiLib -- Configuring incomplete, errors occurred! See also "/home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/ammsc2-1.0.4/CMakeFiles/CMakeOutput.log". WARNING: exit code 1 from a shell command. ERROR: Execution of '/home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/temp/run.do_configure.29005' failed with exit code 1: -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc -- Check for working C compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g -- Check for working CXX compiler: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/x86_64-poky-linux-g -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot-native/usr/bin/git (found version "2.24.3") -- Found ZLIB: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot/usr/lib/libz.so (found version "1.2.11") -- Found HDF5: hdf5::hdf5 (found version "1.8.21") -- Found OpenGL: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/recipe-sysroot/usr/lib/libGL.so CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/workspace/sources/ammsc2/AMMSC2-GuiLib/Carmenta_INCLUDE_DIR used as include directory in directory /home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/workspace/sources/ammsc2/AMMSC2-GuiLib -- Configuring incomplete, errors occurred! See also "/home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/tmp/work/core2-64-poky-linux/ammsc2/1.0.4-r0/ammsc2-1.0.4/CMakeFiles/CMakeOutput.log". WARNING: exit code 1 from a shell command.
Комментарии:
1. Согласно сообщению об ошибке, целое
/home/azibi/workspace/yocto_project/dunfell_x64_C2_bsp/build/workspace/sources/ammsc2/AMMSC2-GuiLib/Carmenta_INCLUDE_DIR
-это имя переменной . Вероятно, это связано с библиотекой Carmenta и ее каталогом include.NOTFOUND
значение для такой переменной означает, что CMake не может найти свой каталог include.