realsense_samples icon indicating copy to clipboard operation
realsense_samples copied to clipboard

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

Open asakhark opened this issue 7 years ago • 4 comments

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

asakhark avatar May 17 '17 17:05 asakhark

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

avilash avatar Jun 29 '17 13:06 avilash

Not yet. Awaiting their reply.

asakhark avatar Jun 29 '17 16:06 asakhark

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

ChrisHughes avatar Dec 19 '17 09:12 ChrisHughes

(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

ChrisHughes avatar Dec 19 '17 13:12 ChrisHughes