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

Otto Blockly can't compile anything - LINUX #176

Open
NPFabLabEcoCentre opened this issue Nov 18, 2022 · 1 comment
Open

Otto Blockly can't compile anything - LINUX #176

NPFabLabEcoCentre opened this issue Nov 18, 2022 · 1 comment

Comments

@NPFabLabEcoCentre
Copy link

Hi all.
I need help on this.

My computer is an old macBook (white unibody one) with linux mint 20.2
I just installed Arduino IDE using the GUI interface and it work like a charm. I'm able to connect to the Otto, send it a program and upload it each time.

Then, I installed Otto Blockly using the Linux install package I found online on the webSite.
Everything works fine. Except I can't verify my code (compile it) neither upload it cause it doesn't compile.

The error i get is the following :

Error: Command failed: ./arduino-cli compile --fqbn arduino:avr:nano sketch/sketch.ino /bin/sh: 1: ./arduino-cli: not found

Then I tried to install the Arduino-cli thing.... by installing Arduino-builder and Arduino-mk... didn't work.
Tried adding my Arduino folder to my $PATH.... same.

Does anyone have an idea on how to fix this please ? ;p
Thank's !

@ale3andro
Copy link

Hello, the same problem here (Ubuntu 22.04.3 LTS)
Solution for me is hard coding the location of arduino-cli tool
In the file
/opt/OttoBlockly/resources/app
change the 4 occurencies of
./arduino-cli
to
/opt/OttoBlockly/arduino-cli
Restart OttoBlockly app
It works for me now, I am able to compile and upload code to Otto
Hope it helps.
Alex

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

2 participants