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

Compiling on host. #63

Closed
bpinaya opened this issue Mar 29, 2017 · 21 comments
Closed

Compiling on host. #63

bpinaya opened this issue Mar 29, 2017 · 21 comments

Comments

@bpinaya
Copy link

bpinaya commented Mar 29, 2017

Hi there Dustin, I am trying to compile this on a host computer just to see the TensorRT examples, been looking around and this repo seems to have it the clearest.
I am trying on the master branch, with cuda 8 and tensorRT installed and I am seeing errors like these:
`:0:7: warning: ISO C99 requires whitespace after the macro name [enabled by default]
:0:7: warning: ISO C99 requires whitespace after the macro name [enabled by default]
:0:7: warning: ISO C99 requires whitespace after the macro name [enabled by default]
:0:7: warning: ISO C99 requires whitespace after the macro name [enabled by default]
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: expected a ";"

/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h(190): error: expected a ";"

/usr/include/c++/4.8/exception(63): error: expected a ";"

/usr/include/c++/4.8/exception(68): error: expected a ";"
I assume those are some C++11 errors but I saw the CmakeList and found:set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")`
Any tips I could use? All help is appreciated.

@abdo-abaco
Copy link

Hi bpinaya, look for the CUDA_NVCC_FLAGS and add -std=c++11 as follows. This was shown on another comment.

set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS};
-O3
-std=c++11 -gencode arch=compute_53,code=sm_53
-gencode arch=compute_62,code=sm_62
)

@bpinaya
Copy link
Author

bpinaya commented Mar 29, 2017

@abdo-abaco thanks for the quick response, I tried that one but I am still getting stuck at:

/usr/include/c++/4.8/type_traits(269): error: identifier "__float128" is undefined
1 error detected in the compilation of "/tmp/tmpxft_0000592f_00000000-9_cudaFont.compute_62.cpp1.ii".
CMake Error at jetson-inference_generated_cudaFont.cu.o.cmake:264 (message):

I have a tx1 where I was successfully running this but in the host computer it fails. If you know any other tensorRT examples I'd be thankful!

@hitspring2015
Copy link

I am also trying to compile this on a host computer. What the IDE is Nsight Eclipse Edition from Nvidia and the host computer is ubuntu14.04 .and I connect Tx1 and the host with ssh

according to the follows what is from Cmakelist,I include the libraries and the .h

``# build C/C++ interface
include_directories(${PROJECT_INCLUDE_DIR} ${GIE_PATH}/include)
include_directories(/usr/include/gstreamer-1.0 /usr/lib/aarch64-linux-gnu/gstreamer-1.0/include /usr/include/glib-2.0 /usr/include/libxml2 /usr/lib/aarch64-linux-gnu/glib-2.0/include/)

