Questions tagged [build]

In the field of computer software, the term software build refers either to the process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so.

32 questions
8
votes
1 answer

Is there a way to detect if Arduino, Stino or another IDE/toolchain is in use?

I've noticed some irritating differences between the Arduino IDE and Stino (mainly around including certain header files). These are likely bugs that need following up with one or both of the parties, but in the meantime, I would like my code to…
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
8
votes
3 answers

Are there any products based on Arduino that are sold by companies?

Ok, Arduino is a good technology but is it used professionally? Is the quality good enough to be used for professional purposes?
arezkibe
  • 101
  • 1
  • 3
6
votes
2 answers

How can I adapt the DallasTemperature library to accept another 1-Wire class?

A commonly used library is the DallasTemperature library, used to access DS18B20 sensors on a 1-Wire bus. When creating a DallasTemperature object you pass a reference to a OneWire object. OneWire can create a 1-Wire bus on pretty much any port of…
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
6
votes
1 answer

Why do I need to include libraries used in other libraries?

I have a simple library which uses another library. Here is the header: #ifndef __DERIVEDCLASS_H__ #define __DERIVEDCLASS_H__ #include class DerivedClass { private: HardwareSerial* serial; public: …
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
6
votes
2 answers

Arduino command line vs. Arduino builder

I'm working on adding my Arduino to continuous integration and I came across two different possible ways of doing this, Arduino command line, and arduino-builder. Can someone explain why the arduino-builder tool exists separately from calling…
Bob
  • 185
  • 7
6
votes
1 answer

Understanding global variables on Arduino

I am rewriting a set of LED manipulation functions to be more object oriented, and I have found that, mysteriously, my global variable memory space has been over consumed, despite a reduction of the use of global variables. I played around with a…
watusimoto
  • 61
  • 2
5
votes
1 answer

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 # header for core.cpp project.ino #…
Kevin Reid
  • 163
  • 5
5
votes
1 answer

Cannot compile C++11 code via Makefile

I am building my Arduino project with a makefile: BOARD_TAG = uno ARDUINO_PORT = /dev/ttyACM0 USER_LIB_PATH = /home/prakhar/dev/alfred/arduino/libraries CPPFLAGS=-x c++ -std=c++11 -Wall -DUNIX_ENVIRONMENT -DHAVE_NAMESPACES -DHAVE_STD include…
xyz
  • 359
  • 2
  • 11
3
votes
1 answer

How does Arduino IDE for mac deal with functions in other files

I'm a longtime C programmer. I've also done a little C++, a little Java, and a LOT of Objective-C, but am fairly new to the Arduino platform and it's IDE. So far all my sketches have had a single source file. I see how you copy libraries into the…
Duncan C
  • 5,752
  • 3
  • 19
  • 30
3
votes
2 answers

What would be the architecturally-right place to put custom -D defines?

What I am trying to accomplish is to include information about the state of my environment at build time in my code. For example, I may want the setup() code to print the git sha it was built against, and the time of build. There are two related…
JayEye
  • 776
  • 5
  • 11
2
votes
3 answers

What kind of Arduino should I pick for a calculator?

I am planning to build a calculator using Arduino as the base. I already know C and I love low-level stuff, so I guess the software part won't be a problem. However, I've been stuck with Arduino. What I need is something capable of doing math (as…
rev
  • 121
  • 3
2
votes
1 answer

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 change by installing using git according to the…
2
votes
1 answer

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 matrix A DS3232 RTC An MSGEQ7 DSP chip 7 push…
Matt
  • 158
  • 12
2
votes
2 answers

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. However, when building, I get the error undefined…
davidhood2
  • 123
  • 1
  • 6
2
votes
1 answer

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 commmit. It pulls all my personal libs from an…
Pimmetje
  • 103
  • 8
1
2 3