As I understand it, the LGPL with the linking must be dynamic (so the user could, if desired, to replace the library), the license must be included, and will need to specify where the source code of the library either include a written commitment to provide them on request.
\r
With the GPL, all code should be under GPL and the code to open need to (or as above to give a pledge). Usually pay attention to what code you are obliged to open only to those with whom you are bound by the terms of the license, that is to whom you deliver the finished product.