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 error on Jetson TX2 #5

Open
TacHuynh opened this issue May 19, 2019 · 1 comment
Open

Build error on Jetson TX2 #5

TacHuynh opened this issue May 19, 2019 · 1 comment

Comments

@TacHuynh
Copy link

I tried to build ros_deep_learning on jetson TX2.
Got thiis error: /usr/bin/ld: cannot find -lGL**

[ 5%] Building CXX object ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/src/image_converter.cpp.o
[ 6%] Building CXX object ros_deep_learning/CMakeFiles/segnet.dir/src/node_segnet.cpp.o
[ 8%] Building CXX object ros_deep_learning/CMakeFiles/detectnet.dir/src/node_detectnet.cpp.o
[ 9%] Building CXX object ros_deep_learning/CMakeFiles/segnet.dir/src/image_converter.cpp.o
[ 11%] Linking CXX shared library /home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so
/usr/bin/ld: cannot find -lGL

collect2: error: ld returned 1 exit status
Scanning dependencies of target imagenet
ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so] Error 1
CMakeFiles/Makefile2:3061: recipe for target 'ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Building CXX object ros_deep_learning/CMakeFiles/detectnet.dir/src/image_converter.cpp.o
[ 13%] Building CXX object ros_deep_learning/CMakeFiles/imagenet.dir/src/node_imagenet.cpp.o
[ 15%] Building CXX object ros_deep_learning/CMakeFiles/imagenet.dir/src/image_converter.cpp.o
[ 16%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/segnet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet] Error 1
CMakeFiles/Makefile2:3098: recipe for target 'ros_deep_learning/CMakeFiles/segnet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/segnet.dir/all] Error 2
[ 18%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/detectnet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet] Error 1
CMakeFiles/Makefile2:3135: recipe for target 'ros_deep_learning/CMakeFiles/detectnet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/detectnet.dir/all] Error 2
[ 19%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/imagenet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet] Error 1
CMakeFiles/Makefile2:3588: recipe for target 'ros_deep_learning/CMakeFiles/imagenet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/imagenet.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

@ExcelE
Copy link

ExcelE commented May 24, 2019

From here: https://devtalk.nvidia.com/default/topic/1051923/jetson-tx2/make-error-usr-bin-ld-cannot-find-lgl-/

cd /usr/lib/aarch64-linux-gnu/
sudo ln -sfn libGL.so.1.0.0 libGL.so

That fixed my exact same issue

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

2 participants