Hello, I’m new to this, but i hope you can help me out
On my Jetson Xavier NX
I used these commands, and lines that caught my eye, idk if it would help
sudo apt-get update
( Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org/ros2/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
W: Failed to fetch http://packages.ros.org/ros2/ubuntu/dists/focal/InRelease The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/restricted/binary-arm64/Packages 404 Not Found [IP: 2620:2d:4000:1::102 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/binary-arm64/Packages 404 Not Found [IP: 2620:2d:4000:1::102 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 2620:2d:4000:1::102 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 2620:2d:4000:1::102 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.)
sudo apt-get install git cmake libpython3-dev python3-numpy
cd ~/Downloads
git clone –recursive GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
cd jetson-inference
mkdir build
cd build
cmake ../
( I starred 2 Pytorch 1.12 for Python 3.8
CMake Warning at python/bindings/CMakeLists.txt:110 (message):
NumPy 1.21.6 (< 2.0) but ‘npymath’ not found: continuing without it.)
make -j$(nproc)
(/home/jetxboat/Downloads/jetson-inference/tools/camera-capture/captureWindow.cpp: In member function ‘glWidget* CaptureWindow::GetWidget(int) const’:
/home/jetxboat/Downloads/jetson-inference/tools/camera-capture/captureWindow.cpp:222:1: warning: no return statement in function returning non-void [-Wreturn-type]
222 | }
| ^
/usr/bin/ld: cannot find -lnpymath
collect2: error: ld returned 1 exit status
make[2]: *** [python/bindings_python_3.8/CMakeFiles/jetson-inference-python-38.dir/build.make:218: aarch64/lib/python/3.8/jetson_inference_python.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:831: python/bindings_python_3.8/CMakeFiles/jetson-inference-python-38.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 98%] Building CXX object tools/camera-capture/CMakeFiles/camera-capture.dir/controlWindow.cpp.o
[100%] Linking CXX executable ../../aarch64/bin/camera-capture
[100%] Built target camera-capture
make: *** [Makefile:130: all] Error 2)
sudo make install
[86%] Building CXX object utils/python/bindings_python_3.8/CMakeFiles/jetson-utils-python-38.dir/PyNumpy.cpp.o
/home/jetxboat/Downloads/jetson-inference/utils/python/bindings/PyNumpy.cpp: In function ‘PyObject* PyNumpy_ImportNumpy()’:
/home/jetxboat/Downloads/jetson-inference/utils/python/bindings/PyNumpy.cpp:313:1: warning: control reaches end of non-void function [-Wreturn-type]
313 | }
| ^
.
.
[100%] Linking CXX shared library ../../aarch64/lib/python/3.8/jetson_inference_python.so
/usr/bin/ld: cannot find -lnpymath
collect2: error: ld returned 1 exit status
make[2]: *** [python/bindings_python_3.8/CMakeFiles/jetson-inference-python-38.dir/build.make:218: aarch64/lib/python/3.8/jetson_inference_python.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:831: python/bindings_python_3.8/CMakeFiles/jetson-inference-python-38.dir/all] Error 2
make: *** [Makefile:130: all] Error 2)
sudo ldconfig
sudo apt-get install v4l-utils
note: I tried to solve the errors but i couldn’t so i thought maybe it didn’t matter, so i continued.
cd Downloads/jetson-inference
mkdir myTrain
cd myTrain
gedit labels.txt
(Wrote Cups Bottle)
cd Downloads/jetson-inference/Tools
camera-capture --width=800 --height==600 --camera=/dev/video1
(bash: camera-capture: command not found)
………..
FYI, I don’t have much knowledge in debugging Jetson’s system
++ I’m working on programming a Jetson Xavier NX, to control a Boat; it uses Differential steering ( only 2 Brushless DC Motors), and I’m coding a program to use an AI model that’s still not ready, but it’s purpose is to catch live stream from camera frame and detect waste on water, calculate the distance, to give the motors right parameters (PWM) to go to it so it can implement the cleaning mechanism.