CMakeLists.txt Not Found Error in during BitBake for Onnxruntime

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

CMakeLists.txt Not Found Error in during BitBake for Onnxruntime

2,022 Views
jnj
Contributor III

I am working on imx8qxp with Linux version 5.15.71-2.2.1. While executing the full image bitbake command [bitbake imx-image-full], I encountered an error stating that CMakelists.txt is not found in the path tmp/work/armv8a-poky-linux/onnxruntime/1.10.0-r0/git/cmake/external/googletest. Could someone please assist me in resolving this error?

Thanks in advance.

0 Kudos
Reply
5 Replies

2,003 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @jnj!
Thank you for contacting NXP Support!

I compiled the onnxruntime and I had the CMakeLists.txt

I don´t know why you don't have the file.

Please try to delete and recompile the onnxrunntime package with the next commands:

Bitbake --c clean onnxruntime

Bitbake --c compile onnxruntime

Best Regards!
Chavira

0 Kudos
Reply

1,993 Views
jnj
Contributor III

Hi @Chavira ,

I re-cloned the repo and tried  "bitbake imx-image-full".Now it is throwing anerror 

 

ERROR: onnxruntime-1.10.0-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'gitsm://github.com/nxp-imx/onnxruntime-imx.git;protocol=https;branch=lf-5.15.71_2.2.0;name=runtime')

0 Kudos
Reply

1,986 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @jnj!

Are you compiling in a VM or on a computer?

The fetch errors could be an error from firewalls configured by your company.

I will send the CMakeLists.txt via mail if that can help you.

Best Regards!
Chavira

0 Kudos
Reply

1,978 Views
jnj
Contributor III

Hi @Chavira ,

Thank you for the support. The fetch error was resolved and now it is throwing an another error related to python

ERROR: qtdeclarative-6.3.2-r0 do_package: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_task_postfunc(d)
0003:

 

error during flush to disk: database disk image is malformed

pdb_log_msg: database error.
error during load from disk: database disk image is malformed
Error getting 'files.db' database.
Failed: database disk image is malformed
PRAGMA synchronous = OFF;: database disk image is malformed
PRAGMA journal_mode = OFF;: database disk image is malformed
Setup complete, sending SIGUSR1 to pid 6331.

 

 

 

0 Kudos
Reply

1,973 Views
jnj
Contributor III

Hi @Chavira ,

Issue is resolved by removing the tmp/ folder and re-build the sdk.