Questions tagged [build]
32 questions
2
votes
1
answer
95
views
Setting the Libraries Path
I am tracking my Arduino project in git, and using git submodules seems an appropriate way to track the libraries used in the project attached to the git repo of the main project.
However, the default ...
-1
votes
1
answer
122
views
Arduino IDE not seeing Arduino library
Working on my first real Arduino project.
I opened my code in the Arduino IDE and hit build and I get errors "not declared in the scope" on every single call to the Arduino library. For ...
5
votes
1
answer
991
views
How can I have code in a project that won't compile for Arduino?
I want to test the algorithms in my code without needing to send it to an actual Arduino board. I figured I could lay out my project like:
project/
core.cpp # core algorithms
core.h ...
2
votes
1
answer
2k
views
How to rebuild Arduino core for ESP8266
I'm experimenting adding DHCP option 160 to dhcpserver.c in the Arduino core for ESP8266 and therefor need to rebuild the relevant parts.
I made an initial guess that I might be able to make the ...
0
votes
1
answer
2k
views
avr_g++ compiler error: expected primary-expression before '.' token (C code in .ino)
The compiler is complaining about a macro defined in mjson.h
Documents\Arduino\libraries\microjson/mjson.h:135:28: error: expected primary-expression before '.' token
#define STRUCTOBJECT(s, f) ....
1
vote
3
answers
6k
views
Reason for warning "avr:build doesn't define a 'build.board' preference" when build.board is explicitly set in boards.txt?
I am trying to set up a custom board under the Arduino IDE, but I can not figure out why I am getting the warning...
Warning: Board Move38:avr:build doesn't define a 'build.board' preference. Auto-...
2
votes
1
answer
86
views
What is the correct way to create large project files?
I am currently working on a 10x10 RGB LED screen (using Neopixels from Adafruit) and my project files are starting to get rather large.
I have several different devices used in this project:
The LED ...
0
votes
2
answers
736
views
Complex Arduino programs
Im working on a RGB LED matrix project (10 x 10 Neopixels) and I'm using classes to handle the different hardware components. Whats the best way to deal with multiple files in the project eg, I have a ...
2
votes
2
answers
5k
views
Undefined reference in Eclipse of .h and .cpp files
I'm trying to create a linked list for use on the Arduino, in the Eclipse IDE with the Arduino/Sloeber plugin. The linked list is written in a .h and .cpp file, and included locally in the project.
...
1
vote
1
answer
2k
views
How to programmatically upload an Arduino sketch generated by node.js (electron) or from browser?
We are trying to make an app that generates an Arduino sketch (.ino) using Google's Blockly and node.js, and uploads it to Arduino.
Even after searching a lot, I am unable to find how to build and ...
1
vote
1
answer
1k
views
Environment Variable to change build
Is there a way to get the build to see an environment variable so that all the files can be built differently with one Environment variable change. Such as
#ifdef UseFirstDir
#include <C:\...
1
vote
2
answers
616
views
Compiling sketch vi command line
Since I don't like the text editor of the Arduino IDE, I decided to write a python script that I can invoke from my text editor to compile and upload my source. I program the popular esp8266 chip. So ...
1
vote
1
answer
3k
views
writing and uploading sketch as cpp file
I want to use only *.cpp files and no *.ino anymore. I read a lot of stuff about how to upload c++ instead of arduino sketches. But still I was not able to find a step by step guide how to do it.
...
1
vote
1
answer
205
views
How to use same sketch on two different computers in two different directories
I have the same sketch one that I use at my desk and in the lab, but they are in different directories on the different computers. This means that I have to change the paths to the includes which I ...
2
votes
1
answer
607
views
Visibility of #define between sketch and library
I want to have a define from my sketch be picked up by a library.
Here is a similar question for references: Using #define and multiple classes
I have a CI server that compiles my arduino sketchs on ...