of
of copied to clipboard
Clash with libpcre : duplicate symbol when linking dynamically to Gstreamer
There are lots of duplicate symbol when linking statically to of (with OF_STATIC=ON) and dynamically to Gstreamer.
The duplicate symbols are in libpcre with is used both by Gstreamer and Poco.
One workaround is to unbundle Poco library and use system libraries instead of the one shipped with Poco.
To do so configure with : cmake -DPOCO_UNBUNDLED=ON ../of
Well, you could add hidden visibility to the properties if it's built static: insert at https://github.com/ofnode/of/blob/master/src/poco/CMakeLists.txt#L94
if(UNIX AND POCO_STATIC)
add_definitions("-fvisibility=hidden")
endif()
Don't know if this would be enough, but you could give it a try.