Skip to content

Library Comercial Use

Michael Miller edited this page Dec 11, 2019 · 3 revisions

If you use this library in a comercial product, please help keep this library alive by sponsoring it or donating some funds. Thanks!

In order to use the library in a closed-source combined work (e.g. a commercial embedded product for which you don't want to release the source to your application), you must comply with the LGPL terms and release a linkable.o of your application (sketch) that can be used to relink the application with a modified library.

You may also have to release portions of your source code related to the library, depending on your specific situation, how your application is written, and how you interpret some of the requirements in the LGPL 3.0.

In order to extract the .o file that you need to release, you'll need to do some trickery with the Arduino IDE.

The first step is to go to the preferences panel and enable Verbose output for Compilation.

Then, when you compile your application (sketch) you'll need to look for a line in the (very verbose) output which says "Compiling sketch...". The next line is the line you want to look at. Scroll it all the way to the right (of that line) and look for a -o argument to the very long command line there and that will give you a path where you can find the .o in your filesystem after compilation.

An example from a Mac development environment: /var/folders//T/arduino_build_/sketch/<sketch_name>.ino.cpp.o

Clone this wiki locally