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

How to create _just_ the C++ library visr_bear? #11

Open
trevorknight opened this issue Nov 14, 2023 · 1 comment
Open

How to create _just_ the C++ library visr_bear? #11

trevorknight opened this issue Nov 14, 2023 · 1 comment

Comments

@trevorknight
Copy link

In the README it says:

visr_bear: a real-time C++ implementation of the BEAR, using libear and VISR. It has a C++ API that makes it reasonably straightforward to embed into other applications; see visr_bear/include/api.hpp

If I am only interested in using bear to render in a different C++ library, is there a easier shortcut to just building that as a static lib without all the python bindings and whatnot? The visr_bear/CMakeLists.txt seems to still have Python bindings and be quite complicated.

Thanks for your time and help!

@tomjnixon
Copy link
Member

Hi,

I'm not sure there's a shortcut as such, it's unfortunately a bit of a complicated thing to get right. They are generally amenable to a standard cmake configure/install process, though.

The python bindings can be disabled by disabling BUILD_PYTHON_BINDINGS,

The EAR production suite has some cmake code to build visr and visr_bear as cmake subprojects (so as a user you don't need to have them installed), starting here: https://github.com/ebu/ear-production-suite/blob/e14ba77ca3c77de5c62b99a22dd74819a37c57b3/submodules/CMakeLists.txt#L84

Most of the complexity comes from VISR. We've tried to improve it over the years, but it's always hard because there are a lot of hidden requirements. One thing we could do id provide some vcpkg definitions for visr and visr_bear, I'll have a look into that.

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