Comments (3)
@kukuyok Thanks for the feedback and contribution!
I'll review this sometime soon, it seems really really strange that you get such behavior.
BTW, could you attach your CMakeLists.txt file please?
from arduino-cmake-ng.
Thanks! Sure:
cmake_minimum_required(VERSION 3.8)
set(project_name Cocktail)
## Команда для запуска CMake (run CMake in bash)
## cmake -DCMAKE_TOOLCHAIN_FILE=/home/petro/install/arduino-cmake/cmake/Arduino-Toolchain.cmake -DARDUINO_SDK_PATH=/home/petro/install/arduino-1.8.5 -Darduino_port=/dev/ttyUSB0 ..
## Команда для генерации файлов проекта Eclipse (Eclipse project files generator)
## cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8 -DCMAKE_TOOLCHAIN_FILE=/home/petro/install/arduino-cmake/cmake/Arduino-Toolchain.cmake -DARDUINO_SDK_PATH=/home/petro/install/arduino-1.8.5 -Darduino_port=/dev/ttyUSB0 ../firmware-ecl
set(CMAKE_VERBOSE_MAKEFILE ON)
## Флаги, компенсирующие косяк в сборке C-файлов Arduino-CMake-NG (temporary cure)
#add_definitions(-DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DARDUINO=10802 -DF_CPU=16000000L)
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmcu=atmega2560")
#set(ARDUINO_CMAKE_SKETCHBOOK_PATH /home/petro/Arduino)
project(${project_name} LANGUAGES C CXX ASM)
set(arduino_board mega)
set(board_cpu atmega2560)
get_board_id(board_id ${arduino_board} ${board_cpu})
add_arduino_executable(${project_name} ${board_id} main.cpp)
find_arduino_library(timer_api_lib arduino-timer-api ${board_id})
link_arduino_library(${project_name} timer_api_lib ${board_id})
set(arduino_port /dev/ttyUSB0)
upload_arduino_target(${project_name} ${board_id} ${arduino_port})
I build it in two ways: with Eclipse project (outside project directory) and directly using bash (within project subdirectory) and have same result.
from arduino-cmake-ng.
+1 more notice: I need to rename library directory from arduino-timer-api to Arduino-timer-api. Otherwise library can't be found.
from arduino-cmake-ng.
Related Issues (20)
- Project is dead HOT 1
- upload_arduino_target does not work (avrdude problem?) HOT 4
- Problem when with determining link language. HOT 3
- Include library header from another library HOT 9
- Undefined reference error when linking 3rd party libraries. HOT 4
- Refactor upload API
- Undefined reference to countPulseASM when using pulseIn function HOT 8
- Newbie: need some hand holding. HOT 2
- RegisterHardwarePlatform doesn't work HOT 3
- Install for library depending on platform HOT 6
- FastLED library linker errors HOT 1
- vidor 4000 HOT 1
- SDK not found on Debian 9 with official Arduino binary HOT 2
- Provide means to override `avrdude`
- find_arduino_library simply doesn't work HOT 6
- ARDUINO_SDK_PATH variable is forgotten during compiler check (v0.6.1) HOT 2
- Support for Third-Party Boards - Game plan HOT 4
- Reduce search-paths for version.txt file
- Board 'nano33ble' not working, unrecorgnized command -mcpu=cortex-m4 HOT 1
- SD card library is not being found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-cmake-ng.