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

Missing dependency when BUILD_EASYLOGGING is set to False #3279

Closed
RanoVeder opened this issue Feb 18, 2019 · 1 comment
Closed

Missing dependency when BUILD_EASYLOGGING is set to False #3279

RanoVeder opened this issue Feb 18, 2019 · 1 comment

Comments

@RanoVeder
Copy link
Contributor

Required Info
Camera Model D400
Operating System & Version Linux (Ubuntu 18)
Kernel Version (Linux Only) 4.18.0-15-generic
Platform PC
SDK Version master @ ba7c2d9

Issue Description

Compiling librealsense as a static library with all options disabled will cause the compiler to error on the file src/linux/backend-hid.h/cpp (Logs included below)

It seems that the < fstream > dependency is not included in any of the headers. However, if you set BUILD_EASYLOGGINGPP to TRUE, the error will go away.

I've locally fixed this issue by including < fstream > in src/backend.h.

Maybe consider adding this or a similar change in the source.

Cmake options: https://imgur.com/a/yT1ezNl
make logs: https://pastebin.com/W9NB6s5W

@dorodnic
Copy link
Contributor

Hi @RanoVeder
Thanks, yes, this should be addressed in the next release.
Also, if you would like to create a pull-request it would be even better.

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