Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fprime-util generate but has a error "Could not run 'arduino-cli' " #15

Open
henrybb0826 opened this issue Aug 22, 2024 · 5 comments
Open

Comments

@henrybb0826
Copy link

Excuse me, I follow the steps by tutorial to the steps of fprime-util generate after creating a new deployment.
However, I got some error saying "Could not run 'arduino-cli' please install 'arduino-cli' and board 'rp2040:rp2040:rpipicow'."
I am pretty sure that I installed arduino-cli and the core of rp2040 in fprime-venv.
Am I missing some path-adding steps or other important things?
螢幕快照 2024-08-22 16-00-28
螢幕快照 2024-08-22 16-01-08

@ethancheez
Copy link
Collaborator

From your screenshot, I see this:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

Do you have a C/C++ compiler installed on your system? And also Make installed?

For example if you type these:

g++

make

Are these commands found?

@henrybb0826
Copy link
Author

Yes, they are all installed.
螢幕快照 2024-08-22 18-58-58
After searching other issues I found that in this link has the same situation just like me.
However, I don't understand the meaning of the solution of resetting the persistence layer and populating the Arduino workspace directory with the board packages.

@ethancheez
Copy link
Collaborator

@capsulecorplab What was your solution to this issue? Seems like you had a similar issue last year with your VM workspace setup.

@capsulecorplab
Copy link

capsulecorplab commented Aug 23, 2024

@capsulecorplab What was your solution to this issue? Seems like you had a similar issue last year with your VM workspace setup.

I had to use a specific commit from @SterlingPeet's arduino-cli wrapper to fix it in my virtual environment https://github.com/fprime-community/fprime-workspace-image/blob/main/playbook.yaml#L265. You could try doing the same or just pull and run the fprime-workspace-image since it's already configured to build the led blinker project

@SterlingPeet
Copy link

Hello Folks, progress was made on the arduino-cli-wrapper just days ago, I haven’t had the chance to add some tests and push it. I’ll push the code that appears to be working and link a commit here in the next day or so.

@henrybb0826 are you able to compile an arduino sketch with the cli, and target the rpipocow board? This would confirm that it is installed and that the next step is try my code that is not yet available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants