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

install jetson-inference in Jetson orin nano with JetPack 6.1 #1898

Open
Conley-Yang opened this issue Oct 7, 2024 · 5 comments
Open

install jetson-inference in Jetson orin nano with JetPack 6.1 #1898

Conley-Yang opened this issue Oct 7, 2024 · 5 comments

Comments

@Conley-Yang
Copy link

hi, I use Jetson orin nano with JetPack 6.1 and follow the step of Building the Project from Source

I got the following error information when I executed make -j$(nproc), is there any suggestion to install jetson-inference successfully? Thanks for your reading!

conley@conley-desktop:~/jetson-inference/build$ make -j$(nproc)
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaColormap.cu.o
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaCrop.cu.o
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaDraw.cu.o
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFilterMode.cu.o
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o
[ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFont.cu.o
[ 6%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaGrayscale.cu.o
[ 7%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaNormalize.cu.o
[ 8%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaOverlay.cu.o
[ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaPointCloud.cu.o
[ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaRGB.cu.o
[ 10%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaResize.cu.o
[ 11%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-affine.cu.o
[ 12%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-fisheye.cu.o
[ 12%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-intrinsic.cu.o
[ 13%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-NV12.cu.o
[ 14%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YUYV.cu.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/v4l2Camera.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstUtility.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstBufferManager.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstWebRTC.cpp.o
[ 20%] Building CXX object utils/CMakeFiles/jetson-utils.dir/commandLine.cpp.o
[ 21%] Building CXX object utils/CMakeFiles/jetson-utils.dir/cuda/cudaBayer.cpp.o
[ 22%] Building CXX object utils/CMakeFiles/jetson-utils.dir/cuda/cudaColorspace.cpp.o
[ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/cuda/cudaPointCloud.cpp.o
[ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glBuffer.cpp.o
[ 24%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glCamera.cpp.o
[ 25%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glDisplay.cpp.o
[ 26%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glEvents.cpp.o
[ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glTexture.cpp.o
[ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glWidget.cpp.o
[ 28%] Building CXX object utils/CMakeFiles/jetson-utils.dir/filesystem.cpp.o
[ 29%] Building CXX object utils/CMakeFiles/jetson-utils.dir/image/imageIO.cpp.o
[ 30%] Building CXX object utils/CMakeFiles/jetson-utils.dir/image/imageLoader.cpp.o
[ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/image/imageWriter.cpp.o
[ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devInput.cpp.o
[ 32%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devJoystick.cpp.o
[ 33%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devKeyboard.cpp.o
[ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/logging.cpp.o
[ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv4.cpp.o
[ 35%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv6.cpp.o
[ 36%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Networking.cpp.o
[ 37%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/RTSPServer.cpp.o
[ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Socket.cpp.o
[ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/URI.cpp.o
[ 39%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/WebRTCServer.cpp.o
[ 40%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Process.cpp.o
[ 41%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o
[ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/timespec.cpp.o
[ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/video/videoOptions.cpp.o
[ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/video/videoOutput.cpp.o
[ 44%] Building CXX object utils/CMakeFiles/jetson-utils.dir/video/videoSource.cpp.o
[ 45%] Building CXX object utils/CMakeFiles/jetson-utils.dir/xml.cpp.o
[ 46%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so
[ 46%] Built target jetson-utils
[ 47%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/c/jetson-inference_generated_tensorConvert.cu.o
[ 48%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/c/jetson-inference_generated_detectNet.cu.o
[ 48%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/c/jetson-inference_generated_depthNet.cu.o
[ 49%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/c/jetson-inference_generated_backgroundNet.cu.o
[ 50%] Building CXX object utils/video/video-viewer/CMakeFiles/video-viewer.dir/video-viewer.cpp.o
[ 50%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyCUDA.cpp.o
[ 51%] Linking CXX executable ../../../aarch64/bin/video-viewer
[ 51%] Built target video-viewer
[ 52%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/c/jetson-inference_generated_segNet.cu.o
[ 53%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyCamera.cpp.o
[ 54%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyGL.cpp.o
[ 55%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyImageIO.cpp.o
[ 56%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyLogging.cpp.o
[ 56%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyNumpy.cpp.o
/home/conley/jetson-inference/utils/python/bindings/PyNumpy.cpp: In function ‘PyObject* PyNumpy_ImportNumpy()’:
/home/conley/jetson-inference/utils/python/bindings/PyNumpy.cpp:313:1: warning: control reaches end of non-void function [-Wreturn-type]
313 | }
| ^
[ 57%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyUtils.cpp.o
[ 58%] Building CXX object utils/python/bindings_python_3.10/CMakeFiles/jetson-utils-python-310.dir/PyVideo.cpp.o
[ 59%] Linking CXX shared library ../../../aarch64/lib/python/3.10/jetson_utils_python.so
[ 59%] Built target jetson-utils-python-310
[ 63%] Building CXX object CMakeFiles/jetson-inference.dir/c/backgroundNet.cpp.o
[ 63%] Building CXX object CMakeFiles/jetson-inference.dir/c/detectNet.cpp.o
[ 63%] Building CXX object CMakeFiles/jetson-inference.dir/c/calibration/randInt8Calibrator.cpp.o
[ 63%] Building CXX object CMakeFiles/jetson-inference.dir/c/depthNet.cpp.o
[ 63%] Building CXX object CMakeFiles/jetson-inference.dir/c/actionNet.cpp.o
[ 64%] Building CXX object CMakeFiles/jetson-inference.dir/c/imageNet.cpp.o
[ 64%] Building CXX object CMakeFiles/jetson-inference.dir/c/modelDownloader.cpp.o
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/detectNet.h:27,
from /home/conley/jetson-inference/c/detectNet.cpp:23:
/home/conley/jetson-inference/c/detectNet.cpp: In member function ‘bool detectNet::allocDetections()’:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:225:49: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
225 | #define LOG_LEVEL_PREFIX_INFO ""
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:168:78: note: in expansion of macro ‘LOG_LEVEL_PREFIX_INFO’
168 | #define LogInfo(format, args...) GenericLogMessage(Log::INFO, LOG_LEVEL_PREFIX_INFO format, ## args)
| ^~~~~~~~~~~~~~~~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:17: note: in expansion of macro ‘LogInfo’
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ^~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:39: note: format string is defined here
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ~^
| |
| unsigned int
| %lu
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/detectNet.h:27,
from /home/conley/jetson-inference/c/detectNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:225:49: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
225 | #define LOG_LEVEL_PREFIX_INFO ""
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:168:78: note: in expansion of macro ‘LOG_LEVEL_PREFIX_INFO’
168 | #define LogInfo(format, args...) GenericLogMessage(Log::INFO, LOG_LEVEL_PREFIX_INFO format, ## args)
| ^~~~~~~~~~~~~~~~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:17: note: in expansion of macro ‘LogInfo’
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ^~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:47: note: format string is defined here
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ~^
| |
| unsigned int
| %lu
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/detectNet.h:27,
from /home/conley/jetson-inference/c/detectNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:225:49: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
225 | #define LOG_LEVEL_PREFIX_INFO ""
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:168:78: note: in expansion of macro ‘LOG_LEVEL_PREFIX_INFO’
168 | #define LogInfo(format, args...) GenericLogMessage(Log::INFO, LOG_LEVEL_PREFIX_INFO format, ## args)
| ^~~~~~~~~~~~~~~~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:17: note: in expansion of macro ‘LogInfo’
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ^~~~~~~
/home/conley/jetson-inference/c/detectNet.cpp:404:55: note: format string is defined here
404 | LogInfo(LOG_TRT "W = %u H = %u C = %u\n", DIMS_W(mOutputs[OUTPUT_UFF].dims), DIMS_H(mOutputs[OUTPUT_UFF].dims), DIMS_C(mOutputs[OUTPUT_UFF].dims));
| ~^
| |
| unsigned int
| %lu
[ 65%] Building CXX object CMakeFiles/jetson-inference.dir/c/poseNet.cpp.o
[ 66%] Building CXX object CMakeFiles/jetson-inference.dir/c/segNet.cpp.o
[ 67%] Building CXX object CMakeFiles/jetson-inference.dir/c/tensorNet.cpp.o
/home/conley/jetson-inference/c/tensorNet.cpp:29:10: fatal error: NvCaffeParser.h: No such file or directory
29 | #include "NvCaffeParser.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/jetson-inference.dir/build.make:237: CMakeFiles/jetson-inference.dir/c/tensorNet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 67%] Building CXX object CMakeFiles/jetson-inference.dir/c/tracking/objectTracker.cpp.o
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/c/poseNet.cpp: In member function ‘bool poseNet::init(const char*, const char*, const char*, float, const char*, const char*, const char*, uint32_t, precisionType, deviceType, bool)’:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:52: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:58: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 5 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:64: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 6 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:92: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 7 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:98: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
In file included from /home/conley/jetson-inference/build/aarch64/include/jetson-utils/cudaUtility.h:33,
from /home/conley/jetson-inference/c/tensorNet.h:32,
from /home/conley/jetson-inference/c/poseNet.h:27,
from /home/conley/jetson-inference/c/poseNet.cpp:23:
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:204:38: warning: format ‘%i’ expects argument of type ‘int’, but argument 8 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
204 | #define LOG_COLOR_RED "\033[0;31m"
| ^
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:144:106: note: in definition of macro ‘GenericLogMessage’
144 | #define GenericLogMessage(level, format, args...) if( level <= Log::GetLevel() ) fprintf(Log::GetFile(), format, ## args)
| ^~~~~~
/home/conley/jetson-inference/build/aarch64/include/jetson-utils/logging.h:150:79: note: in expansion of macro ‘LOG_COLOR_RED’
150 | #define LogError(format, args...) GenericLogMessage(Log::ERROR, LOG_COLOR_RED LOG_LEVEL_PREFIX_ERROR format LOG_COLOR_RESET, ## args)
| ^~~~~~~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:17: note: in expansion of macro ‘LogError’
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ^~~~~~~~
/home/conley/jetson-inference/c/poseNet.cpp:160:104: note: format string is defined here
160 | LogError("poseNet -- cmap dims (C=%i, H=%i, W=%i) don't match paf dims (C=%i, H=%i, W=%i)\n", DIMS_C(mOutputs[CMAP].dims), DIMS_H(mOutputs[CMAP].dims), DIMS_W(mOutputs[CMAP].dims), DIMS_C(mOutputs[PAF].dims), DIMS_H(mOutputs[PAF].dims), DIMS_W(mOutputs[PAF].dims));
| ~^
| |
| int
| %li
make[1]: *** [CMakeFiles/Makefile2:394: CMakeFiles/jetson-inference.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@ahmet-f-gumustas
Copy link

I got the same error . Maybe solve later. When I checked the repo, there is no release for R36.4 yet

@yncjdtc
Copy link

yncjdtc commented Oct 9, 2024

same error.
fatal error: NvCaffeParser.h: No such file or directory

NVIDIA NVIDIA Jetson AGX Orin Developer Kit
L4T 36.4.0 [ JetPack UNKNOWN ]
Ubuntu 22.04.5 LTS
Kernel Version: 5.15.148-tegra
CUDA 12.6.68
CUDA Architecture: 8.7
OpenCV version: 4.8.0
OpenCV Cuda: NO
CUDNN: ii libcudnn9
TensorRT: 10.3.0.30
Vision Works: NOT_INSTALLED
VPI: 3.2.4
Vulcan: 1.3.204

Package: nvidia-jetpack
Source: nvidia-jetpack (6.1)
Version: 6.1+b123
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 6.1+b123), nvidia-jetpack-dev (= 6.1+b123)

@keanrawr
Copy link

keanrawr commented Oct 11, 2024

Same issue here.
I tried flashing JetPack 6.0, but the zip file seems to be corrupt, so I'm only able to use JetPack 6.1.
There is no docker image for JetPack 6.1, can't build project from source, and I don't have a way to go flash the 6.0 image 🫠

@Pelz17
Copy link

Pelz17 commented Nov 7, 2024

Will there be an image for r36.4.0?

@rc5409
Copy link

rc5409 commented Dec 7, 2024

Hi, I am trying to build the jetson inference, om jetson orin nano as well.
I am getting the following error:
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstWebRTC.cpp.o
In file included from /opt/jetson-inference/utils/codec/gstEncoder.cpp:24:
/opt/jetson-inference/utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
30 | #include <gst/webrtc/webrtc.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /opt/jetson-inference/utils/codec/gstDecoder.cpp:24:
/opt/jetson-inference/utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
30 | #include <gst/webrtc/webrtc.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /opt/jetson-inference/utils/codec/gstWebRTC.cpp:23:
/opt/jetson-inference/utils/codec/gstWebRTC.h:30:10: fatal error: gst/webrtc/webrtc.h: No such file or directory
30 | #include <gst/webrtc/webrtc.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [utils/CMakeFiles/jetson-utils.dir/build.make:254: utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [utils/CMakeFiles/jetson-utils.dir/build.make:240: utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o] Error 1
make[2]: *** [utils/CMakeFiles/jetson-utils.dir/build.make:282: utils/CMakeFiles/jetson-utils.dir/codec/gstWebRTC.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:804: utils/CMakeFiles/jetson-utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
The command '/bin/sh -c /tmp/build_jetson_inference.sh' returned a non-zero code: 2
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/tharunj29/Documents/new_try/jetson-inference/jetson-containers/jetson_containers/build.py", line 112, in
build_container(args.name, args.packages, args.base, args.build_flags, args.build_args, args.simulate, args.skip_tests, args.test_only, args.push, args.no_github_api, args.skip_packages)
File "/home/tharunj29/Documents/new_try/jetson-inference/jetson-containers/jetson_containers/container.py", line 147, in build_container
status = subprocess.run(cmd.replace(NEWLINE, ' '), executable='/bin/bash', shell=True, check=True)
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'sudo DOCKER_BUILDKIT=0 docker build --network=host --tag jetson-inference:r35.5.0-jetson-inference --file /home/tharunj29/Documents/new_try/jetson-inference/jetson-containers/packages/ml/jetson-inference/Dockerfile --build-arg BASE_IMAGE=jetson-inference:r35.5.0-gstreamer /home/tharunj29/Documents/new_try/jetson-inference/jetson-containers/packages/ml/jetson-inference 2>&1 | tee /home/tharunj29/Documents/new_try/jetson-inference/jetson-containers/logs/20241207_003727/build/jetson-inference_r35.5.0-jetson-inference.txt; exit ${PIPESTATUS[0]}' returned non-zero exit status 2.

As far as I could find, the GstWebRTC is currently deprecated. How were you able to get past this?

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

6 participants