file(GLOB inferenceSources .cpp .cu util/.cpp util/camera/.cpp util/cuda/.cu util/display/.cpp)
file(GLOB inferenceIncludes .h util/.h util/camera/.h util/cuda/.h util/display/*.h)

cuda_add_library(jetson-inference SHARED ${inferenceSources})
target_link_libraries(jetson-inference nvcaffe_parser nvinfer Qt4::QtGui GL GLEW gstreamer-1.0 gstapp-1.0) # gstreamer-0.10 gstbase-0.10 gstapp-0.10

but now i can not compile it, what the error is
Description Resource Path Location Type
./glDisplay.o: undefined reference to symbol 'XGetWindowAttributes' test4face C/C++ Problem

@abdo-abaco
Copy link

@bpinaya it should compile with the correct libraries installed. Make sure TensorRT is installed and try https://github.com/Abaco-Systems/jetson-inference-gv. This has webcam support. This should compile as well and currently working on getting it to run on host.

@abdo-abaco
Copy link

I got this demo to run on the host. So you don't need the Abaco one.
First step is to get it to compile. Then to get it to run:
Run your deviceQuery example and find out your compute architecture. In my case 5.0 and 6.3. As mentioned by Dustin make to set #define DEFAULT_CAMERA to 0 on the detectnet-camera.cpp file.

Go to CMakeLists.txt and add the lines underneath: -gencode arch=compute_50,code=sm_50
-gencode arch=compute_50,code=sm_50
-gencode arch=compute_61,code=sm_61

Another note: make sure you have the host tools from jetpack installed. Not sure if this can help.

@sulth
Copy link

sulth commented Jun 9, 2017

$:~/jetson-inference/build$ sudo make -j8
[ 5%] Building CXX object CMakeFiles/jetson-inference.dir/imageNet.cpp.o
[ 5%] Building CXX object CMakeFiles/jetson-inference.dir/detectNet.cpp.o
[ 8%] Building CXX object CMakeFiles/jetson-inference.dir/segNet.cpp.o
[ 10%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/gstUtility.cpp.o
In file included from /home/admin/jetson-inference/detectNet.h:9:0,
from /home/admin/jetson-inference/detectNet.cpp:5:
/home/admin/jetson-inference/tensorNet.h:9:21: fatal error: NvInfer.h: No such file or directory
#include "NvInfer.h"
^
compilation terminated.
In file included from /home/admin/jetson-inference/segNet.h:9:0,
from /home/admin/jetson-inference/segNet.cpp:5:
/home/admin/jetson-inference/tensorNet.h:9:21: fatal error: NvInfer.h: No such file or directory
#include "NvInfer.h"
^
compilation terminated.
CMakeFiles/jetson-inference.dir/build.make:1373: recipe for target 'CMakeFiles/jetson-inference.dir/detectNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/detectNet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/gstreamer-1.0/gst/gst.h:27,
from /home/admin/jetson-inference/util/camera/gstUtility.h:9,
from /home/admin/jetson-inference/util/camera/gstUtility.cpp:5:
/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
[ 13%] Building CXX object CMakeFiles/jetson-inference.dir/tensorNet.cpp.o
compilation terminated.
CMakeFiles/jetson-inference.dir/build.make:1421: recipe for target 'CMakeFiles/jetson-inference.dir/segNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/segNet.cpp.o] Error 1
In file included from /home/admin/jetson-inference/imageNet.h:9:0,
from /home/admin/jetson-inference/imageNet.cpp:5:
/home/admin/jetson-inference/tensorNet.h:9:21: fatal error: NvInfer.h: No such file or directory
#include "NvInfer.h"
^
compilation terminated.
CMakeFiles/jetson-inference.dir/build.make:1517: recipe for target 'CMakeFiles/jetson-inference.dir/util/camera/gstUtility.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/util/camera/gstUtility.cpp.o] Error 1
CMakeFiles/jetson-inference.dir/build.make:1397: recipe for target 'CMakeFiles/jetson-inference.dir/imageNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/imageNet.cpp.o] Error 1
[ 16%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/gstCamera.cpp.o
In file included from /home/admin/jetson-inference/tensorNet.cpp:5:0:
/home/admin/jetson-inference/tensorNet.h:9:21: fatal error: NvInfer.h: No such file or directory
#include "NvInfer.h"
^
compilation terminated.
CMakeFiles/jetson-inference.dir/build.make:1445: recipe for target 'CMakeFiles/jetson-inference.dir/tensorNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/tensorNet.cpp.o] Error 1
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/gstreamer-1.0/gst/gst.h:27,
from /home/admin/jetson-inference/util/camera/gstCamera.h:8,
from /home/admin/jetson-inference/util/camera/gstCamera.cpp:5:
/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
CMakeFiles/jetson-inference.dir/build.make:1565: recipe for target 'CMakeFiles/jetson-inference.dir/util/camera/gstCamera.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/util/camera/gstCamera.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-inference.dir/all' failed
make[1]: *** [CMakeFiles/jetson-inference.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

This is the error while iam compiling jetson inference.Please someone help me in finding a way ut.

@dusty-nv
Copy link
Owner

dusty-nv commented Jun 9, 2017 via email

@sulth
Copy link

sulth commented Jun 9, 2017

Thankyou.So whether i should install the jetson inference inside the board than in the host pc.

@sulth
Copy link

sulth commented Jun 9, 2017

Now i tried installing jetson inference on jetson tx2 board,i have errors as mentioned down.Please may help me build it in cmake ../
FCN-Alexnet-Aerial-FPV-720p/snapshot_iter_10280.caffemodel
FCN-Alexnet-Aerial-FPV-720p/fpv-labels.txt
FCN-Alexnet-Aerial-FPV-720p/fpv-deploy-colors.txt
FCN-Alexnet-Aerial-FPV-720p/fcn_alexnet.deploy.prototxt
FCN-Alexnet-Aerial-FPV-720p/fcn_alexnet.digits.deploy.prototxt
FCN-Alexnet-Aerial-FPV-720p/fpv-training-colors.txt
[Pre-build] Finished CMakePreBuild script
Finished installing dependencies
qmake: could not exec '/usr/lib/aarch64-linux-gnu/qt4/bin/qmake': No such file or directory
CMake Error at /usr/share/cmake-3.5/Modules/FindQt4.cmake:1326 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/nvidia/jetson-inference/build/CMakeFiles/CMakeOutput.log".
nvidia@tegra-ubuntu:~/jetson-inference/build$

@dusty-nv
Copy link
Owner

dusty-nv commented Jun 9, 2017 via email

@sulth
Copy link

sulth commented Jun 9, 2017

Thanks i have installed all those packages except Package 'glew-utils' has no installation candidate in the location/usr/lib/aarch64-linux-gnu
,now iam getting error in cmake ../ as this.please look into it..............................................................................................................................................................FCN-Alexnet-Aerial-FPV-720p/fpv-training-colors.txt
[Pre-build] Finished CMakePreBuild script
Finished installing dependencies
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.7")
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- system arch: aarch64...........................................................................................................ra/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/camera/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs

-- Configuring incomplete, errors occurred!

@sulth
Copy link

sulth commented Jun 10, 2017

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake file s:
CUDA_CUDART_LIBRARY (ADVANCED)
linked by target "jetson-inference" in directory /home/nvidia/jetson-inferen ce
linked by target "imagenet-console" in directory /home/nvidia/jetson-inferen ce/imagenet-console
linked by target "imagenet-camera" in directory /home/nvidia/jetson-inferenc e/imagenet-camera
linked by target "detectnet-console" in directory /home/nvidia/jetson-infere nce/detectnet-console
linked by target "detectnet-camera" in directory /home/nvidia/jetson-inferen ce/detectnet-camera
linked by target "segnet-console" in directory /home/nvidia/jetson-inference /segnet-console
CUDA_TOOLKIT_INCLUDE (ADVANCED)
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -console
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/imagenet -camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-console
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/detectne t-camera
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/segnet-c onsole
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/gst-camera
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-console
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/util/cam era/v4l2-display
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs
used as include directory in directory /home/nvidia/jetson-inference/docs

-- Configuring incomplete, errors occurred!
See also "/home/nvidia/jetson-inference/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/jetson-inference/build/CMakeFiles/CMakeError.log".

Please may help me analyse the problem.Iam stuck.Is it with any problem on jetpack installation.

@limcheling
Copy link

Hi, any follow up? I have the same problem too and stuck here.

@trohit920
Copy link

trohit920 commented Jul 27, 2018

Hello @dusty-nv @bpinaya @abdo-abaco , I am trying to run Jetson-Inference on a host machine and got stuck with this error. I have installed TensorRT and GStreamer and all other Cuda related requirements. Have anyone successfully able to install this on host if so please can you see what i am doing wrong here?

~/jetson-inference/build$` sudo make -j8
-- system arch:  x86_64
-- output path:  /home/rohit/jetson-inference/build/x86_64
-- Copying /home/rohit/jetson-inference/tensorNet.h
-- Copying /home/rohit/jetson-inference/imageNet.h
-- Copying /home/rohit/jetson-inference/detectNet.h
-- Copying /home/rohit/jetson-inference/segNet.h
-- Copying /home/rohit/jetson-inference/util/loadImage.h
-- Copying /home/rohit/jetson-inference/util/commandLine.h
-- Copying /home/rohit/jetson-inference/util/camera/v4l2Camera.h
-- Copying /home/rohit/jetson-inference/util/camera/gstCamera.h
-- Copying /home/rohit/jetson-inference/util/camera/gstUtility.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaRGB.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaOverlay.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaUtility.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaYUV.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaResize.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaFont.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaNormalize.h
-- Copying /home/rohit/jetson-inference/util/cuda/cudaMappedMemory.h
-- Copying /home/rohit/jetson-inference/util/display/glUtility.h
-- Copying /home/rohit/jetson-inference/util/display/glTexture.h
-- Copying /home/rohit/jetson-inference/util/display/glDisplay.h
-- Copying /home/rohit/jetson-inference/data/images/drone_0436.png
-- Copying /home/rohit/jetson-inference/data/images/dog_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/dog_2.jpg
-- Copying /home/rohit/jetson-inference/data/images/drone_0255.png
-- Copying /home/rohit/jetson-inference/data/images/red_apple_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/drone_0427.png
-- Copying /home/rohit/jetson-inference/data/images/bird_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/granny_smith_1.jpg
-- Copying /home/rohit/jetson-inference/data/images/bottle_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/peds-002.jpg
-- Copying /home/rohit/jetson-inference/data/images/dog_1.jpg
-- Copying /home/rohit/jetson-inference/data/images/fontmapA.png
-- Copying /home/rohit/jetson-inference/data/images/peds-004.jpg
-- Copying /home/rohit/jetson-inference/data/images/granny_smith_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/peds-001.jpg
-- Copying /home/rohit/jetson-inference/data/images/airplane_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/cat_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/peds-003.jpg
-- Copying /home/rohit/jetson-inference/data/images/fontmapB.png
-- Copying /home/rohit/jetson-inference/data/images/orange_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/banana_0.jpg
-- Copying /home/rohit/jetson-inference/data/images/orange_1.jpg
-- Copying /home/rohit/jetson-inference/data/images/drone_0435.png
-- Copying /home/rohit/jetson-inference/data/images/drone_0428.png
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rohit/jetson-inference/build
[  2%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaOverlay.cu.o
[  5%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaResize.cu.o
[  7%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaRGB.cu.o
[ 10%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-NV12.cu.o
[ 12%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-YV12.cu.o
[ 15%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaFont.cu.o
[ 17%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/jetson-inference_generated_imageNet.cu.o
[ 20%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaNormalize.cu.o
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced

/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced

<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced

/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced

<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced

/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced

<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(47): warning: variable "thick" was declared but never referenced

/home/rohit/jetson-inference/util/cuda/cudaOverlay.cu(26): warning: function "eq_less" was declared but never referenced

[ 23%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/util/cuda/jetson-inference_generated_cudaYUV-YUYV.cu.o
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:2: warning: ISO C++11 requires whitespace after the macro name
<command-line>:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 25%] Building CXX object CMakeFiles/jetson-inference.dir/tensorNet.cpp.o
[ 28%] Building CXX object CMakeFiles/jetson-inference.dir/imageNet.cpp.o
[ 30%] Building CXX object CMakeFiles/jetson-inference.dir/detectNet.cpp.o
[ 33%] Building CXX object CMakeFiles/jetson-inference.dir/segNet.cpp.o
[ 35%] Building CXX object CMakeFiles/jetson-inference.dir/util/loadImage.cpp.o
[ 38%] Building CXX object CMakeFiles/jetson-inference.dir/util/commandLine.cpp.o
[ 41%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/gstUtility.cpp.o
[ 43%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/gstCamera.cpp.o
[ 46%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/v4l2Camera.cpp.o
/home/rohit/jetson-inference/util/camera/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus*, GstMessage*, gpointer)’:
/home/rohit/jetson-inference/util/camera/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()";
                 ^
[ 48%] Building CXX object CMakeFiles/jetson-inference.dir/util/display/glDisplay.cpp.o
In file included from /home/rohit/jetson-inference/detectNet.h:27:0,
                 from /home/rohit/jetson-inference/detectNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:90:46: error: ‘vector’ in namespace ‘std’ does not name a template type
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                              ^
/home/rohit/jetson-inference/tensorNet.h:90:52: error: expected ‘,’ or ‘...’ before ‘<’ token
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                                    ^
/home/rohit/jetson-inference/tensorNet.h:132:20: error: ‘vector’ in namespace ‘std’ does not name a template type
         const std::vector<std::string>& outputs,
                    ^
/home/rohit/jetson-inference/tensorNet.h:132:26: error: expected ‘,’ or ‘...’ before ‘<’ token
         const std::vector<std::string>& outputs,
                          ^
In file included from /home/rohit/jetson-inference/detectNet.h:27:0,
                 from /home/rohit/jetson-inference/detectNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:209:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<outputLayer> mOutputs;
       ^
In file included from /home/rohit/jetson-inference/segNet.h:27:0,
                 from /home/rohit/jetson-inference/segNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:90:46: error: ‘vector’ in namespace ‘std’ does not name a template type
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                              ^
/home/rohit/jetson-inference/tensorNet.h:90:52: error: expected ‘,’ or ‘...’ before ‘<’ token
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                                    ^
/home/rohit/jetson-inference/tensorNet.h:132:20: error: ‘vector’ in namespace ‘std’ does not name a template type
         const std::vector<std::string>& outputs,
                    ^
/home/rohit/jetson-inference/tensorNet.h:132:26: error: expected ‘,’ or ‘...’ before ‘<’ token
         const std::vector<std::string>& outputs,
                          ^
In file included from /home/rohit/jetson-inference/detectNet.h:27:0,
                 from /home/rohit/jetson-inference/detectNet.cpp:23:
/home/rohit/jetson-inference/detectNet.h: In member function ‘uint32_t detectNet::GetMaxBoundingBoxes() const’:
/home/rohit/jetson-inference/detectNet.h:157:63: error: ‘mOutputs’ was not declared in this scope
  inline uint32_t GetMaxBoundingBoxes() const  { return DIMS_W(mOutputs[1].dims) * DIMS_H(mOutputs[1].dims) * DIMS_C(mOutputs[1].dims); }
                                                               ^
/home/rohit/jetson-inference/tensorNet.h:38:19: note: in definition of macro ‘DIMS_W’
 #define DIMS_W(x) x.d[2]
                   ^
In file included from /home/rohit/jetson-inference/tensorNet.cpp:23:0:
/home/rohit/jetson-inference/tensorNet.h:90:46: error: ‘vector’ in namespace ‘std’ does not name a template type
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                              ^
/home/rohit/jetson-inference/detectNet.h: In member function ‘uint32_t detectNet::GetNumClasses() const’:
/home/rohit/jetson-inference/detectNet.h:162:58: error: ‘mOutputs’ was not declared in this scope
  inline uint32_t GetNumClasses() const   { return DIMS_C(mOutputs[0].dims); }
                                                          ^
/home/rohit/jetson-inference/tensorNet.h:36:19: note: in definition of macro ‘DIMS_C’
 #define DIMS_C(x) x.d[0]
                   ^
/home/rohit/jetson-inference/tensorNet.h:90:52: error: expected ‘,’ or ‘...’ before ‘<’ token
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                                    ^
In file included from /home/rohit/jetson-inference/segNet.h:27:0,
                 from /home/rohit/jetson-inference/segNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:209:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<outputLayer> mOutputs;
       ^
/home/rohit/jetson-inference/tensorNet.h:132:20: error: ‘vector’ in namespace ‘std’ does not name a template type
         const std::vector<std::string>& outputs,
                    ^
/home/rohit/jetson-inference/tensorNet.h:132:26: error: expected ‘,’ or ‘...’ before ‘<’ token
         const std::vector<std::string>& outputs,
                          ^
In file included from /home/rohit/jetson-inference/segNet.cpp:23:0:
/home/rohit/jetson-inference/segNet.h:158:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<std::string> mClassLabels;
       ^
In file included from /home/rohit/jetson-inference/tensorNet.cpp:23:0:
/home/rohit/jetson-inference/tensorNet.h:209:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<outputLayer> mOutputs;
       ^
In file included from /home/rohit/jetson-inference/segNet.h:27:0,
                 from /home/rohit/jetson-inference/segNet.cpp:23:
/home/rohit/jetson-inference/segNet.h: In member function ‘uint32_t segNet::GetNumClasses() const’:
/home/rohit/jetson-inference/segNet.h:119:61: error: ‘mOutputs’ was not declared in this scope
  inline uint32_t GetNumClasses() const      { return DIMS_C(mOutputs[0].dims); }
                                                             ^
/home/rohit/jetson-inference/tensorNet.h:36:19: note: in definition of macro ‘DIMS_C’
 #define DIMS_C(x) x.d[0]
                   ^
In file included from /home/rohit/jetson-inference/segNet.cpp:23:0:
/home/rohit/jetson-inference/segNet.h: In member function ‘const char* segNet::GetClassLabel(uint32_t) const’:
/home/rohit/jetson-inference/segNet.h:124:66: error: ‘mClassLabels’ was not declared in this scope
  inline const char* GetClassLabel( uint32_t id ) const  { return mClassLabels[id].c_str(); }
                                                                  ^
In file included from /home/rohit/jetson-inference/imageNet.h:27:0,
                 from /home/rohit/jetson-inference/imageNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:90:46: error: ‘vector’ in namespace ‘std’ does not name a template type
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                              ^
/home/rohit/jetson-inference/tensorNet.h:90:52: error: expected ‘,’ or ‘...’ before ‘<’ token
           const char* input_blob, const std::vector<std::string>& output_blobs,
                                                    ^
/home/rohit/jetson-inference/tensorNet.h:132:20: error: ‘vector’ in namespace ‘std’ does not name a template type
         const std::vector<std::string>& outputs,
                    ^
/home/rohit/jetson-inference/tensorNet.h:132:26: error: expected ‘,’ or ‘...’ before ‘<’ token
         const std::vector<std::string>& outputs,
                          ^
In file included from /home/rohit/jetson-inference/imageNet.h:27:0,
                 from /home/rohit/jetson-inference/imageNet.cpp:23:
/home/rohit/jetson-inference/tensorNet.h:209:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<outputLayer> mOutputs;
       ^
In file included from /home/rohit/jetson-inference/imageNet.cpp:23:0:
/home/rohit/jetson-inference/imageNet.h:135:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<std::string> mClassSynset; // 1000 class ID's (ie n01580077, n04325704)
       ^
/home/rohit/jetson-inference/imageNet.h:136:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<std::string> mClassDesc;
       ^
In file included from /home/rohit/jetson-inference/imageNet.cpp:23:0:
/home/rohit/jetson-inference/imageNet.h: In member function ‘const char* imageNet::GetClassDesc(uint32_t) const’:
/home/rohit/jetson-inference/imageNet.h:108:68: error: ‘mClassDesc’ was not declared in this scope
  inline const char* GetClassDesc( uint32_t index ) const  { return mClassDesc[index].c_str(); }
                                                                    ^
/home/rohit/jetson-inference/imageNet.h: In member function ‘const char* imageNet::GetClassSynset(uint32_t) const’:
/home/rohit/jetson-inference/imageNet.h:113:70: error: ‘mClassSynset’ was not declared in this scope
  inline const char* GetClassSynset( uint32_t index ) const  { return mClassSynset[index].c_str(); }
                                                                      ^
/home/rohit/jetson-inference/detectNet.cpp: In static member function ‘static detectNet* detectNet::Create(const char*, const char*, float, float, const char*, const char*, const char*, uint32_t)’:
/home/rohit/jetson-inference/detectNet.cpp:76:2: error: ‘vector’ is not a member of ‘std’
  std::vector<std::string> output_blobs;
  ^
/home/rohit/jetson-inference/detectNet.cpp:76:25: error: expected primary-expression before ‘>’ token
  std::vector<std::string> output_blobs;
                         ^
/home/rohit/jetson-inference/detectNet.cpp:76:27: error: ‘output_blobs’ was not declared in this scope
  std::vector<std::string> output_blobs;
                           ^
/home/rohit/jetson-inference/detectNet.cpp: In static member function ‘static detectNet* detectNet::Create(const char*, const char*, const char*, float, const char*, const char*, const char*, uint32_t)’:
/home/rohit/jetson-inference/detectNet.cpp:116:2: error: ‘vector’ is not a member of ‘std’
  std::vector<std::string> output_blobs;
  ^
/home/rohit/jetson-inference/detectNet.cpp:116:25: error: expected primary-expression before ‘>’ token
  std::vector<std::string> output_blobs;
                         ^
/home/rohit/jetson-inference/detectNet.cpp:116:27: error: ‘output_blobs’ was not declared in this scope
  std::vector<std::string> output_blobs;
                           ^
/home/rohit/jetson-inference/segNet.cpp: In static member function ‘static segNet* segNet::Create(const char*, const char*, const char*, const char*, const char*, const char*, uint32_t)’:
/home/rohit/jetson-inference/segNet.cpp:158:2: error: ‘vector’ is not a member of ‘std’
  std::vector<std::string> output_blobs;
  ^
/home/rohit/jetson-inference/segNet.cpp:158:25: error: expected primary-expression before ‘>’ token
  std::vector<std::string> output_blobs;
                         ^
/home/rohit/jetson-inference/segNet.cpp:158:27: error: ‘output_blobs’ was not declared in this scope
  std::vector<std::string> output_blobs;
                           ^
/home/rohit/jetson-inference/detectNet.cpp: At global scope:
/home/rohit/jetson-inference/detectNet.cpp:285:29: error: variable or field ‘mergeRect’ declared void
 static void mergeRect( std::vector<float6>& rects, const float6& rect )
                             ^
/home/rohit/jetson-inference/detectNet.cpp:285:24: error: ‘vector’ is not a member of ‘std’
 static void mergeRect( std::vector<float6>& rects, const float6& rect )
                        ^
/home/rohit/jetson-inference/detectNet.cpp:285:42: error: expected primary-expression before ‘>’ token
 static void mergeRect( std::vector<float6>& rects, const float6& rect )
                                          ^
/home/rohit/jetson-inference/detectNet.cpp:285:45: error: ‘rects’ was not declared in this scope
 static void mergeRect( std::vector<float6>& rects, const float6& rect )
                                             ^
/home/rohit/jetson-inference/detectNet.cpp:285:52: error: expected primary-expression before ‘const’
 static void mergeRect( std::vector<float6>& rects, const float6& rect )
                                                    ^
In file included from /home/rohit/jetson-inference/segNet.h:27:0,
                 from /home/rohit/jetson-inference/segNet.cpp:23:
/home/rohit/jetson-inference/segNet.cpp:182:30: error: ‘class segNet’ has no member named ‘mOutputs’
  const int s_w = DIMS_W(net->mOutputs[0].dims);
                              ^
/home/rohit/jetson-inference/tensorNet.h:38:19: note: in definition of macro ‘DIMS_W’
 #define DIMS_W(x) x.d[2]
                   ^
/home/rohit/jetson-inference/segNet.cpp:183:30: error: ‘class segNet’ has no member named ‘mOutputs’
  const int s_h = DIMS_H(net->mOutputs[0].dims);
                              ^
/home/rohit/jetson-inference/tensorNet.h:37:19: note: in definition of macro ‘DIMS_H’
 #define DIMS_H(x) x.d[1]
                   ^
/home/rohit/jetson-inference/segNet.cpp:184:30: error: ‘class segNet’ has no member named ‘mOutputs’
  const int s_c = DIMS_C(net->mOutputs[0].dims);
                              ^
/home/rohit/jetson-inference/tensorNet.h:36:19: note: in definition of macro ‘DIMS_C’
 #define DIMS_C(x) x.d[0]
                   ^
/home/rohit/jetson-inference/segNet.cpp: In member function ‘bool segNet::loadClassLabels(const char*)’:
/home/rohit/jetson-inference/segNet.cpp:273:50: error: ‘mClassLabels’ was not declared in this scope
    printf("segNet -- class %02zu  label '%s'\n", mClassLabels.size(), str);
                                                  ^
/home/rohit/jetson-inference/segNet.cpp:280:48: error: ‘mClassLabels’ was not declared in this scope
  printf("segNet -- loaded %zu class labels\n", mClassLabels.size());
                                                ^
/home/rohit/jetson-inference/segNet.cpp: In member function ‘int segNet::FindClassID(const char*)’:
/home/rohit/jetson-inference/segNet.cpp:323:29: error: ‘mClassLabels’ was not declared in this scope
  const uint32_t numLabels = mClassLabels.size();
                             ^
/home/rohit/jetson-inference/segNet.cpp: In member function ‘bool segNet::Overlay(float*, float*, uint32_t, uint32_t, const char*)’:
/home/rohit/jetson-inference/segNet.cpp:360:43: error: ‘mOutputs’ was not declared in this scope
  void* inferenceBuffers[] = { mInputCUDA, mOutputs[0].CUDA };
                                           ^
In file included from /home/rohit/jetson-inference/imageNet.h:27:0,
                 from /home/rohit/jetson-inference/imageNet.cpp:23:
/home/rohit/jetson-inference/imageNet.cpp: In member function ‘bool imageNet::init(const char*, const char*, const char*, const char*, const char*, const char*, uint32_t)’:
/home/rohit/jetson-inference/imageNet.cpp:146:26: error: ‘mOutputs’ was not declared in this scope
  mOutputClasses = DIMS_C(mOutputs[0].dims);
                          ^
/home/rohit/jetson-inference/tensorNet.h:36:19: note: in definition of macro ‘DIMS_C’
 #define DIMS_C(x) x.d[0]
                   ^
/home/rohit/jetson-inference/imageNet.cpp:148:36: error: ‘mClassSynset’ was not declared in this scope
  if( !loadClassInfo(class_path) || mClassSynset.size() != mOutputClasses || mClassDesc.size() != mOutputClasses )
                                    ^
/home/rohit/jetson-inference/imageNet.cpp:148:77: error: ‘mClassDesc’ was not declared in this scope
  if( !loadClassInfo(class_path) || mClassSynset.size() != mOutputClasses || mClassDesc.size() != mOutputClasses )
                                                                             ^
/home/rohit/jetson-inference/imageNet.cpp: In member function ‘bool imageNet::loadClassInfo(const char*)’:
/home/rohit/jetson-inference/imageNet.cpp:249:4: error: ‘mClassSynset’ was not declared in this scope
    mClassSynset.push_back(a);
    ^
/home/rohit/jetson-inference/imageNet.cpp:250:4: error: ‘mClassDesc’ was not declared in this scope
    mClassDesc.push_back(b);
    ^
/home/rohit/jetson-inference/imageNet.cpp:263:4: error: ‘mClassSynset’ was not declared in this scope
    mClassSynset.push_back(a);
    ^
/home/rohit/jetson-inference/imageNet.cpp:264:4: error: ‘mClassDesc’ was not declared in this scope
    mClassDesc.push_back(str);
    ^
/home/rohit/jetson-inference/imageNet.cpp:270:56: error: ‘mClassSynset’ was not declared in this scope
  printf("imageNet -- loaded %zu class info entries\n", mClassSynset.size());
                                                        ^
/home/rohit/jetson-inference/imageNet.cpp: In member function ‘int imageNet::Classify(float*, uint32_t, uint32_t, float*)’:
/home/rohit/jetson-inference/imageNet.cpp:304:43: error: ‘mOutputs’ was not declared in this scope
  void* inferenceBuffers[] = { mInputCUDA, mOutputs[0].CUDA };
                                           ^
/home/rohit/jetson-inference/imageNet.cpp:321:49: error: ‘mClassDesc’ was not declared in this scope
    printf("class %04zu - %f  (%s)\n", n, value, mClassDesc[n].c_str());
                                                 ^
CMakeFiles/jetson-inference.dir/build.make:1433: recipe for target 'CMakeFiles/jetson-inference.dir/detectNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/detectNet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/jetson-inference.dir/build.make:1481: recipe for target 'CMakeFiles/jetson-inference.dir/segNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/segNet.cpp.o] Error 1
/home/rohit/jetson-inference/tensorNet.cpp:108:26: error: ‘vector’ in namespace ‘std’ does not name a template type
               const std::vector<std::string>& outputs,   // network outputs
                          ^
/home/rohit/jetson-inference/tensorNet.cpp:108:32: error: expected ‘,’ or ‘...’ before ‘<’ token
               const std::vector<std::string>& outputs,   // network outputs
                                ^
/home/rohit/jetson-inference/tensorNet.cpp: In member function ‘bool tensorNet::ProfileModel(const string&, const string&, int)’:
/home/rohit/jetson-inference/tensorNet.cpp:141:29: error: ‘outputs’ was not declared in this scope
  const size_t num_outputs = outputs.size();
                             ^
/home/rohit/jetson-inference/tensorNet.cpp:158:27: error: ‘maxBatchSize’ was not declared in this scope
  builder->setMaxBatchSize(maxBatchSize);
                           ^
/home/rohit/jetson-inference/tensorNet.cpp:190:2: error: ‘gieModelStream’ was not declared in this scope
  gieModelStream.write((const char*)serMem->data(), serMem->size());
  ^
/home/rohit/jetson-inference/tensorNet.cpp: In member function ‘bool tensorNet::LoadNetwork(const char*, const char*, const char*, const char*, const char*, uint32_t)’:
/home/rohit/jetson-inference/tensorNet.cpp:205:2: error: ‘vector’ is not a member of ‘std’
  std::vector<std::string> outputs;
  ^
/home/rohit/jetson-inference/tensorNet.cpp:205:25: error: expected primary-expression before ‘>’ token
  std::vector<std::string> outputs;
                         ^
/home/rohit/jetson-inference/tensorNet.cpp:205:27: error: ‘outputs’ was not declared in this scope
  std::vector<std::string> outputs;
                           ^
/home/rohit/jetson-inference/tensorNet.cpp: At global scope:
/home/rohit/jetson-inference/tensorNet.cpp:214:44: error: ‘vector’ in namespace ‘std’ does not name a template type
         const char* input_blob, const std::vector<std::string>& output_blobs, 
                                            ^
/home/rohit/jetson-inference/tensorNet.cpp:214:50: error: expected ‘,’ or ‘...’ before ‘<’ token
         const char* input_blob, const std::vector<std::string>& output_blobs, 
                                                  ^
/home/rohit/jetson-inference/tensorNet.cpp: In member function ‘bool tensorNet::LoadNetwork(const char*, const char*, const char*, const char*, int)’:
/home/rohit/jetson-inference/tensorNet.cpp:220:115: error: ‘NV_GIE_VERSION’ was not declared in this scope
 ild %u\n", NV_TENSORRT_MAJOR, NV_TENSORRT_MINOR, NV_TENSORRT_PATCH, NV_GIE_VERS
                                                                     ^
/home/rohit/jetson-inference/tensorNet.cpp:229:55: error: ‘maxBatchSize’ was not declared in this scope
  sprintf(cache_path, "%s.%u.tensorcache", model_path, maxBatchSize);
                                                       ^
/home/rohit/jetson-inference/tensorNet.cpp:238:48: error: ‘output_blobs’ was not declared in this scope
   if( !ProfileModel(prototxt_path, model_path, output_blobs, maxBatchSize, gieM
                                                ^
/home/rohit/jetson-inference/tensorNet.cpp:371:25: error: ‘output_blobs’ was not declared in this scope
  const int numOutputs = output_blobs.size();
                         ^
/home/rohit/jetson-inference/tensorNet.cpp:413:3: error: ‘mOutputs’ was not declared in this scope
   mOutputs.push_back(l);
   ^
CMakeFiles/jetson-inference.dir/build.make:1457: recipe for target 'CMakeFiles/jetson-inference.dir/imageNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/imageNet.cpp.o] Error 1
CMakeFiles/jetson-inference.dir/build.make:1409: recipe for target 'CMakeFiles/jetson-inference.dir/tensorNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/tensorNet.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/jetson-inference.dir/all' failed
make[1]: *** [CMakeFiles/jetson-inference.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@bpinaya
Copy link
Author

bpinaya commented Jul 27, 2018

@trohit920 it should work with @abdo-abaco tips, at the end I got it compiling on a 16.04 with a fresh install. Also I think that to better get a grasp on TensorRT it's a good idea to check their dev-guide

@bpinaya bpinaya closed this as completed Jul 27, 2018
@trohit920
Copy link

trohit920 commented Jul 30, 2018

Thanks for your reply but its not working for me..! I have CUDA 9 and GTX1080 installed on host side with ububtu 16.04.

@bpinaya
Copy link
Author

bpinaya commented Jul 30, 2018

Did you use c++11 to compile your code? As per the suggestions above? Some of the errors you have to fix yourself, just check the output, for example:

In file included from /home/rohit/jetson-inference/tensorNet.cpp:23:0:
/home/rohit/jetson-inference/tensorNet.h:209:7: error: ‘vector’ in namespace ‘std’ does not name a template type
  std::vector<outputLayer> mOutputs;

For that check this link. You just have to include the vector library as:

#include <vector>

Or your first error:

[ 46%] Building CXX object CMakeFiles/jetson-inference.dir/util/camera/v4l2Camera.cpp.o
/home/rohit/jetson-inference/util/camera/gstUtility.cpp: In function ‘gboolean gst_message_print(GstBus*, GstMessage*, gpointer)’:
/home/rohit/jetson-inference/util/camera/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()";

That one is regarding a conversion from a string to a gchar, you can find more here but basically, you'd have to do use .c_str() to properly pass it to gchar.
Do check out @abdo-abaco repo here I've seen it through and it seems that has some fixes to get it to compile on host.

I remember I was struggling with getting it to compile on host but it depends on what you want to do with it, I just wanted to learn more about tensorRt and ended up using their dev-guide and build my own examples. If you want to use object detection with tensorrt then it might be worth while to get it to compile on host, but if you just want to learn more about tensorRT then I recommend you just use the code here, the dev-guide and go from there.

Good luck!

@bpinaya
Copy link
Author

bpinaya commented Aug 6, 2018

@trohit920 I just cloned the repo again and built it on host, it seems its easier to build now, I'll post some notes so that you can build it yourself.
Before, this is my nvcc --version (shouldn't matter that much):

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Wed_Apr_11_23:16:29_CDT_2018
Cuda compilation tools, release 9.2, V9.2.88

My cmake --version:

cmake version 3.5.1

And my gcc --version:

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

To build on host I had to make the following extra installs:

  • Gstreamer: To get video input the repo uses gstreamer, check out the install steps here or just run
    sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools
  • Glib2-0: Install from launchpad

Afterward you should cmake and make and you'll have some issues with those two libraries not being found. if you check this section of the CMakeLists.txt it says:

# build C/C++ interface
include_directories(${PROJECT_INCLUDE_DIR} ${GIE_PATH}/include)
include_directories(/usr/include/gstreamer-1.0 /usr/lib/aarch64-linux-gnu/gstreamer-1.0/include /usr/include/glib-2.0 /usr/include/libxml2 /usr/lib/aarch64-linux-gnu/glib-2.0/include/)

file(GLOB inferenceSources *.cpp *.cu util/*.cpp util/camera/*.cpp util/cuda/*.cu util/display/*.cpp)
file(GLOB inferenceIncludes *.h util/*.h util/camera/*.h util/cuda/*.h util/display/*.h)

cuda_add_library(jetson-inference SHARED ${inferenceSources})
target_link_libraries(jetson-inference nvcaffe_parser nvinfer Qt4::QtGui GL GLEW gstreamer-1.0 gstapp-1.0)		# gstreamer-0.10 gstbase-0.10 gstapp-0.10 

So you see it's looking for glib and gstreamer in the /usr/lib/aarch64-linux-gnu/folder, since you are on host that probably means you are on x86_64, so change that aarch64-linux-gnu for x86_64-linux-gnu on both of those places.
After that it build normally, I'm attaching a screenshot to prove it hehe

image

If you have further problems building it let me know, hopefully this helps other folks trying to build on host. Which is useful if you don't have a jetson on hand and want to try TensorRT out.

@bpinaya
Copy link
Author

bpinaya commented Aug 6, 2018

And I have a 1080Ti, and CUDA 9.2 but it shouldn't matter at all.
EDIT: It seems the model does matter for the CUDA architecture side (if you have the wrong one it'll build but not run), check:

set(
	CUDA_NVCC_FLAGS
	${CUDA_NVCC_FLAGS}; 
    -O3 
	-gencode arch=compute_53,code=sm_53
	-gencode arch=compute_62,code=sm_62
)

Add the architecture corresponding to your device.

@bpinaya
Copy link
Author

bpinaya commented Aug 6, 2018

Just to add to this, I changed my arch and compute to 61 instead of 61 (Since I have the 1080Ti), rebuilt and works perfectly.
Two images showing inference on host, the first one on the peds-001.jpg image:
peds-001-out

And this second one on an image from the Cityscapes dataset (since they use it for training):
aachen-out

@Yao1up
Copy link

Yao1up commented Sep 26, 2020

I successfully ran the command of $cmake ../ in /build file folder, and the result of this step shows "Build files have been written to: /home/dc2-user/jetson-inference/build", but when I run $make, it told me that the function 'gst_structure_get_list' was not declared.
compile error:
[ 12%] Building CXX object utils/CMakeFiles/jetson-utils.dir/URI.cpp.o
[ 13%] Building CXX object utils/CMakeFiles/jetson-utils.dir/XML.cpp.o
[ 14%] Building CXX object utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o
/home/dc2-user/jetson-inference/utils/camera/gstCamera.cpp: In member function ‘bool gstCamera::parseCaps(GstStructure*, videoOptions::Codec*, imageFormat*, uint32_t*, uint32_t*, float*)’:
/home/dc2-user/jetson-inference/utils/camera/gstCamera.cpp:259:63: error: ‘gst_structure_get_list’ was not declared in this scope
if( gst_structure_get_list(caps, "framerate", &frameRateList) && frameRateList->n_values > 0 )
^
utils/CMakeFiles/jetson-utils.dir/build.make:200: recipe for target 'utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o' failed
make[2]: *** [utils/CMakeFiles/jetson-utils.dir/camera/gstCamera.cpp.o] Error 1
CMakeFiles/Makefile2:750: recipe for target 'utils/CMakeFiles/jetson-utils.dir/all' failed
make[1]: *** [utils/CMakeFiles/jetson-utils.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

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

8 participants