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
Board options not found in Ubuntu #29
Comments
You are probably facing a known issue in Ubuntu as explained below taken from here. Installing via apt Although older arduino installation path is detected by the toolchain, it is not able to enumerate the boards due to incompatibility and thus the empty BoardOptions.cmake. If this is the case, please remove the older version of arduino ( If you extract the tar in non-standard location, the toolchain may report the error that Arduino installation is not found. In that case, please provide the installation directory using Note: Just pushed PRs to report warning in case if the installed arduino version is < 1.5, and also to identify the installation paths better in Linux. Although not required, you may use that patch if needed. |
Also, I see you are waiting for a review to merge the PR, would you like me to add that? I'm not sure if you have a review procedure, or just approving with comments would be enough? |
Surprising, because the change was not intended to fix the issue you reported. It worked for you probably because you have another folder named 'arduino*' somewhere, which the toolchain picked up earlier. Now with the change #30, the toolchain possibly picked up the more relevant folder that worked. |
Hi,
I've been trying to get the toolchain running on Ubuntu 18.04, but after following the steps on https://github.com/a9183756-gh/Arduino-CMake-Toolchain/blob/master/Examples/README.md
the BoardOptions.cmake file it creates is empty:
And I suspect it simply is not finding the installed Arduino framework, which I'm not really quite sure is installed properly in the first place. I followed the normal instructions to install it in the main Arduino page. I'm a bit of a newbie on Ubuntu so I'm not quite sure if I have everything configured properly. The installation path of arduino is on /usr/share/arduino.
I have tried the same examples on Windows and it works like a charm, it finds the Arduino installation and boards just fine, and the BoardOptions.cmake is populated properly.
Maybe I'm missing some environment variable, or the path of the Arduino installation is wrong, I'm not sure, or maybe is something completely different.
I'll look into the code to see how it determines the Arduino installation path, but I figured I asked for help anyways.
Thanks!
The text was updated successfully, but these errors were encountered: