Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

Proper way of including Dynamic Libraries

$
0
0
Author:mar_kq
Posted: Mon Dec 18, 2017 4:08 pm (GMT+1)


Akos Somorjai wrote:
stefan wrote:
What is the proper way to install an add-on which uses Dynamic Libraries? (DLL on Windows, dylib on OSX).


Specifically on OSX: should they be embedded in the Bundle? Or placed in the same folder as the bundle? In the ArchiCAD Root or Support folder?

e.g. I see for the Rhino add-in, that the "dylib" for OpenNURBS is installed in the ArchiCAD Support folder and that the library has an @rpath/ install name.

Are we allowed to put our dylibs there? Would it be better to have them alongside our own bundle?

I prefer to have an Add-on that is self-contained.


On OS X the preferred way is to put the dylib into the bundle, according to Apple's guidelines. You'll have to set up the root of the @rpath correctly, unless you wan to load the dylib manually via dlopen().

Best, Á kos


Waht would be the best practice for windows?


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>