Closed RobertWilbrandt closed 4 years ago
This *** missing separator
seems to be same/similar to the issue #25? Please attach the generated ArduinoSystem.cmake. Will try to see if there is any issue in that file.
I will not suggest to use CMAKE_C_COMPILER_WORKS, CMAKE_CXX_COMPILER_WORKS. I think it will just delay the error to the build time.
I attached the file over in the other issue, but it turns out this is actually the same issue and fixed by #27. For some reason i was convinced these were different problems. Thank you for the quick response.
I am currently unable to build your examples as described without modifying the Toolchain file.
Problem Description
I tried building your examples just as descrbed in the markdown file. After a first run, i set the board in
BoardOptions.cmake
to the arduino due (also tested with arduino uno). Re-running the cmake command leads to the following error:Workaround
After some googling this seems to be a common issue when crosscompiling with cmake. I was able to work around this problem by bypassing the compiler tests completely, but this doesn't seem like the correct way to do this. My workaround was simply adding the two lines
to
Arduino-toolchain.cmake
.System
I am not quite sure which information is relevant to you, so i'll just post some system information here. I work on an ubuntu 18.04.4.
I use the current Arduino IDE with version 1.8.12.
Conclusion
As this seems to be a common problem with cross-compiling, it would be nice to find a usable fix for this. As i don't have any experience cross-compiling with cmake, any help would be appreciated.