-
Notifications
You must be signed in to change notification settings - Fork 41
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
Feedback #17
Comments
Hey, Thanks for your feedback. For 2, I understand your problem. You are actually using some "undocumented" feature to set the default value of the serial port when invoking the CMake. You can also use the documented way of passing the serial port as environment variable in CLion. However, CLion or other IDE specific usage documentation is lacking and expected to improve in the future. I suggest you continue using the method you discovered. Note that in release 1.1 of the toolchain, the name changed to ARDUINO_UPLOAD_SERIAL_PORT. For 1, I did not understand your problem. As far as I know, there is no need to move CMakeLists.txt anywhere. Just need to point to the appropriate directory as the CMake source directory (i.e. Use |
Hey, thanks for getting back to me so quickly. I was running off master. I have just moved to release 1.1 and I am not having "issue" 1 anymore. I suspect this has more to do with something I changed on my side than the version change. For the sake of helping anyone who tries to set this up on CLion in the future. The "tricks" for setting up a working project are as follows:
The most important point is that you should not open the root "Arduino-CMake-Toolchain-release-1.1-dev" in CLion as it will create additional CMakeLists.txt files that will cause issues. |
UPDATEThis issues is related to #19Hi. Next challenge: I am struggling to include BLE libraries. Interestingly this is one library with several includes. Maybe that is related to the issue? I have tried replacing I have also tried I have verified that the includes are located here: The error mentions the search path: CMakeList.txt:
Error:
library.properties:
I am going to keep at it, maybe I am missing something but your help would be great. Thanks |
I have marked this issue as enhancement to make the upload, ISP and other tool related options (like SERIAL_PORT) available through board options file, to improve the usage experience. |
EDITFound the issues in the CMakeLists.txt:
Thank you, that would be a nice enhancement. I have another question. Again, not sure if I am doing something wrong. I am building a large project and I have a .h and .cpp file in some nested folder: CMake runs fine but when compiling I get:
Questions:
|
Hello.
Firstly, thank you for this amazing tool.
Secondly, I have just worked my way through getting this working and I would like to add a little feedback that will make the instructions easier for someone who is potentially inexperienced to follow:
-D CMAKE_TOOLCHAIN_FILE=Arduino-toolchain.cmake -D SERIAL_PORT=COM9
The text was updated successfully, but these errors were encountered: