dusty-nv / jetson-reinforcement

Deep reinforcement learning GPU libraries for NVIDIA Jetson TX1/TX2 with PyTorch, OpenAI Gym, and Gazebo robotics simulator.
MIT License
880 stars 224 forks source link

make error #12

Closed ababycat closed 6 years ago

ababycat commented 6 years ago

when I run the "make" command, it raises an error:

[ 36%] Built target jetson-utils [ 38%] Linking CXX shared library aarch64/lib/libjetson-reinforcement.so /usr/bin/ld: cannot find -l_C collect2: error: ld returned 1 exit status CMakeFiles/jetson-reinforcement.dir/build.make:322: recipe for target 'aarch64/lib/libjetson-reinforcement.so' failed make[2]: [aarch64/lib/libjetson-reinforcement.so] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-reinforcement.dir/all' failed make[1]: [CMakeFiles/jetson-reinforcement.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I found that there was a file named "lib_C.so" in "pytorch/torch/", and I check the proporpties, the type was "Link (broken) (inode/symlink)". What's wrong with it ? Thank you!

ababycat commented 6 years ago

I re-build the pytorch and it generated a file "_C.cpyt.......ch64-linux-gnu.so" in pytorch/torch. So I link the file to lib_C.so and fix it.