From 7b210fb141d396f9e80657bcd094f610d1030c46 Mon Sep 17 00:00:00 2001 From: owendelong Date: Mon, 9 Sep 2019 16:04:21 -0700 Subject: [PATCH] Posted per request from Makuna --- Library-Comercial-Use.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Library-Comercial-Use.md b/Library-Comercial-Use.md index e132b3e..a39055d 100644 --- a/Library-Comercial-Use.md +++ b/Library-Comercial-Use.md @@ -1 +1,13 @@ -(under construction) \ No newline at end of file +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/.ino.cpp.o +