Skip to content

How to build a freestanding Zephyr application with cmake and venv? #75395

Closed Answered by sebistark
sebistark asked this question in Q&A
Discussion options

You must be logged in to vote

I found a workaround.
put the following two commands in CMakeLists before "findpackage()"

set(Python3_EXECUTABLE "/home/xxx/RTOS-exploration/zephyrproject/.venv/bin/activate")
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})

This path is were python venv is located.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by sebistark
Comment options

You must be logged in to vote
3 replies
@sebistark
Comment options

@yashi
Comment options

yashi Aug 29, 2024
Collaborator

@sebistark
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants