IntelRealSense / realsense_samples

A series of example applications using Intel® RealSense™ cameras built on top of the realsense_sdk toolkit
Apache License 2.0
39 stars 26 forks source link

"slam_tutorial_1_gui" sample fails to run when built via source code #5

Open asakhark opened 7 years ago

asakhark commented 7 years ago

I installed the slam_tutorial_1_gui sample using the two methods mentioned at: https://software.intel.com/sites/products/realsense/intro/getting_started.html with the ZR300 camera.

The executable "/usr/bin/rs_slam_tutorial_1_gui" installed using method - $ sudo apt install librealsense-samples beignet-opencl-icd works perfectly well. But when I try to run the same example by building sample through source code it fails (OpenCV display stays blank with no occupancy-map with following console output): slam_tutorial1

The slam_tutorial_1_web sample on the other hand, works well via both installation methods.

Any idea as to what might be going wrong over here?

Thanks, Anant

avilash commented 7 years ago

Did you find any solution to this, I'm also facing the same issue

asakhark commented 7 years ago

Not yet. Awaiting their reply.

ChrisHughes commented 6 years ago

Did this get resolved? I'm facing the same issue too.

ChrisHughes commented 6 years ago

(some troubleshooting later) This is to do with a freeze caused by linking with an incompatible version of OpenCV in the cv2.imshow function. To work around this (on Ubuntu 16.04), I had to remove all opencv packages installed via apt, and delete any libopencv... libraries in /usr/local/lib.

After that install ONLY OpenCV 3.1.

sudo apt-get install libopencv-imgproc3.1 libopencv-core3.1 libopencv-highgui3.1 libopencv-imgproc-dev libopencv-core-dev libopencv-highgui-dev