Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problem for Jetson Nano #3

Closed
Adamxu3d opened this issue Apr 8, 2019 · 10 comments
Closed

Build problem for Jetson Nano #3

Adamxu3d opened this issue Apr 8, 2019 · 10 comments

Comments

@Adamxu3d
Copy link

Adamxu3d commented Apr 8, 2019

Hi Jim I've been trying to install native OpenCV 3.4 onto the Jetson Nano module using your Jetson TX1 build repository with no luck. Every time I run into this 'no rule to make target 'usr/lib/aarch64-linux-gnu/libGL.so' problem, is there any way to solve this? Also, does the python API utilise CUDA acceleration for OpenCV?

Thx

Adam

@jetsonhacks
Copy link
Owner

I know the answer to the second question. Currently python does not support CUDA acceleration in the 3.X series. I don't know if that has changed in 4.0.
Not sure as to what the problem is for the libGL.so issue. Does that file exist on your system?

Thanks for moving the issue here, it's really difficult to be coherent on YouTube about these matters.

@Adamxu3d
Copy link
Author

Adamxu3d commented Apr 9, 2019

Thanks Jim, for the answer. I'm afraid that the libGL.so cannot be located under the designated directory for the freshly installed Jetpack 4.2, which rendered the libGL.so a broken link after the error showed up.

@jetsonhacks
Copy link
Owner

jetsonhacks commented Apr 9, 2019

Have you checked this on a freshly flashed Nano? When I check on my system, it is there. It could be that something overwrote/moved it when the dependencies were installed. Can you find it elsewhere on the system?

@jetsonhacks
Copy link
Owner

Are you building anything else with this, such as opencv_contrib ?

@ajkeeton
Copy link

ajkeeton commented May 12, 2019

Just an FYI, I ran into this problem on my Nano. libgl.so was previously available, then at some point after installing a lot of various dependencies (including OpenCV), it was gone.

(fixed with sudo apt-get --reinstall install libglvnd-dev)

@raaka1
Copy link

raaka1 commented May 15, 2019

Yep I have a similar issue, sudo apt-get --reinstall install libglvnd-dev did not work for me i will retry

@derekclair
Copy link

sudo apt-get --reinstall install libglvnd-dev did it for me too, thank you!

@omerfy
Copy link

omerfy commented Mar 30, 2020

Hi, I have the same problem in may TX1 flashed with jetpack4.3. But I couldn't find any solution for this problem. I tried two recommend, and they didn't work.
First one is "sudo apt-get --reinstall install libglvnd-dev". Second one is the recommendation in the URL:

What do you think about the problem. Could anyone find a solution.

@omerfy
Copy link

omerfy commented Apr 1, 2020

Hi, I have the same problem in may TX1 flashed with jetpack4.3. But I couldn't find any solution for this problem. I tried two recommend, and they didn't work.
First one is "sudo apt-get --reinstall install libglvnd-dev". Second one is the recommendation in the URL:

What do you think about the problem. Could anyone find a solution.

I reflashed my TX1 with Jetpack 4.2.3 and I changed the line "sudo ln -sf tegra/libGL.so libGL.so" in buildOpenCV.sh file as below:

  • sudo ln -s /usr/lib/aarch64-linux-gnu/tegra/libGL.so /usr/lib/aarch64-linux-gnu/libGL.so
  • sudo rm libGL.so
  • sudo ln -s libGL.so libGL.so.1

I think it is not about jetpack version and I don't know it is exactly true or not but it worked and built the OpenCV3.2.

Note: I used the buildOpenCV.sh file in order to build OpenCV3.2 changing the OPENCV_VERSION variable from 3.4.1 to 3.2.0

@BingXiong1995
Copy link

sudo apt-get --reinstall install libglvnd-dev solved this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants