Librealsense linking problem in VS2019
Hello, I'm trying to experiment with the librealsense library using c++ in Visual Studio 2019.
The first project I'm experimenting with is this: https://dev.intelrealsense.com/docs/rs-pointcloud
In the project directory I added an "include" folder in which I pasted "librealsense2", "librealsense2-gl". I created a Main.cpp file in which I pasted "#include <librealsense2/rs.hpp>", I compiled and it worked.
Then I added "example.hpp" in the "include" folder, pasted "#include <example.hpp>" in the main file, I compiled and I saw it needed the "third-party" dependencies, which I pasted in the project folder. Then I tried to compile again and some linking problems showed up. I can't wrap my head around what the next step could be.
Can you please help me out? 😊
A screenshot of the errors is attached. The link2019 error translates into "external symbol reference xxx not resolved in the function xxx. The link1120 error translates into "7 external errors not resolved".
Thank you in advance
-
Dorodnic the RealSense SDK Manager and Jim Radford (one of the expert RealSense developers) offer alternative methods of setting up project dependencies in this discussion:
https://github.com/IntelRealSense/librealsense/issues/4277
An easier first step when learning how to develop your own project for the first time with Librealsense is to try the project in the link below, which is standalone and does not require dependencies.
https://github.com/zivsha/librealsense/tree/getting_started_example/examples/getting-started
Please sign in to leave a comment.
Comments
1 comment