Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clash with libpcre : duplicate symbol when linking dynamically to Gstreamer #5

Open
avilleret opened this issue Jan 20, 2017 · 1 comment

Comments

@avilleret
Copy link
Member

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

@lopho
Copy link
Contributor

lopho commented Jan 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants