7.8.17. Link or load external libraries
In your plugin, you have different possibilites to use external or 3rd party libraries:
18.104.22.168. Link to a static library
If you add an appropriate entry to the linker settings of your project file, it is possible to link to external, static libraries.
This is for example the case when linking to the dataObject.lib or dataObject.so (Linux) or if using any components
of the PointCloudLibrary. When compiling your plugin, the whole implementation
of the libary is compiled into your plugin-library and you don’t need to distribute the external file.
22.214.171.124. Load external library at runtime
The most complicated way to access an external library with respect to the programming cost is to use the command LoadLibrary or the platform-independent Qt-class QLibrary in order load an external library at runtime of your plugin. Then you need to resolve the symbols in the library in order to access them afterwards in a function-call. The advantage of this
method however is, that the library can be at any location since you are able to load the library with its absolute filename. See the Qt documentation for details about the class QLibrary, that is recommended to use.
If you link to external libraries, please consider always the license requirements of the external library.