of icon indicating copy to clipboard operation
of copied to clipboard

Clash with libpcre : duplicate symbol when linking dynamically to Gstreamer

Open avilleret opened this issue 8 years ago • 1 comments

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

avilleret avatar Jan 20 '17 17:01 avilleret

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.

lopho avatar Jan 20 '17 18:01 lopho