code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
874 stars 519 forks source link

No rule to make target `.../libOpenCL.so' when building after an update(?) #571

Open gokhansolak opened 3 years ago

gokhansolak commented 3 years ago

I started to get a linking error with catkin_make: No rule to make target .../libOpenCL.so. Until today, I was able to build and use the package without issues, this started to happen without any specific change in my system. It may be related to dependency updates, but I am not sure which.

Anyway, for those who may get a similar problem I wanted to share what solved the issue for me. There are instructions for installing OpenCL optionally, in libfreenect2's readme. Installing the option (beignet-dev) for my system (ubuntu, intel gpu) solved the issue, I am able to build now.

This may be related to #483, but unlike that one I did not install clang-format or anything new.