Closed ilyak93 closed 2 years ago
Hi @ilyak93 In the discussion https://github.com/IntelRealSense/librealsense/issues/3782 which sounds similar to your situation, a RealSense team member suggested in https://github.com/IntelRealSense/librealsense/issues/3782#issuecomment-486611797 to copy the realsense2.dll file from the RealSense SDK folder location C:\Program Files (x86)\Intel RealSense SDK 2.0\bin\x64\realsense2.dll to the cmake-build-debug folder.
You can find the path that realsense2.dll is located in by installing the full RealSense SDK on Windows. This can be done by going to the Assets file list of a particular RealSense SDK version on the SDK 'Releases' page and then downloading and running the file Intel.RealSense.SDK-WIN10, which is an automated installer for the SDK.
@MartyG-RealSense, I saw that post and tried it, but now trying it again somehow it did work, thank you, sorry about being not attentive.
No problem at all, @ilyak93 - thanks very much for the update. It's great to hear that you succeeded :)
Issue Description
I'm trying to run the camera in CLion. The first error was it hasn't recognize the header, but adding the include folder had solved it.
I added to my CMakeLists.txt the cmake command which should be enough to connect it to the project and the cmake doesn't show any errors, but neither it connected the libraries correct.
That is the total look of the CMakeLists.txt file:
This is the cmake log:
This is the error that I get when I try to put some code lines which refer to the rs2:![image](https://user-images.githubusercontent.com/50303550/144911288-4c5b6e2c-878d-43ae-8d21-4772df99a3bf.png)
How can I solve it ? Thank you in advance.