I have programmed some OF applications, and deploy them onto the same machine which runs Linux64 OS. The problem is, all those apps are linked against the static OF library ‘libopenframeworks.a’, which causes quite a lot of redundant binaries and makes apps too big.
I have done quite a lot search, failing to find a way to build OF as a dynamic library. Could you guys give some hints ? Thanks !
drakko
May 25, 2017, 8:56am
#2
There is some info on this thread:
I have a couple of custom libraries which use OF code and are built as dlls. Since OF is a static lib each dll get linked with a static copy of OF which means that any static OF variables can potentially contain different values as each dll has it’s own copy of the library. Is this a problem? I’ve run into this issue before and usually solve it by creating all libraries as dlls. However there does not seem to be support for building OF as a dll under Windows.
Any suggestions would be appreciat…
I’ve already checked that post, but not much useful stuff found.
I am wondering where are those ‘flags’ …
Maybe this is useful?
I’d like to use ofxOsc in a non OF project, so my idea is to create a dylib in xcode, then link to it at run time. I’d like to take empty example, add ofxOsc, change settings to output as dylib, remove the source files, then add an interface header and implementation cpp. Can that be done?
I’ve tried adding openframeworks lib to a new non OF project and added ofxOsc but it just won’t compile, it won’t find ofMain.h as I assume it’s not getting the correct header search paths.
edit: I tried add…