Closed Santhosh1509 closed 5 years ago
What camera are you using? Recommend trying the Raspberry Pi Camera Module v2 if possible - it also has better performance than USB.
From: Santhosh1509 notifications@github.com Sent: Thursday, June 6, 2019 7:37:56 AM To: dusty-nv/jetson-inference Cc: Subscribed Subject: [dusty-nv/jetson-inference] ./imagenet-camera googlenet GST_ARGUS: Available Sensor modes : Segmentation fault (core dumped) (#338)
Ran the command
./imagenet-camera googlenet inside
jetson-inference/build/aarch64/bin
I get this
imagenet-camera
args (2): 0 [./imagenet-camera] 1 [googlenet]
[gstreamer] initialized gstreamer, version 1.14.1.0 [gstreamer] gstCamera attempting to initialize with GST_SOURCE_NVCAMERA [gstreamer] gstCamera pipeline string: nvcamerasrc fpsRange="30.0 30.0" ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink [gstreamer] gstCamera failed to create pipeline [gstreamer] (no element "nvcamerasrc") [gstreamer] failed to init gstCamera (GST_SOURCE_NVCAMERA) [gstreamer] gstCamera attempting to initialize with GST_SOURCE_NVARGUS [gstreamer] gstCamera pipeline string: nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink [gstreamer] gstCamera successfully initialized with GST_SOURCE_NVARGUS
imagenet-camera: successfully initialized video device width: 1280 height: 720 depth: 12 (bpp)
imageNet -- loading classification network model from: -- prototxt networks/googlenet.prototxt -- model networks/bvlc_googlenet.caffemodel -- class_labels networks/ilsvrc12_synset_words.txt -- input_blob 'data' -- output_blob 'prob' -- batch_size 2
[TRT] TensorRT version 5.0.6 [TRT] detected model format - caffe (extension '.caffemodel') [TRT] desired precision specified for GPU: FASTEST [TRT] requested fasted precision for device GPU without providing valid calibrator, disabling INT8 [TRT] native precisions detected for GPU: FP32, FP16 [TRT] selecting fastest native precision for GPU: FP16 [TRT] attempting to open engine cache file networks/bvlc_googlenet.caffemodel.2.1.GPU.FP16.engine [TRT] loading network profile from engine cache... networks/bvlc_googlenet.caffemodel.2.1.GPU.FP16.engine [TRT] device GPU, networks/bvlc_googlenet.caffemodel loaded [TRT] device GPU, CUDA engine context initialized with 2 bindings [TRT] binding -- index 0 -- name 'data' -- type FP32 -- in/out INPUT -- # dims 3 -- dim #0 3 (CHANNEL) -- dim #1https://github.com/dusty-nv/jetson-inference/issues/1 224 (SPATIAL) -- dim #2https://github.com/dusty-nv/jetson-inference/pull/2 224 (SPATIAL) [TRT] binding -- index 1 -- name 'prob' -- type FP32 -- in/out OUTPUT -- # dims 3 -- dim #0 1000 (CHANNEL) -- dim #1https://github.com/dusty-nv/jetson-inference/issues/1 1 (SPATIAL) -- dim #2https://github.com/dusty-nv/jetson-inference/pull/2 1 (SPATIAL) [TRT] binding to input 0 data binding index: 0 [TRT] binding to input 0 data dims (b=2 c=3 h=224 w=224) size=1204224 [cuda] cudaAllocMapped 1204224 bytes, CPU 0x100e30000 GPU 0x100e30000 [TRT] binding to output 0 prob binding index: 1 [TRT] binding to output 0 prob dims (b=2 c=1000 h=1 w=1) size=8000 [cuda] cudaAllocMapped 8000 bytes, CPU 0x100f60000 GPU 0x100f60000 device GPU, networks/bvlc_googlenet.caffemodel initialized. [TRT] networks/bvlc_googlenet.caffemodel loaded imageNet -- loaded 1000 class info entries networks/bvlc_googlenet.caffemodel initialized. default X screen 0: 1360 x 768 [OpenGL] glDisplay display window initialized [OpenGL] creating 1280x720 texture loaded image fontmapA.png (256 x 512) 2097152 bytes [cuda] cudaAllocMapped 2097152 bytes, CPU 0x101060000 GPU 0x101060000 [cuda] cudaAllocMapped 8192 bytes, CPU 0x100f62000 GPU 0x100f62000 [gstreamer] gstreamer transitioning pipeline to GST_STATE_PLAYING [gstreamer] gstreamer changed state from NULL to READY ==> mysink [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter2 [gstreamer] gstreamer changed state from NULL to READY ==> nvvconv1 [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1 [gstreamer] gstreamer changed state from NULL to READY ==> nvarguscamerasrc0 [gstreamer] gstreamer changed state from NULL to READY ==> pipeline1 [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter2 [gstreamer] gstreamer changed state from READY to PAUSED ==> nvvconv1 [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1 [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer changed state from READY to PAUSED ==> nvarguscamerasrc0 [gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline1 [gstreamer] gstreamer msg new-clock ==> pipeline1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter2 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvvconv1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvarguscamerasrc0 [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] gstreamer msg stream-start ==> pipeline1
imagenet-camera: camera open for streaming GST_ARGUS: Creating output stream CONSUMER: Waiting until producer is connected... GST_ARGUS: Available Sensor modes : Segmentation fault (core dumped)
Found a similar issue Jetson Inference on Xavier Core Dumped (Solved)https://devtalk.nvidia.com/default/topic/1042156/jetson-agx-xavier/jetson-inference-on-xavier-core-dumped-solved-/ Tried this Jetson Xavier + Logitech C920 Issue #267https://github.com/dusty-nv/jetson-inference/issues/267
Found linked webcam using ls -ltrh /dev/video*
changed line inside
jetson-inference/imagenet-camera/imagenet-camera.cpp
to
what's going wrong?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/338?email_source=notifications&email_token=ADVEGKZTOHSROKQLYZAILBDPZDZJJA5CNFSM4HVBCMT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GX76QKA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADVEGKYQKB5I7LPQZRXLKB3PZDZJJANCNFSM4HVBCMTQ.
Logitech, Inc. Webcam C170
@Santhosh1509 please see this topic for steps to set the capture resolution to 640x480 for Logitech C170:
Made the changes specified in the link
started building from source again
showing this while make
[ 1%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 2%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFont.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 3%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaNormalize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaOverlay.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name [ 6%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaRGB.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 7%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaResize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-affine.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 10%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-fisheye.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 11%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-intrinsic.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 13%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-NV12.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 14%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YUYV.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name Scanning dependencies of target jetson-utils [ 15%] Building CXX object utils/CMakeFiles/jetson-utils.dir/XML.cpp.o [ 17%] Building CXX object utils/CMakeFiles/jetson-utils.dir/commandLine.cpp.o [ 18%] Building CXX object utils/CMakeFiles/jetson-utils.dir/filesystem.cpp.o [ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/loadImage.cpp.o [ 21%] Building CXX object utils/CMakeFiles/jetson-utils.dir/timespec.cpp.o [ 22%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o [ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/v4l2Camera.cpp.o [ 25%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o [ 26%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o [ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstUtility.cpp.o /home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus*, GstMessage*, gpointer)’: /home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp:221:17: warning: ISO C++ forbids converting a string constant to ‘gchar* {aka char*}’ [-Wwrite-strings] gchar* txt = "missing gst_tag_list_to_string()"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 28%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glDisplay.cpp.o [ 30%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glTexture.cpp.o [ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devInput.cpp.o /home/rlpl123/jetson-inference/utils/input/devInput.cpp: In static member function ‘static void InputDevices::Enumerate(DeviceList&)’: /home/rlpl123/jetson-inference/utils/input/devInput.cpp:101:6: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 53 [-Wformat-truncation=] void InputDevices::Enumerate( DeviceList& devices ) ^~~~~~~~~~~~ /home/rlpl123/jetson-inference/utils/input/devInput.cpp:118:11: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 64 snprintf(fname, sizeof(fname), "%s/%s", DEV_PATH, namelist[i]->d_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 32%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devJoystick.cpp.o [ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devKeyboard.cpp.o [ 35%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv4.cpp.o [ 36%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/NetworkAdapter.cpp.o [ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Socket.cpp.o [ 39%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Event.cpp.o [ 40%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Mutex.cpp.o [ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Process.cpp.o [ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o [ 44%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so [ 44%] Built target jetson-utils [ 46%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_superResNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 47%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_homographyNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 48%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_imageNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 50%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_segNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name Scanning dependencies of target jetson-inference [ 51%] Building CXX object CMakeFiles/jetson-inference.dir/detectNet.cpp.o [ 52%] Building CXX object CMakeFiles/jetson-inference.dir/homographyNet.cpp.o [ 53%] Building CXX object CMakeFiles/jetson-inference.dir/imageNet.cpp.o [ 55%] Building CXX object CMakeFiles/jetson-inference.dir/segNet.cpp.o [ 56%] Building CXX object CMakeFiles/jetson-inference.dir/superResNet.cpp.o [ 57%] Building CXX object CMakeFiles/jetson-inference.dir/tensorNet.cpp.o [ 59%] Building CXX object CMakeFiles/jetson-inference.dir/calibration/randInt8Calibrator.cpp.o [ 60%] Linking CXX shared library aarch64/lib/libjetson-inference.so [ 60%] Built target jetson-inference Scanning dependencies of target imagenet-console [ 61%] Building CXX object imagenet-console/CMakeFiles/imagenet-console.dir/imagenet-console.cpp.o [ 63%] Linking CXX executable ../aarch64/bin/imagenet-console [ 63%] Built target imagenet-console Scanning dependencies of target imagenet-camera [ 64%] Building CXX object imagenet-camera/CMakeFiles/imagenet-camera.dir/imagenet-camera.cpp.o /home/rlpl123/jetson-inference/imagenet-camera/imagenet-camera.cpp: In function ‘int main(int, char**)’: /home/rlpl123/jetson-inference/imagenet-camera/imagenet-camera.cpp:73:49: error: ‘DEFAULT_CAMERA’ was not declared in this scope gstCamera* camera = gstCamera::Create(640,480, DEFAULT_CAMERA); ^~~~~~~~~~~~~~ /home/rlpl123/jetson-inference/imagenet-camera/imagenet-camera.cpp:73:49: note: suggested alternative: ‘_DEFAULT_SOURCE’ gstCamera* camera = gstCamera::Create(640,480, DEFAULT_CAMERA); ^~~~~~~~~~~~~~ _DEFAULT_SOURCE imagenet-camera/CMakeFiles/imagenet-camera.dir/build.make:62: recipe for target 'imagenet-camera/CMakeFiles/imagenet-camera.dir/imagenet-camera.cpp.o' failed make[2]: *** [imagenet-camera/CMakeFiles/imagenet-camera.dir/imagenet-camera.cpp.o] Error 1 CMakeFiles/Makefile2:179: recipe for target 'imagenet-camera/CMakeFiles/imagenet-camera.dir/all' failed make[1]: *** [imagenet-camera/CMakeFiles/imagenet-camera.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
Do you have a define like this near the top of the imagenet-camera.cpp?
Try setting this to 0 or 1 depending on if your USB webcam is /dev/video0 or /dev/video1
From: Santhosh1509 notifications@github.com Sent: Thursday, June 6, 2019 8:39:23 AM To: dusty-nv/jetson-inference Cc: Dustin Franklin; Comment Subject: Re: [dusty-nv/jetson-inference] ./imagenet-camera googlenet GST_ARGUS: Available Sensor modes : Segmentation fault (core dumped) (#338)
Made the changes specified in the link
started building from source again
showing this while make
[ 1%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 2%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFont.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 3%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaNormalize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaOverlay.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 6%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaRGB.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 7%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaResize.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-affine.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 10%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-fisheye.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 11%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-intrinsic.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 13%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-NV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 14%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YUYV.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
Scanning dependencies of target jetson-utils
[ 15%] Building CXX object utils/CMakeFiles/jetson-utils.dir/XML.cpp.o
[ 17%] Building CXX object utils/CMakeFiles/jetson-utils.dir/commandLine.cpp.o
[ 18%] Building CXX object utils/CMakeFiles/jetson-utils.dir/filesystem.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/loadImage.cpp.o
[ 21%] Building CXX object utils/CMakeFiles/jetson-utils.dir/timespec.cpp.o
[ 22%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o
[ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/v4l2Camera.cpp.o
[ 25%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o
[ 26%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o
[ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstUtility.cpp.o
/home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus, GstMessage, gpointer)’:
/home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp:221:17: warning: ISO C++ forbids converting a string constant to ‘gchar {aka char}’ [-Wwrite-strings]
gchar* txt = "missing gst_tag_list_to_string()";
^~~~~~~~~~
[ 28%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glDisplay.cpp.o
[ 30%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glTexture.cpp.o
[ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devInput.cpp.o
/home/rlpl123/jetson-inference/utils/input/devInput.cpp: In static member function ‘static void InputDevices::Enumerate(DeviceList&)’:
/home/rlpl123/jetson-inference/utils/input/devInput.cpp:101:6: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 53 [-Wformat-truncation=]
void InputDevices::Enumerate( DeviceList& devices )
^~~~
/home/rlpl123/jetson-inference/utils/input/devInput.cpp:118:11: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 64
snprintf(fname, sizeof(fname), "%s/%s", DEV_PATH, namelist[i]->d_name);
[ 32%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devJoystick.cpp.o
[ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devKeyboard.cpp.o
[ 35%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv4.cpp.o
[ 36%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/NetworkAdapter.cpp.o
[ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Socket.cpp.o
[ 39%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Event.cpp.o
[ 40%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Mutex.cpp.o
[ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Process.cpp.o
[ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o
[ 44%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so
[ 44%] Built target jetson-utils
[ 46%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_superResNet.cu.o
Giving the same error even after changing
#define DEFAULT_CAMERA 0
since my webcam is detected as /dev/video0
I would start with a fresh clone of the repo, then apply that 640x480 edit. Something has gone wrong in imagenet-camera
From: Santhosh1509 notifications@github.com Sent: Thursday, June 6, 2019 9:17:05 AM To: dusty-nv/jetson-inference Cc: Dustin Franklin; Comment Subject: Re: [dusty-nv/jetson-inference] ./imagenet-camera googlenet GST_ARGUS: Available Sensor modes : Segmentation fault (core dumped) (#338)
Giving the same error even after changing
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/338?email_source=notifications&email_token=ADVEGK2OMAPCU6EZ6PNNP5LPZEE5DA5CNFSM4HVBCMT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCZUCQ#issuecomment-499489290, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADVEGK7H6WLMKFEJQE4JCHLPZEE5DANCNFSM4HVBCMTQ.
I built it again, getting some warning. Installation done. Will try it out with other webcam as well.
[ 1%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 2%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFont.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 3%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaNormalize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaOverlay.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced :0:7: warning: ISO C++11 requires whitespace after the macro name [ 6%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaRGB.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 7%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaResize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-affine.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 10%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-fisheye.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 11%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-intrinsic.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 13%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-NV12.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 14%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YUYV.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name Scanning dependencies of target jetson-utils [ 15%] Building CXX object utils/CMakeFiles/jetson-utils.dir/XML.cpp.o [ 17%] Building CXX object utils/CMakeFiles/jetson-utils.dir/commandLine.cpp.o [ 18%] Building CXX object utils/CMakeFiles/jetson-utils.dir/filesystem.cpp.o [ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/loadImage.cpp.o [ 21%] Building CXX object utils/CMakeFiles/jetson-utils.dir/timespec.cpp.o [ 22%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o [ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/v4l2Camera.cpp.o [ 25%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o [ 26%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o [ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstUtility.cpp.o /home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus*, GstMessage*, gpointer)’: /home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp:221:17: warning: ISO C++ forbids converting a string constant to ‘gchar* {aka char*}’ [-Wwrite-strings] gchar* txt = "missing gst_tag_list_to_string()"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 28%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glDisplay.cpp.o [ 30%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glTexture.cpp.o [ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devInput.cpp.o /home/rlpl123/jetson-inference/utils/input/devInput.cpp: In static member function ‘static void InputDevices::Enumerate(DeviceList&)’: /home/rlpl123/jetson-inference/utils/input/devInput.cpp:101:6: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 53 [-Wformat-truncation=] void InputDevices::Enumerate( DeviceList& devices ) ^~~~~~~~~~~~ /home/rlpl123/jetson-inference/utils/input/devInput.cpp:118:11: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 64 snprintf(fname, sizeof(fname), "%s/%s", DEV_PATH, namelist[i]->d_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 32%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devJoystick.cpp.o [ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devKeyboard.cpp.o [ 35%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv4.cpp.o [ 36%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/NetworkAdapter.cpp.o [ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Socket.cpp.o [ 39%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Event.cpp.o [ 40%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Mutex.cpp.o [ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Process.cpp.o [ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o [ 44%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so [ 44%] Built target jetson-utils [ 46%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_superResNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 47%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_homographyNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 48%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_imageNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 50%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_segNet.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name Scanning dependencies of target jetson-inference [ 51%] Building CXX object CMakeFiles/jetson-inference.dir/detectNet.cpp.o [ 52%] Building CXX object CMakeFiles/jetson-inference.dir/homographyNet.cpp.o [ 53%] Building CXX object CMakeFiles/jetson-inference.dir/imageNet.cpp.o [ 55%] Building CXX object CMakeFiles/jetson-inference.dir/segNet.cpp.o [ 56%] Building CXX object CMakeFiles/jetson-inference.dir/superResNet.cpp.o [ 57%] Building CXX object CMakeFiles/jetson-inference.dir/tensorNet.cpp.o [ 59%] Building CXX object CMakeFiles/jetson-inference.dir/calibration/randInt8Calibrator.cpp.o [ 60%] Linking CXX shared library aarch64/lib/libjetson-inference.so [ 60%] Built target jetson-inference Scanning dependencies of target imagenet-console [ 61%] Building CXX object imagenet-console/CMakeFiles/imagenet-console.dir/imagenet-console.cpp.o [ 63%] Linking CXX executable ../aarch64/bin/imagenet-console [ 63%] Built target imagenet-console Scanning dependencies of target imagenet-camera [ 64%] Building CXX object imagenet-camera/CMakeFiles/imagenet-camera.dir/imagenet-camera.cpp.o [ 65%] Linking CXX executable ../aarch64/bin/imagenet-camera [ 65%] Built target imagenet-camera Scanning dependencies of target detectnet-console [ 67%] Building CXX object detectnet-console/CMakeFiles/detectnet-console.dir/detectnet-console.cpp.o In file included from /home/rlpl123/jetson-inference/build/aarch64/include/loadImage.h:27:0, from /home/rlpl123/jetson-inference/detectnet-console/detectnet-console.cpp:24: /home/rlpl123/jetson-inference/detectnet-console/detectnet-console.cpp: In function ‘int main(int, char**)’: /home/rlpl123/jetson-inference/detectnet-console/detectnet-console.cpp:135:30: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations] CUDA(cudaThreadSynchronize()); ^ /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:38:36: note: in definition of macro ‘CUDA’ #define CUDA(x) cudaCheckError((x), #x, __FILE__, __LINE__) ^ In file included from /usr/local/cuda/include/channel_descriptor.h:61:0, from /usr/local/cuda/include/cuda_runtime.h:95, from /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:27, from /home/rlpl123/jetson-inference/build/aarch64/include/loadImage.h:27, from /home/rlpl123/jetson-inference/detectnet-console/detectnet-console.cpp:24: /usr/local/cuda/include/cuda_runtime_api.h:952:57: note: declared here extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void); ^~~~~~~~~~~~~~~~~~~~~ [ 68%] Linking CXX executable ../aarch64/bin/detectnet-console [ 68%] Built target detectnet-console Scanning dependencies of target detectnet-camera [ 69%] Building CXX object detectnet-camera/CMakeFiles/detectnet-camera.dir/detectnet-camera.cpp.o [ 71%] Linking CXX executable ../aarch64/bin/detectnet-camera [ 71%] Built target detectnet-camera Scanning dependencies of target segnet-console [ 72%] Building CXX object segnet-console/CMakeFiles/segnet-console.dir/segnet-console.cpp.o In file included from /home/rlpl123/jetson-inference/build/aarch64/include/loadImage.h:27:0, from /home/rlpl123/jetson-inference/segnet-console/segnet-console.cpp:25: /home/rlpl123/jetson-inference/segnet-console/segnet-console.cpp: In function ‘int main(int, char**)’: /home/rlpl123/jetson-inference/segnet-console/segnet-console.cpp:124:29: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations] CUDA(cudaThreadSynchronize()); ^ /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:38:36: note: in definition of macro ‘CUDA’ #define CUDA(x) cudaCheckError((x), #x, __FILE__, __LINE__) ^ In file included from /usr/local/cuda/include/channel_descriptor.h:61:0, from /usr/local/cuda/include/cuda_runtime.h:95, from /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:27, from /home/rlpl123/jetson-inference/build/aarch64/include/loadImage.h:27, from /home/rlpl123/jetson-inference/segnet-console/segnet-console.cpp:25: /usr/local/cuda/include/cuda_runtime_api.h:952:57: note: declared here extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void); ^~~~~~~~~~~~~~~~~~~~~ [ 73%] Linking CXX executable ../aarch64/bin/segnet-console [ 73%] Built target segnet-console Scanning dependencies of target segnet-camera [ 75%] Building CXX object segnet-camera/CMakeFiles/segnet-camera.dir/segnet-camera.cpp.o [ 76%] Linking CXX executable ../aarch64/bin/segnet-camera [ 76%] Built target segnet-camera Scanning dependencies of target trt-bench [ 77%] Building CXX object trt-bench/CMakeFiles/trt-bench.dir/trt-bench.cpp.o [ 78%] Linking CXX executable ../aarch64/bin/trt-bench [ 78%] Built target trt-bench Scanning dependencies of target trt-console [ 80%] Building CXX object trt-console/CMakeFiles/trt-console.dir/trt-console.cpp.o [ 81%] Linking CXX executable ../aarch64/bin/trt-console [ 81%] Built target trt-console Scanning dependencies of target gst-camera [ 82%] Building CXX object utils/camera/gst-camera/CMakeFiles/gst-camera.dir/gst-camera.cpp.o [ 84%] Linking CXX executable ../../../aarch64/bin/gst-camera [ 84%] Built target gst-camera Scanning dependencies of target v4l2-console [ 85%] Building CXX object utils/camera/v4l2-console/CMakeFiles/v4l2-console.dir/v4l2-console.cpp.o [ 86%] Linking CXX executable ../../../aarch64/bin/v4l2-console [ 86%] Built target v4l2-console Scanning dependencies of target v4l2-display [ 88%] Building CXX object utils/camera/v4l2-display/CMakeFiles/v4l2-display.dir/v4l2-display.cpp.o [ 89%] Linking CXX executable ../../../aarch64/bin/v4l2-display [ 89%] Built target v4l2-display Scanning dependencies of target gl-display-test [ 90%] Building CXX object utils/display/gl-display-test/CMakeFiles/gl-display-test.dir/gl-display-test.cpp.o [ 92%] Linking CXX executable ../../../aarch64/bin/gl-display-test [ 92%] Built target gl-display-test Scanning dependencies of target homography-console [ 93%] Building CXX object homography-console/CMakeFiles/homography-console.dir/homography-console.cpp.o In file included from /home/rlpl123/jetson-inference/build/aarch64/include/cudaMappedMemory.h:27:0, from /home/rlpl123/jetson-inference/homography-console/homography-console.cpp:25: /home/rlpl123/jetson-inference/homography-console/homography-console.cpp: In function ‘int main(int, char**)’: /home/rlpl123/jetson-inference/homography-console/homography-console.cpp:157:30: warning: ‘cudaError_t cudaThreadSynchronize()’ is deprecated [-Wdeprecated-declarations] CUDA(cudaThreadSynchronize()); ^ /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:38:36: note: in definition of macro ‘CUDA’ #define CUDA(x) cudaCheckError((x), #x, __FILE__, __LINE__) ^ In file included from /usr/local/cuda/include/channel_descriptor.h:61:0, from /usr/local/cuda/include/cuda_runtime.h:95, from /home/rlpl123/jetson-inference/build/aarch64/include/cudaUtility.h:27, from /home/rlpl123/jetson-inference/build/aarch64/include/cudaMappedMemory.h:27, from /home/rlpl123/jetson-inference/homography-console/homography-console.cpp:25: /usr/local/cuda/include/cuda_runtime_api.h:952:57: note: declared here extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void); ^~~~~~~~~~~~~~~~~~~~~ [ 94%] Linking CXX executable ../aarch64/bin/homography-console [ 94%] Built target homography-console Scanning dependencies of target homography-camera [ 96%] Building CXX object homography-camera/CMakeFiles/homography-camera.dir/homography-camera.cpp.o [ 97%] Linking CXX executable ../aarch64/bin/homography-camera [ 97%] Built target homography-camera Scanning dependencies of target superres-console [ 98%] Building CXX object superres-console/CMakeFiles/superres-console.dir/superres-console.cpp.o [100%] Linking CXX executable ../aarch64/bin/superres-console [100%] Built target superres-console Note: this project uses git submodules in the source tree. if you haven't already, run the following command from the project's root directory: git submodule update --init -- CUDA version: 10.0 -- CUDA 10 detected, enabling SM_72 -- system arch: aarch64 -- output path: /home/rlpl123/jetson-inference/build/aarch64 -- Copying /home/rlpl123/jetson-inference/detectNet.h -- Copying /home/rlpl123/jetson-inference/homographyNet.h -- Copying /home/rlpl123/jetson-inference/imageNet.h -- Copying /home/rlpl123/jetson-inference/segNet.h -- Copying /home/rlpl123/jetson-inference/superResNet.h -- Copying /home/rlpl123/jetson-inference/tensorNet.h -- Copying /home/rlpl123/jetson-inference/calibration/randInt8Calibrator.h -- Copying /home/rlpl123/jetson-inference/data/images/airplane_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/banana_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/bird_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/black_bear.jpg -- Copying /home/rlpl123/jetson-inference/data/images/bottle_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/brown_bear.jpg -- Copying /home/rlpl123/jetson-inference/data/images/cat_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/dog_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/dog_1.jpg -- Copying /home/rlpl123/jetson-inference/data/images/dog_2.jpg -- Copying /home/rlpl123/jetson-inference/data/images/drone_0255.png -- Copying /home/rlpl123/jetson-inference/data/images/drone_0427.png -- Copying /home/rlpl123/jetson-inference/data/images/drone_0428.png -- Copying /home/rlpl123/jetson-inference/data/images/drone_0435.png -- Copying /home/rlpl123/jetson-inference/data/images/drone_0436.png -- Copying /home/rlpl123/jetson-inference/data/images/fontmapA.png -- Copying /home/rlpl123/jetson-inference/data/images/fontmapB.png -- Copying /home/rlpl123/jetson-inference/data/images/granny_smith_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/granny_smith_1.jpg -- Copying /home/rlpl123/jetson-inference/data/images/orange_0.jpg -- Copying /home/rlpl123/jetson-inference/data/images/orange_1.jpg -- Copying /home/rlpl123/jetson-inference/data/images/peds-001.jpg -- Copying /home/rlpl123/jetson-inference/data/images/peds-002.jpg -- Copying /home/rlpl123/jetson-inference/data/images/peds-003.jpg -- Copying /home/rlpl123/jetson-inference/data/images/peds-004.jpg -- Copying /home/rlpl123/jetson-inference/data/images/polar_bear.jpg -- Copying /home/rlpl123/jetson-inference/data/images/red_apple_0.jpg -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- jetson-utils: building as submodule, /home/rlpl123/jetson-inference -- Copying /home/rlpl123/jetson-inference/utils/XML.h -- Copying /home/rlpl123/jetson-inference/utils/commandLine.h -- Copying /home/rlpl123/jetson-inference/utils/filesystem.h -- Copying /home/rlpl123/jetson-inference/utils/loadImage.h -- Copying /home/rlpl123/jetson-inference/utils/mat33.h -- Copying /home/rlpl123/jetson-inference/utils/pi.h -- Copying /home/rlpl123/jetson-inference/utils/rand.h -- Copying /home/rlpl123/jetson-inference/utils/timespec.h -- Copying /home/rlpl123/jetson-inference/utils/camera/gstCamera.h -- Copying /home/rlpl123/jetson-inference/utils/camera/v4l2Camera.h -- Copying /home/rlpl123/jetson-inference/utils/codec/gstDecoder.h -- Copying /home/rlpl123/jetson-inference/utils/codec/gstEncoder.h -- Copying /home/rlpl123/jetson-inference/utils/codec/gstUtility.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaFont.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaMappedMemory.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaNormalize.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaRGB.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaResize.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaUtility.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaWarp.h -- Copying /home/rlpl123/jetson-inference/utils/cuda/cudaYUV.h -- Copying /home/rlpl123/jetson-inference/utils/display/glDisplay.h -- Copying /home/rlpl123/jetson-inference/utils/display/glTexture.h -- Copying /home/rlpl123/jetson-inference/utils/display/glUtility.h -- Copying /home/rlpl123/jetson-inference/utils/input/devInput.h -- Copying /home/rlpl123/jetson-inference/utils/input/devJoystick.h -- Copying /home/rlpl123/jetson-inference/utils/input/devKeyboard.h -- Copying /home/rlpl123/jetson-inference/utils/network/Endian.h -- Copying /home/rlpl123/jetson-inference/utils/network/IPv4.h -- Copying /home/rlpl123/jetson-inference/utils/network/NetworkAdapter.h -- Copying /home/rlpl123/jetson-inference/utils/network/Socket.h -- Copying /home/rlpl123/jetson-inference/utils/threads/Event.h -- Copying /home/rlpl123/jetson-inference/utils/threads/Mutex.h -- Copying /home/rlpl123/jetson-inference/utils/threads/Process.h -- Copying /home/rlpl123/jetson-inference/utils/threads/Thread.h -- Copying /home/rlpl123/jetson-inference/utils/data/fontmapA.png -- Copying /home/rlpl123/jetson-inference/utils/data/fontmapB.png -- Configuring done -- Generating done -- Build files have been written to: /home/rlpl123/jetson-inference/build [ 1%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so [ 44%] Built target jetson-utils [ 46%] Linking CXX shared library aarch64/lib/libjetson-inference.so [ 60%] Built target jetson-inference [ 61%] Linking CXX executable ../aarch64/bin/imagenet-console [ 63%] Built target imagenet-console [ 64%] Linking CXX executable ../aarch64/bin/imagenet-camera [ 65%] Built target imagenet-camera [ 67%] Linking CXX executable ../aarch64/bin/detectnet-console [ 68%] Built target detectnet-console [ 69%] Linking CXX executable ../aarch64/bin/detectnet-camera [ 71%] Built target detectnet-camera [ 72%] Linking CXX executable ../aarch64/bin/segnet-console [ 73%] Built target segnet-console [ 75%] Linking CXX executable ../aarch64/bin/segnet-camera [ 76%] Built target segnet-camera [ 77%] Linking CXX executable ../aarch64/bin/trt-bench [ 78%] Built target trt-bench [ 80%] Linking CXX executable ../aarch64/bin/trt-console [ 81%] Built target trt-console [ 82%] Linking CXX executable ../../../aarch64/bin/gst-camera [ 84%] Built target gst-camera [ 85%] Linking CXX executable ../../../aarch64/bin/v4l2-console [ 86%] Built target v4l2-console [ 88%] Linking CXX executable ../../../aarch64/bin/v4l2-display [ 89%] Built target v4l2-display [ 90%] Linking CXX executable ../../../aarch64/bin/gl-display-test [ 92%] Built target gl-display-test [ 93%] Linking CXX executable ../aarch64/bin/homography-console [ 94%] Built target homography-console [ 96%] Linking CXX executable ../aarch64/bin/homography-camera [ 97%] Built target homography-camera [ 98%] Linking CXX executable ../aarch64/bin/superres-console [100%] Built target superres-console
It looks like this built fine without errors. The warnings aren't a problem.
From: Santhosh1509 notifications@github.com Sent: Friday, June 7, 2019 1:24:59 AM To: dusty-nv/jetson-inference Cc: Dustin Franklin; Comment Subject: Re: [dusty-nv/jetson-inference] ./imagenet-camera googlenet GST_ARGUS: Available Sensor modes : Segmentation fault (core dumped) (#338)
I built it again, getting some warning. Installation done. Will try it out with other webcam as well.
[ 1%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YV12.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 2%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaFont.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 3%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaNormalize.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name [ 5%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaOverlay.cu.o :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name :0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name /home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced
/home/rlpl123/jetson-inference/utils/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 6%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaRGB.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 7%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaResize.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 9%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-affine.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 10%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-fisheye.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 11%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaWarp-intrinsic.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 13%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-NV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 14%] Building NVCC (Device) object utils/CMakeFiles/jetson-utils.dir/cuda/jetson-utils_generated_cudaYUV-YUYV.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
:0:7: warning: ISO C++11 requires whitespace after the macro name
Scanning dependencies of target jetson-utils
[ 15%] Building CXX object utils/CMakeFiles/jetson-utils.dir/XML.cpp.o
[ 17%] Building CXX object utils/CMakeFiles/jetson-utils.dir/commandLine.cpp.o
[ 18%] Building CXX object utils/CMakeFiles/jetson-utils.dir/filesystem.cpp.o
[ 19%] Building CXX object utils/CMakeFiles/jetson-utils.dir/loadImage.cpp.o
[ 21%] Building CXX object utils/CMakeFiles/jetson-utils.dir/timespec.cpp.o
[ 22%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o
[ 23%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/v4l2Camera.cpp.o
[ 25%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstDecoder.cpp.o
[ 26%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstEncoder.cpp.o
[ 27%] Building CXX object utils/CMakeFiles/jetson-utils.dir/codec/gstUtility.cpp.o
/home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus, GstMessage, gpointer)’:
/home/rlpl123/jetson-inference/utils/codec/gstUtility.cpp:221:17: warning: ISO C++ forbids converting a string constant to ‘gchar {aka char}’ [-Wwrite-strings]
gchar* txt = "missing gst_tag_list_to_string()";
^~~~~~~~~~
[ 28%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glDisplay.cpp.o
[ 30%] Building CXX object utils/CMakeFiles/jetson-utils.dir/display/glTexture.cpp.o
[ 31%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devInput.cpp.o
/home/rlpl123/jetson-inference/utils/input/devInput.cpp: In static member function ‘static void InputDevices::Enumerate(DeviceList&)’:
/home/rlpl123/jetson-inference/utils/input/devInput.cpp:101:6: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 53 [-Wformat-truncation=]
void InputDevices::Enumerate( DeviceList& devices )
^~~~
/home/rlpl123/jetson-inference/utils/input/devInput.cpp:118:11: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 64
snprintf(fname, sizeof(fname), "%s/%s", DEV_PATH, namelist[i]->d_name);
[ 32%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devJoystick.cpp.o
[ 34%] Building CXX object utils/CMakeFiles/jetson-utils.dir/input/devKeyboard.cpp.o
[ 35%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/IPv4.cpp.o
[ 36%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/NetworkAdapter.cpp.o
[ 38%] Building CXX object utils/CMakeFiles/jetson-utils.dir/network/Socket.cpp.o
[ 39%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Event.cpp.o
[ 40%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Mutex.cpp.o
[ 42%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Process.cpp.o
[ 43%] Building CXX object utils/CMakeFiles/jetson-utils.dir/threads/Thread.cpp.o
[ 44%] Linking CXX shared library ../aarch64/lib/libjetson-utils.so
[ 44%] Built target jetson-utils
[ 46%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_superResNet.cu.o
Need to change to #define DEFAULT_CAMERA 0
I’m using the Logitech c920 via USB and didn’t need to change the resolution for it to work.
I also had to verify the time was set correctly on the device so the build would happen without errors.
One other thing....I switched from the micro usb power to the barrell jack since more power may be needed. The rational and steps are outlined here:
https://www.jetsonhacks.com/2019/04/10/jetson-nano-use-more-power/
Ran the command
./imagenet-camera googlenet
insideI get this
Found a similar issue Jetson Inference on Xavier Core Dumped (Solved) Tried this Jetson Xavier + Logitech C920 Issue #267
Found linked webcam using
ls -ltrh /dev/video*
changed line inside
#define DEFAULT_CAMERA -1
to#define DEFAULT_CAMERA dev/video0
what's going wrong?