ouster-lidar / ouster-sdk

Ouster, Inc. sample code
Other
468 stars 440 forks source link

Unable to include #include "ouster/os_pcap.h" into new C++ files #539

Closed arunumd closed 1 year ago

arunumd commented 1 year ago

Describe the bug The inclusion of #include "helpers.h" into new C++ files other than the _representations_example.cpp_, leads to _fatal error: ouster/ospcap.h: No such file or directory

To Reproduce Steps to reproduce the behavior (steps below are just an example):

  1. Include the "helpers.h" file into client_example.cpp or any other cpp file like shown below in the screenshot on line#12
  2. Compile the code
  3. Run the code
  4. observe the issue

Screenshots image

Platform (please complete the following information):

kairenw commented 1 year ago

Hi Arun,

I think you have to edit the CMakelists.txt appropriately. See the way representations_example is done in examples/CMakelists.txt