ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
451 stars 434 forks source link

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

Closed arunumd closed 11 months ago

arunumd commented 12 months 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 11 months ago

Hi Arun,

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