Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

Failure to compile librealsense on Windows system

CWill31
Novice
1,216 Views

I compiled according to this installation wizard:https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity

My compilation environment is Windows 10 and VS2017。

But there was this mistake:

capture1.PNG

However, sys/time.h seems to be a unique header file for Linux systems.

Does this mean that librealsense is only suitable for compiling under linux? Or is there a problem in some part of me?

 

0 Kudos
1 Solution
MartyG
Honored Contributor III
796 Views

Unless there is a particular reason why you need to build Librealsense on Windows via compilation (such as installing on unusual hardware that is not a typical PC), I would recommend installing Librealsense on Windows with the pre-built 'binary' version that can be downloaded from the 'Releases' page. You can download the 503 mb file 'Intel.RealSense.SDK-win10.exe'.

 

https://github.com/IntelRealSense/librealsense/releases/

 

1.png

 

Running this exe file will install the pre-built Librealsense SDK and tools such as the RealSense Viewer and Depth Quality tool on your Windows PC.

 

In regard to the Unity wrapper, there is a shortcut trick in Windows using drag-and-drop that can set up the wrapper without having to do Visual Studio compilation. This requires the SDK to be installed first, as it involves drag-and-drop of DLL files from the SDK's folders.

 

https://forums.intel.com/s/question/0D70P0000068Yo0SAE?language=en_US

 

View solution in original post

0 Kudos
1 Reply
MartyG
Honored Contributor III
797 Views

Unless there is a particular reason why you need to build Librealsense on Windows via compilation (such as installing on unusual hardware that is not a typical PC), I would recommend installing Librealsense on Windows with the pre-built 'binary' version that can be downloaded from the 'Releases' page. You can download the 503 mb file 'Intel.RealSense.SDK-win10.exe'.

 

https://github.com/IntelRealSense/librealsense/releases/

 

1.png

 

Running this exe file will install the pre-built Librealsense SDK and tools such as the RealSense Viewer and Depth Quality tool on your Windows PC.

 

In regard to the Unity wrapper, there is a shortcut trick in Windows using drag-and-drop that can set up the wrapper without having to do Visual Studio compilation. This requires the SDK to be installed first, as it involves drag-and-drop of DLL files from the SDK's folders.

 

https://forums.intel.com/s/question/0D70P0000068Yo0SAE?language=en_US

 

0 Kudos
Reply