OpendTect Plugin Development

95 views
Skip to first unread message

Alexandre Henrique

unread,
Jun 13, 2019, 10:41:52 AM6/13/19
to devel...@opendtect.org
Hello,

I'm starting a new project with UERJ (Rio de Janeiro State University) from Brazil and I would like to know if is possible to adds a external library to build a plugin. I need to read and write some netcdf files and they have a library that is already in C++. 

It's possible to add the lib.so and dynamically load it?

Thank you in advance,
Alexandre Henrique

JB West

unread,
Jun 13, 2019, 12:03:59 PM6/13/19
to devel...@opendtect.org
Yes, a plug-in can reference another dynamic library.

Jbw

--
You received this message because you are subscribed to the Google Groups "OpendTect Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@opendtect.org.
To view this discussion on the web visit https://groups.google.com/a/opendtect.org/d/msgid/developers/CAL43xpBUWYh3HMeqRd4c85rvBRcd0Oy1AUhAUqw%2BE%3D3-u%3DqkGg%40mail.gmail.com.

wayne.mogg

unread,
Jun 13, 2019, 11:41:23 PM6/13/19
to OpendTect Developers
Yes this isn't a problem but you need to compile the external library with a compiler version compatible with your OpendTect release (currently for 6.4.4 that means Visual Studio 2017 on Windows and gcc 4.8.5 on Linux). Have a look at my GeopackageExport plugin which links to the gdal external library. There are some extra lines in the CMakeLists.txt file for adding the external library to the linker search path and for finding the header file.

Wayne Mogg

Alexandre Henrique

unread,
Jun 17, 2019, 3:42:48 PM6/17/19
to OpendTect Developers
Thank You Wayne!!
Just by coincidence, i was already seeing this exactly plugin in your github repository.

Alexandre Henrique
Reply all
Reply to author
Forward
0 new messages