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

compilation error #7

Open
gabgiani opened this issue Mar 4, 2018 · 1 comment
Open

compilation error #7

gabgiani opened this issue Mar 4, 2018 · 1 comment

Comments

@gabgiani
Copy link

gabgiani commented Mar 4, 2018

Hi i'm receiving this error when i'm trying to compile:
/home/nvidia/jetson-inference/tensorNet.h:106:12: error: ‘Dims3’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::Dims3 mInputDims;

@poorboy44
Copy link

I get the same error:

``
[ 35%] Building CXX object CMakeFiles/jetson-inference.dir/imageNet.cpp.o
In file included from /home/nvidia/jetson-inference-gv/imageNet.h:20:0,
from /home/nvidia/jetson-inference-gv/imageNet.cpp:6:
/home/nvidia/jetson-inference-gv/tensorNet.h:106:12: error: ‘Dims3’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::Dims3 mInputDims;
^
/home/nvidia/jetson-inference-gv/tensorNet.h:111:13: error: ‘Dims3’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::Dims3 dims;
^
/home/nvidia/jetson-inference-gv/imageNet.cpp: In member function ‘bool imageNet::init(const char*, const char*, const char*, const char*, const char*, const char*)’:
/home/nvidia/jetson-inference-gv/imageNet.cpp:79:31: error: ‘__gnu_cxx::__alloc_traits<std::allocatortensorNet::outputLayer >::value_type {aka struct tensorNet::outputLayer}’ has no member named ‘dims’
mOutputClasses = mOutputs[0].dims.c;
^
/home/nvidia/jetson-inference-gv/imageNet.cpp: In member function ‘bool imageNet::init(imageNet::NetworkType)’:
/home/nvidia/jetson-inference-gv/imageNet.cpp:159:31: error: ‘__gnu_cxx::__alloc_traits<std::allocatortensorNet::outputLayer >::value_type {aka struct tensorNet::outputLayer}’ has no member named ‘dims’
mOutputClasses = mOutputs[0].dims.c;
^
CMakeFiles/jetson-inference.dir/build.make:125: recipe for target 'CMakeFiles/jetson-inference.dir/imageNet.cpp.o' failed
make[2]: *** [CMakeFiles/jetson-inference.dir/imageNet.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:83: 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

2 participants