Bitbake with cmake recipe [Yocto]

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bitbake with cmake recipe [Yocto]

7,642件の閲覧回数
ardtrkc
Contributor II

Hello !

We have a c++ code and CMakeLists.txt on Github which needs to be run with Cmake. However, when we try to bitbake our recipe we get this specific CMake error;

Screenshot_3.png

-Please check below for our recipe and txt. files-

Our recipe (helloworld.bb) is as follows:

# Recipe for the Hello World program

SUMMARY = "Recipe for the Hello World program"
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""

DEPENDS += "opencv"
DEPENDS += "libconfig"
DEPENDS += "tensorflow-lite"

SRC_URI = "git://github.com/aniladar/patch.git;protocol=https;branch=main"

SRCREV = "${AUTOREV}"

# Here we specify the source directory, where we do all the building and expect sources to be placed
S = "${WORKDIR}/git"
B = "${S}"
inherit cmake

 

The CMakeLists.txt file is as follows:

cmake_minimum_required(VERSION 3.14)

project(patch)

add_executable(minimal minimal.cc)

 

Can anyone give some hints where we are doing wrong or what should be included in our recipe?

Your guidance and clarifications are important for us.

Thank you in advance.

ラベル(3)
0 件の賞賛
2 返答(返信)

7,626件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Can you provide the log.do_configure??

 

 

0 件の賞賛

7,621件の閲覧回数
ardtrkc
Contributor II

Hi,

log.do_configure is below.

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
CMake Error: The source directory "/home/student/fsl-release-bsp/build-analytics-tflite/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/helloworld/1.0-r0/git" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /home/student/fsl-release-bsp/build-analytics-tflite/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/helloworld/1.0-r0/temp/log.do_configure.28784)

 

0 件の賞賛