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

[NVIDIA Xavier][nvcr.io/nvidia/l4t-pytorch][make install]CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file): #186

Open
zjykzj opened this issue Nov 30, 2023 · 3 comments

Comments

@zjykzj
Copy link

zjykzj commented Nov 30, 2023

Running on NVIDIA Xavier, Jetpack [L4T 32.5.2]. I compiled jetson-utils in container nvcr.io/nvidia/l4t-pytorch:r32.5.0-pth1.7-py3, Follow the introduction of README:

git clone https://github.com/dusty-nv/jetson-utils
mkdir build
cd build
cmake ../
make -j$(nproc)
sudo make install
sudo ldconfig

And use jetson-inference/CMakePreBuild.sh to install dependencies.

QUESTION1

Get ERROR when make -j$(nproc)

In file included from /workdir/jetson-utils/codec/gstWebRTC.cpp:23:0:
/workdir/jetson-utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
 #include <gst/webrtc/webrtc.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/jetson-utils.dir/build.make:4403: recipe for target 'CMakeFiles/jetson-utils.dir/codec/gstWebRTC.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-utils.dir/codec/gstWebRTC.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /workdir/jetson-utils/codec/gstEncoder.cpp:24:0:
/workdir/jetson-utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
 #include <gst/webrtc/webrtc.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/jetson-utils.dir/build.make:4355: recipe for target 'CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o] Error 1
In file included from /workdir/jetson-utils/codec/gstDecoder.cpp:24:0:
/workdir/jetson-utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
 #include <gst/webrtc/webrtc.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/jetson-utils.dir/build.make:4331: recipe for target 'CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-utils.dir/all' failed
make[1]: *** [CMakeFiles/jetson-utils.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Fix it refer to Missing dependencies when building on 35.1.0 container images possible issues with opencv #146

apt-get install libgstreamer1.0-dev
apt-get install libjson-glib-dev
apt-get install libgstreamer-plugins-bad1.0-dev

QUESTION2

Get ERROR when make install

root@localhost:/workdir/jetson-utils/build_v2# make install
[ 83%] Built target jetson-utils
[ 97%] Built target jetson-utils-python-36
[100%] Built target video-viewer
Install the project...
-- Install configuration: ""
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/alphanum.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/commandLine.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/csvReader.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/csvWriter.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/filesystem.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/logging.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/mat33.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/pi.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/rand.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/timespec.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/xml.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/csvReader.hpp
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/csvWriter.hpp
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/json.hpp
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstCamera.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/v4l2Camera.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstBufferManager.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstDecoder.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstEncoder.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstUtility.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/gstWebRTC.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/nvbuf_utils.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaBayer.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaColormap.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaColorspace.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaCrop.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaDraw.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaFilterMode.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaFont.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaGrayscale.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaMappedMemory.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaMath.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaNormalize.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaOverlay.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaPointCloud.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaRGB.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaResize.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaUtility.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaVector.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaWarp.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaYUV.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaAlphaBlend.cuh
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/cudaFilterMode.cuh
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glBuffer.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glCamera.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glDisplay.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glEvents.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glTexture.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glUtility.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/glWidget.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/imageFormat.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/imageIO.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/imageLoader.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/imageWriter.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/loadImage.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/imageFormat.inl
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/devInput.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/devJoystick.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/devKeyboard.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Endian.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/IPv4.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/IPv6.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Networking.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/RTSPServer.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Socket.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/URI.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/WebRTCServer.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Event.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Mutex.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Process.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/RingBuffer.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Thread.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Event.inl
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/Mutex.inl
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/RingBuffer.inl
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/videoOptions.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/videoOutput.h
-- Up-to-date: /workdir/jetson-utils/install/include/jetson-utils/videoSource.h
-- Up-to-date: /workdir/jetson-utils/install/lib/libjetson-utils.so
-- Up-to-date: /workdir/jetson-utils/install/share/jetson-utils/cmake/jetson-utilsConfig.cmake
-- Up-to-date: /workdir/jetson-utils/install/share/jetson-utils/cmake/jetson-utilsConfig-noconfig.cmake
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-array-interface.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-examples.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-from-cv.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-from-numpy.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-from-pytorch.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-to-cv.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-to-numpy.py
-- Up-to-date: /workdir/jetson-utils/install/bin/cuda-to-pytorch.py
-- Up-to-date: /workdir/jetson-utils/install/bin/test-display.py
-- Up-to-date: /workdir/jetson-utils/install/bin/test-logging.py
-- Up-to-date: /workdir/jetson-utils/install/bin/test-video.py
-- Up-to-date: /workdir/jetson-utils/install/bin/video-viewer.py
-- Up-to-date: /workdir/jetson-utils/install/bin/test-cuda.sh
-- Up-to-date: /usr/lib/python3.6/dist-packages/jetson_utils_python.so
-- Up-to-date: /usr/lib/python3.6/dist-packages/Jetson
-- Up-to-date: /usr/lib/python3.6/dist-packages/Jetson/__init__.py
-- Up-to-date: /usr/lib/python3.6/dist-packages/Jetson/Utils
-- Up-to-date: /usr/lib/python3.6/dist-packages/Jetson/Utils/__init__.py
CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file):
  file INSTALL cannot find
  "/workdir/jetson-utils/python/bindings/../python/jetson".
Call Stack (most recent call first):
  python/cmake_install.cmake:94 (include)
  cmake_install.cmake:393 (include)


Makefile:117: recipe for target 'install' failed
make: *** [install] Error 1

How can I fix it? @dusty-nv Looking forward to your answer

@zjykzj zjykzj changed the title CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file): [NVIDIA Xavier][nvcr.io/nvidia/l4t-pytorch]CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file): Nov 30, 2023
@zjykzj zjykzj changed the title [NVIDIA Xavier][nvcr.io/nvidia/l4t-pytorch]CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file): [NVIDIA Xavier][nvcr.io/nvidia/l4t-pytorch][make install]CMake Error at python/bindings_python_3.6/cmake_install.cmake:89 (file): Nov 30, 2023
@dusty-nv
Copy link
Owner

Hi @zjykzj, jetson-utils has a container and Dockerfile for it here: https://github.com/dusty-nv/jetson-containers/tree/master/packages/jetson-utils

@zjykzj
Copy link
Author

zjykzj commented Nov 30, 2023

Hi @zjykzj, jetson-utils has a container and Dockerfile for it here: https://github.com/dusty-nv/jetson-containers/tree/master/packages/jetson-utils

This document shows dependency environment L4T>=32.6 and My environment is 32.5.2. I tried dusty-nv/jetson-inference 's container: https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-docker.md

$ git clone --recursive --depth=1 https://github.com/dusty-nv/jetson-inference
$ cd jetson-inference
$ docker/run.sh

and run the examples in python/examples/cuda-from-numpy.py, that works. Just need to modify some things:

# from jetson_utils import cudaFromNumpy, saveImageRGBA
from jetson.utils import cudaFromNumpy, saveImageRGBA

@dusty-nv
Copy link
Owner

OK cool. It says dependency L4T>=32.6 because JetPack 4.6 is as old as I support in jetson-containers, but it should still be okay.

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