Just tried downloading and using this, on arduino 1.0.5, but it's throwing some errors when I try to cmake.
cd ~/downloads/arduino-cmake-master/build
Joriss-MacBook-Pro-2:build jorishoogeboom$ ls
CMakeCache.txt Makefile example
CMakeFiles cmake_install.cmake
Joriss-MacBook-Pro-2:build jorishoogeboom$ cmake ..
-- ARDUINO Boards:
-- uno: Arduino Uno
-- atmega328: Arduino Duemilanove w/ ATmega328
-- diecimila: Arduino Diecimila or Duemilanove w/ ATmega168
-- nano328: Arduino Nano w/ ATmega328
-- nano: Arduino Nano w/ ATmega168
-- mega2560: Arduino Mega 2560 or Mega ADK
-- mega: Arduino Mega (ATmega1280)
-- leonardo: Arduino Leonardo
-- esplora: Arduino Esplora
-- micro: Arduino Micro
-- mini328: Arduino Mini w/ ATmega328
-- mini: Arduino Mini w/ ATmega168
-- ethernet: Arduino Ethernet
-- fio: Arduino Fio
-- bt328: Arduino BT w/ ATmega328
-- bt: Arduino BT w/ ATmega168
-- LilyPadUSB: LilyPad Arduino USB
-- lilypad328: LilyPad Arduino w/ ATmega328
-- lilypad: LilyPad Arduino w/ ATmega168
-- pro5v328: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328
-- pro5v: Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168
-- pro328: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
-- pro: Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168
-- atmega168: Arduino NG or older w/ ATmega168
-- atmega8: Arduino NG or older w/ ATmega8
-- robotControl: Arduino Robot Control
-- robotMotor: Arduino Robot Motor
--
-- ARDUINO Programmers:
-- avrisp: AVR ISP
-- avrispmkii: AVRISP mkII
-- usbtinyisp: USBtinyISP
-- usbasp: USBasp
-- parallel: Parallel Programmer
-- arduinoisp: Arduino as ISP
--
-- Generating wire_example
-- Generating blink_original
-- Generating blink_bundled
-- Generating blink_lib
-- Generating blink
-- Configuring done
CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
Policy CMP0038 is not set: Targets may not link directly to themselves.
Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Target "uno_example" links to itself.
Call Stack (most recent call first):
cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
cmake/Platform/Arduino.cmake:391 (setup_arduino_libraries)
example/CMakeLists.txt:73 (generate_arduino_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/Platform/Arduino.cmake:983 (add_library):
Policy CMP0038 is not set: Targets may not link directly to themselves.
Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Target "uno_example" links to itself.
Call Stack (most recent call first):
cmake/Platform/Arduino.cmake:1040 (setup_arduino_library)
cmake/Platform/Arduino.cmake:391 (setup_arduino_libraries)
example/CMakeLists.txt:73 (generate_arduino_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error: Cannot determine link language for target "diecimila_CORE".
CMake Error: CMake can not determine linker language for target: diecimila_CORE
CMake Error: Cannot determine link language for target "diecimila_Wire".
CMake Error: CMake can not determine linker language for target: diecimila_Wire
CMake Error: Cannot determine link language for target "uno_CORE".
CMake Error: CMake can not determine linker language for target: uno_CORE
-- Generating done
-- Build files have been written to: /Users/jorishoogeboom/downloads/arduino-cmake-master/build
and then here also the making fails:
Joriss-MacBook-Pro-2:build jorishoogeboom$ make
make[2]: *** No rule to make target `example/CMakeFiles/uno_CORE.dir/build'. Stop.
make[1]: *** [example/CMakeFiles/uno_CORE.dir/all] Error 2
make: *** [all] Error 2
Just tried downloading and using this, on arduino 1.0.5, but it's throwing some errors when I try to cmake.
and then here also the making fails: