KINECTV2 error at compile time requires target/usr/lib/x86_64-linux-gnu/libgl.so ". Stop it. __linux

Source: Internet
Author: User

Before compiling a similar problem in the compilation of OpenCV, the results of the Cmake-gui configuration generated on the line, and recently appeared in the compilation of KINECTV2, and Cmake-gui can not solve, so explore the following solution.


An error occurred while compiling the KINECTV2

MAKE[2]: * * * There are no rules to create the "lib/libfreenect2.so.0.2.0" required target "/usr/lib/x86_64-linux-gnu/libgl.so". Stop it.


Workaround: Link the corresponding file via Ln-s

First locate Libgl

Then select the corresponding file link (I was trying out): sudo ln-s/usr/lib/libgl.so.1/usr/lib/x86_64-linux-gnu/libgl.so

Where: ln-s source file Destination file

If: ln: Cannot create symbolic link "/usr/lib/x86_64-linux-gnu/libgl.so": File already exists
First remove: sudo rm/usr/lib/x86_64-linux-gnu/libgl.so, and then link. Backup before removing: sudo nautilus (perform administrator privileges)


The following diagram is my procedure:





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.