Bitbake with cmake recipe [Yocto]

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbake with cmake recipe [Yocto]

7,320 Views
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.

Labels (3)
0 Kudos
2 Replies

7,304 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Can you provide the log.do_configure??

 

 

0 Kudos

7,299 Views
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 Kudos