{"action":"created","issue":{"url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/53","repository_url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG","labels_url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/53/comments","events_url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/53/events","html_url":"https://github.com/arduino-cmake/Arduino-CMake-NG/issues/53","id":374237755,"node_id":"MDU6SXNzdWUzNzQyMzc3NTU=","number":53,"title":"Toolchain can't find avrdude","user":{"login":"tobiashienzsch","id":41272761,"node_id":"MDQ6VXNlcjQxMjcyNzYx","avatar_url":"https://avatars1.githubusercontent.com/u/41272761?v=4","gravatar_id":"","url":"https://api.github.com/users/tobiashienzsch","html_url":"https://github.com/tobiashienzsch","followers_url":"https://api.github.com/users/tobiashienzsch/followers","following_url":"https://api.github.com/users/tobiashienzsch/following{/other_user}","gists_url":"https://api.github.com/users/tobiashienzsch/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiashienzsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiashienzsch/subscriptions","organizations_url":"https://api.github.com/users/tobiashienzsch/orgs","repos_url":"https://api.github.com/users/tobiashienzsch/repos","events_url":"https://api.github.com/users/tobiashienzsch/events{/privacy}","received_events_url":"https://api.github.com/users/tobiashienzsch/received_events","type":"User","site_admin":false},"labels":[{"id":1046913748,"node_id":"MDU6TGFiZWwxMDQ2OTEzNzQ4","url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"MrPointer","id":10564482,"node_id":"MDQ6VXNlcjEwNTY0NDgy","avatar_url":"https://avatars1.githubusercontent.com/u/10564482?v=4","gravatar_id":"","url":"https://api.github.com/users/MrPointer","html_url":"https://github.com/MrPointer","followers_url":"https://api.github.com/users/MrPointer/followers","following_url":"https://api.github.com/users/MrPointer/following{/other_user}","gists_url":"https://api.github.com/users/MrPointer/gists{/gist_id}","starred_url":"https://api.github.com/users/MrPointer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrPointer/subscriptions","organizations_url":"https://api.github.com/users/MrPointer/orgs","repos_url":"https://api.github.com/users/MrPointer/repos","events_url":"https://api.github.com/users/MrPointer/events{/privacy}","received_events_url":"https://api.github.com/users/MrPointer/received_events","type":"User","site_admin":false},"assignees":[{"login":"MrPointer","id":10564482,"node_id":"MDQ6VXNlcjEwNTY0NDgy","avatar_url":"https://avatars1.githubusercontent.com/u/10564482?v=4","gravatar_id":"","url":"https://api.github.com/users/MrPointer","html_url":"https://github.com/MrPointer","followers_url":"https://api.github.com/users/MrPointer/followers","following_url":"https://api.github.com/users/MrPointer/following{/other_user}","gists_url":"https://api.github.com/users/MrPointer/gists{/gist_id}","starred_url":"https://api.github.com/users/MrPointer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrPointer/subscriptions","organizations_url":"https://api.github.com/users/MrPointer/orgs","repos_url":"https://api.github.com/users/MrPointer/repos","events_url":"https://api.github.com/users/MrPointer/events{/privacy}","received_events_url":"https://api.github.com/users/MrPointer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-10-26T05:59:15Z","updated_at":"2018-11-08T02:14:04Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\n**OS:** Ubuntu 18.04LTS & Arch Linux (kernel 4.19)\r\n\r\nI'm having the same issue on Arch & Ubuntu\r\nI installed all the dependencies listed in the wiki. I made sure that avrdude is installed with:\r\n```sh\r\n# which avrdude\r\n/usr/bin/avrdude\r\n```\r\n\r\nthen I went into the examples folder and created a build directory:\r\n```sh\r\ncd Arduino-CMake-NG/examples\r\nmkdir build && cd build\r\n```\r\n\r\nThe problem is that when running:\r\n```sh\r\ncmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Arduino-Toolchain.cmake ..\r\n```\r\nI get the following error:\r\n\r\n```\r\n-- The C compiler identification is GNU 5.4.0\r\n-- The CXX compiler identification is GNU 5.4.0\r\n-- The ASM compiler identification is GNU\r\n-- Found assembler: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc\r\nCMake Error at /home/tobante/Developer/LightControl/Arduino-CMake-NG/cmake/Platform/System/AvrToolsFinder.cmake:43 (message):\r\n  avrdude program is required by the toolchain but can't be found\r\nCall Stack (most recent call first):\r\n  /home/tobante/Developer/LightControl/Arduino-CMake-NG/cmake/Platform/System/BuildSystemInitializer.cmake:11 (find_tool_avrdude_configuration)\r\n  /home/tobante/Developer/LightControl/Arduino-CMake-NG/cmake/Platform/System/BuildSystemInitializer.cmake:22 (find_required_platform_tools)\r\n  /home/tobante/Developer/LightControl/Arduino-CMake-NG/cmake/Platform/Arduino.cmake:34 (initialize_build_system)\r\n  /usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake:26 (include)\r\n  CMakeLists.txt:3 (project)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/home/tobante/Developer/LightControl/Arduino-CMake-NG/examples/build/CMakeFiles/CMakeOutput.log\".\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/comments/436848641","html_url":"https://github.com/arduino-cmake/Arduino-CMake-NG/issues/53#issuecomment-436848641","issue_url":"https://api.github.com/repos/arduino-cmake/Arduino-CMake-NG/issues/53","id":436848641,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjg0ODY0MQ==","user":{"login":"tobiashienzsch","id":41272761,"node_id":"MDQ6VXNlcjQxMjcyNzYx","avatar_url":"https://avatars1.githubusercontent.com/u/41272761?v=4","gravatar_id":"","url":"https://api.github.com/users/tobiashienzsch","html_url":"https://github.com/tobiashienzsch","followers_url":"https://api.github.com/users/tobiashienzsch/followers","following_url":"https://api.github.com/users/tobiashienzsch/following{/other_user}","gists_url":"https://api.github.com/users/tobiashienzsch/gists{/gist_id}","starred_url":"https://api.github.com/users/tobiashienzsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobiashienzsch/subscriptions","organizations_url":"https://api.github.com/users/tobiashienzsch/orgs","repos_url":"https://api.github.com/users/tobiashienzsch/repos","events_url":"https://api.github.com/users/tobiashienzsch/events{/privacy}","received_events_url":"https://api.github.com/users/tobiashienzsch/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T02:14:04Z","updated_at":"2018-11-08T02:14:04Z","author_association":"NONE","body":"One quick follow up question: How do I add new platforms to the SDK?\r\nI have a mkr1000 board. It needs the [ArduinoCore-samd](https://github.com/arduino/ArduinoCore-samd) repository. I tried cloning it to ``` $ARDUINO_SDK_PATH/hardware/arduino ``` next to ```avr```.\r\n\r\nAnd then tried building, with  the following lines in ``` CMakeLists.txt ```:\r\n\r\n```get_board_id(board_id MKR1000)``` and ``` get_board_id(board_id MKR1000 cortex-m0plus) ```\r\n\r\nBoth did not work. I'm probably missing something, but I couldn't find anything in the wiki."}}
{"actor":{"display_login":"tobiashienzsch"}}