Items with no label
3335 Discussions

Identifier Undefined on rs-align example!

EFoo
Novice
2,191 Views

Hello,

I have built the Realsense Library SDK using CMake, without changing anything. However, there are a couple of errors saying these variables are undefined. Still, I managed to compile the program somehow. Do I just ignore these errors? Thank you!!

1 Solution
idata
Employee
990 Views

Hello HippoEug,

Thank you for your interest in the Intel RealSense Technology.

 

Could you please confirm if you have downloaded the source code for the SDK or if you have installed the binaries?

Just as a short definition, binary releases contain computer readable version of the application, meaning it is compiled. Source releases contain human readable version of the application, meaning it has to be compiled before it can be used. The source release is the raw, un-compiled code.

You can follow the below instructions in order to build from source RealSense SDK 2.0 (Librealsense ) on a Windows 10 machine and run the given examples on Visual Studio 2017.

  • Download and install http://cmake.org/download CMAKE
  • Clone or download http://github.com/IntelRealSense/librealsense RealSense SDK 2.0 sources into a local directory (C:/git/librealsense)
  • Run cmake-gui and fill source code and binaries locations and press Configure
    • Where is the source code: C:/git/librealsense
    • Where to build the binaries: C:/git/librealsense/build
  • Click Generate and Open Project
  • Locate the examples required under Example solution folder
  • Right-click on one of the examples to Set as StartUp Project
  • Press F5 to compile and run the example
After you have download the source code for the SDK you can run the CMake GUI as shown in the OpenCV wrapper readme.md. here: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv

This could be a solution to the "Identifier Undefined" you are receiving.

Let me know if this works.

Best regards,

 

Casandra

View solution in original post

0 Kudos
5 Replies
idata
Employee
991 Views

Hello HippoEug,

Thank you for your interest in the Intel RealSense Technology.

 

Could you please confirm if you have downloaded the source code for the SDK or if you have installed the binaries?

Just as a short definition, binary releases contain computer readable version of the application, meaning it is compiled. Source releases contain human readable version of the application, meaning it has to be compiled before it can be used. The source release is the raw, un-compiled code.

You can follow the below instructions in order to build from source RealSense SDK 2.0 (Librealsense ) on a Windows 10 machine and run the given examples on Visual Studio 2017.

  • Download and install http://cmake.org/download CMAKE
  • Clone or download http://github.com/IntelRealSense/librealsense RealSense SDK 2.0 sources into a local directory (C:/git/librealsense)
  • Run cmake-gui and fill source code and binaries locations and press Configure
    • Where is the source code: C:/git/librealsense
    • Where to build the binaries: C:/git/librealsense/build
  • Click Generate and Open Project
  • Locate the examples required under Example solution folder
  • Right-click on one of the examples to Set as StartUp Project
  • Press F5 to compile and run the example
After you have download the source code for the SDK you can run the CMake GUI as shown in the OpenCV wrapper readme.md. here: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/opencv

This could be a solution to the "Identifier Undefined" you are receiving.

Let me know if this works.

Best regards,

 

Casandra
0 Kudos
EFoo
Novice
990 Views

Hi there,

I am pretty sure I did exactly as you wrote.

Here are the steps I took: https://github.com/HippoEug/Intel-Realsense-D435-CMake GitHub - HippoEug/Intel-Realsense-D435-CMake with still those errors. Even though there are errors, it still managed to compile fine..

0 Kudos
idata
Employee
990 Views

Hello HippoEug,

 

 

If the code compiles and runs fine and you are comfortable with the results this should be OK.

 

 

Let me know if you require any further assistance.

 

 

Regards,

 

Casandra
0 Kudos
idata
Employee
990 Views

Hello HippoEug,

 

 

Do you require any further assistance with this query?

 

 

Regards,

 

Casandra
0 Kudos
EFoo
Novice
990 Views

Hello Casandra,

I have no more issues. If I do I will post onto this forum again, thank you very much. You can close this issue now

0 Kudos
Reply