Skip to content

Missing dependency when BUILD_EASYLOGGING is set to False #3279

@RanoVeder

Description

@RanoVeder
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions