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

Doesnt build on Jetson nano! #9

Open
SaddamBInSyed opened this issue Jan 29, 2020 · 0 comments
Open

Doesnt build on Jetson nano! #9

SaddamBInSyed opened this issue Jan 29, 2020 · 0 comments

Comments

@SaddamBInSyed
Copy link

I tried to build on jetson nano but no luck.
below is the error I got while execute 'make' cmd

`make
[ 3%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_generated_cudaYUV.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
[ 7%] 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
[ 10%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
[ 14%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
[ 17%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
/home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaOverlay.cu(29): warning: variable "thick" was declared but never referenced

/home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaOverlay.cu(8): warning: function "eq_less" was declared but never referenced

:0:7: warning: ISO C++11 requires whitespace after the macro name
[ 21%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_generated_cudaRGB-NV12.cu.o
:0:7: warning: ISO C++11 requires whitespace after the macro name
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaRGB-NV12.cu:5:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
:0:7: warning: ISO C++11 requires whitespace after the macro name
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaRGB-NV12.cu:5:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
:0:7: warning: ISO C++11 requires whitespace after the macro name
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaRGB-NV12.cu:5:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
:0:7: warning: ISO C++11 requires whitespace after the macro name
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/cuda/cudaRGB-NV12.cu:5:0:
/usr/local/cuda/include/math_functions.h:54:2: warning: #warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead."
^~~~~~~
[ 25%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
[ 28%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
[ 32%] Building NVCC (Device) object CMakeFiles/jetson-inference.dir/cuda/jetson-inference_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
Scanning dependencies of target jetson-inference
[ 35%] Building CXX object CMakeFiles/jetson-inference.dir/detectNet.cpp.o
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h:9:0,
from /home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:5:
/home/svnano/machinelearning/abaco_jetson-inference-gv/tensorNet.h:43:43: error: ‘vector’ in namespace ‘std’ does not name a template type
const char* input_blob, const std::vectorstd::string& output_blobs);
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/tensorNet.h:43:49: error: expected ‘,’ or ‘...’ before ‘<’ token
const char* input_blob, const std::vectorstd::string& output_blobs);
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/tensorNet.h:68:20: error: ‘vector’ in namespace ‘std’ does not name a template type
const std::vectorstd::string& outputs,
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/tensorNet.h:68:26: error: expected ‘,’ or ‘...’ before ‘<’ token
const std::vectorstd::string& outputs,
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/tensorNet.h:117:7: error: ‘vector’ in namespace ‘std’ does not name a template type
std::vector mOutputs;
^~~~~~
In file included from /home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:5:0:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h: In member function ‘uint32_t detectNet::GetMaxBoundingBoxes() const’:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h:88:56: error: ‘mOutputs’ was not declared in this scope
inline uint32_t GetMaxBoundingBoxes() const { return mOutputs[1].dims.w * mOutputs[1].dims.h * mOutputs[1].dims.c; }
^~~~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h:88:56: note: suggested alternative: ‘puts’
inline uint32_t GetMaxBoundingBoxes() const { return mOutputs[1].dims.w * mOutputs[1].dims.h * mOutputs[1].dims.c; }
^~~~~~~~
puts
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h: In member function ‘uint32_t detectNet::GetNumClasses() const’:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h:93:51: error: ‘mOutputs’ was not declared in this scope
inline uint32_t GetNumClasses() const { return mOutputs[0].dims.c; }
^~~~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.h:93:51: note: suggested alternative: ‘puts’
inline uint32_t GetNumClasses() const { return mOutputs[0].dims.c; }
^~~~~~~~
puts
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp: In static member function ‘static detectNet* detectNet::Create(const char*, const char*, const char*, float, const char*, const char*, const char*)’:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:67:7: error: ‘vector’ is not a member of ‘std’
std::vectorstd::string output_blobs;
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:67:25: error: expected primary-expression before ‘>’ token
std::vectorstd::string output_blobs;
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:67:27: error: ‘output_blobs’ was not declared in this scope
std::vectorstd::string output_blobs;
^~~~~~~~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:67:27: note: suggested alternative: ‘input_blob’
std::vectorstd::string output_blobs;
^~~~~~~~~~~~
input_blob
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp: At global scope:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:29: error: variable or field ‘mergeRect’ declared void
static void mergeRect( std::vector& rects, const float6& rect )
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:29: error: ‘vector’ is not a member of ‘std’
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:42: error: expected primary-expression before ‘>’ token
static void mergeRect( std::vector& rects, const float6& rect )
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:45: error: ‘rects’ was not declared in this scope
static void mergeRect( std::vector& rects, const float6& rect )
^~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:45: note: suggested alternative: ‘gets’
static void mergeRect( std::vector& rects, const float6& rect )
^~~~~
gets
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:122:52: error: expected primary-expression before ‘const’
static void mergeRect( std::vector& rects, const float6& rect )
^~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp: In member function ‘bool detectNet::Detect(float*, uint32_t, uint32_t, float*, int*, float*)’:
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:172:43: error: ‘mOutputs’ was not declared in this scope
void* inferenceBuffers[] = { mInputCUDA, mOutputs[OUTPUT_CVG].CUDA, mOutputs[OUTPUT_BBOX].CUDA };
^~~~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:172:43: note: suggested alternative: ‘puts’
void* inferenceBuffers[] = { mInputCUDA, mOutputs[OUTPUT_CVG].CUDA, mOutputs[OUTPUT_BBOX].CUDA };
^~~~~~~~
puts
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:190:49: error: ‘class nvinfer1::Dims3’ has no member named ‘w’
const float cell_width = /width/ mInputDims.w / ow;
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:191:50: error: ‘class nvinfer1::Dims3’ has no member named ‘h’
const float cell_height = /height/ mInputDims.h / oh;
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:193:56: error: ‘class nvinfer1::Dims3’ has no member named ‘w’
const float scale_x = float(width) / float(mInputDims.w);
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:194:57: error: ‘class nvinfer1::Dims3’ has no member named ‘h’
const float scale_y = float(height) / float(mInputDims.h);
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:7: error: ‘vector’ is not a member of ‘std’
std::vector< std::vector > rects;
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:20: error: ‘vector’ is not a member of ‘std’
std::vector< std::vector > rects;
^~~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:33: error: expected primary-expression before ‘>’ token
std::vector< std::vector > rects;
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:35: error: expected primary-expression before ‘>’ token
std::vector< std::vector > rects;
^
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:37: error: ‘rects’ was not declared in this scope
std::vector< std::vector > rects;
^~~~~
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:203:37: note: suggested alternative: ‘gets’
std::vector< std::vector > rects;
^~~~~
gets
/home/svnano/machinelearning/abaco_jetson-inference-gv/detectNet.cpp:230:6: error: ‘mergeRect’ was not declared in this scope
mergeRect( rects[z], make_float6(x1, y1, x2, y2, coverage, z) );
^~~~~~~~~
CMakeFiles/jetson-inference.dir/build.make:125: recipe for target 'CMakeFiles/jetson-inference.dir/detectNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/detectNet.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/jetson-inference.dir/all' failed
make[1]: *** [CMakeFiles/jetson-inference.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

`

if anyone got successful build then let others know

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

1 participant