rdar-lab / jfrog-cli-yocto-plugin

Apache License 2.0
6 stars 4 forks source link

bitbake: command not found on MAC #10

Open harishgoudb opened 2 years ago

harishgoudb commented 2 years ago

I am following the instructions provided in https://github.com/rdar-lab/jfrog-cli-yocto-plugin using the JFrog_CLI plugin. Could you please assist on below issue.

-mac poky % pwd /Users/bandih/pypi/jfrog-cli-yocto-plugin/poky

mac poky % jf jfrog-yocto bake core-image-minimal

Running pre steps. Running directory=. Cleaning tmp folder Running Bit bake. target=core-image-minimal. This may take a long time.... /Users/bandih/pypi/jfrog-cli-yocto-plugin/poky/scripts/oe-buildenv-internal: line 46: python: command not found BitBake requires Python 2.7.3 or later bash: bitbake: command not found exit status 127 exit status 127

rdar-lab commented 2 years ago

To build Yocto on Macos you need to use a docker container. Native build is not supported. See https://github.com/rdar-lab/jfrog-cli-yocto-plugin#using-with-docker

harishgoudb commented 2 years ago

Thanks @rdar-lab If I use a Docker container I get this error. How do I install "bitbake".

bandih@bandih-mac jfrog-cli-yocto-plugin % docker run --rm -it \

-v /Users/bandih/Downloads/Yocto/jfrog-cli-yocto-plugin/poky:/home/build/workspace \ -v /Users/bandih/.jfrog:/home/build/.frog \ -v yoctotmp:/home/build/workspace/build/tmp \ jfrog-yocto-builder bake core-image-minimal Running pre steps. Running directory=. Cleaning tmp folder Running Bit bake. target=core-image-minimal. This may take a long time.... Bitbake is not compatible with python v3 Please set up python v2 as your default python interpreter bash: bitbake: command not found exit status 127 bandih@bandih-mac jfrog-cli-yocto-plugin %

harishgoudb commented 2 years ago

@rdar-lab Could you please assist

harishgoudb commented 1 year ago

@rdar-lab can you provide a working example if possible?

rdar-lab commented 1 year ago

Hi, bitbake command was part of the build back when I created this, and was on the scripts created when you bootstrap the project (meaning it is on the source folders after cloning pokey)

rdar-lab commented 1 year ago

Also the build under container is based on the gmacario/build-yocto project. Please open an issue there to get that solved.