benz725 edited a comment on issue #19731: URL: https://github.com/apache/incubator-mxnet/issues/19731#issuecomment-757444787
> > but in this project, the onnx-tensorrt/third_party/onnx/ directory is empty, so I download the onnx from "https://github.com/onnx/onnx/tree/553df22c67bee5f0fe6599cff60f1afc6748c635" and put it to the onnx-tensorrt/third_party/onnx/ dir. > > You need to run `git submodule update --init --recursive` inside the mxnet folder. Do not manually copy around folders > > > Then I follow the onnx-tensorrt official tutorial, do the compile: > > You need to follow the steps mentioned by @Kh4L from the mxnet folder after running `git submodule update --init --recursive`. No need to download any other repositories manually. > > > And the popd, pushd, should I have to do that like the .sh file did? > > It's better to follow the instructions exactly if you are not clear about their meaning. If you know what they do, you can also use `cd` instead > > > I'm not very good at do compiling and define args, so thanks for your answering!! > > Just start with a new `git clone https://github.com/apache/incubator-mxnet/`, run the `git submodule --init --recursive` and follow the instruction precisely step by step. when I have done what you have told me, i download the mxnet source code again and do the git submodule update --init --recursive, I followed the .sh file as listed before, when it run to the "cmake -DONNX_NAMESPACE=$ONNX_NAMESPACE .." line , it reported error : ``` NAMESPACE=$ONNX_NAMESPACE .. Generated: /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/build/third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto Generated: /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/build/third_party/onnx/onnx/onnx-operators_onnx2trt_onnx-ml.proto -- -- ******** Summary ******** -- CMake version : 3.18.4 -- CMake command : /home/yfzx/.local/lib/python3.7/site-packages/cmake/data/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 7.5.0 -- CXX flags : -I/home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/third_party/onnx/build -Wall -Wno-deprecated-declarations -Wno-unused-function -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : ONNX_NAMESPACE=onnx2trt_onnx -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : /usr/local -- CMAKE_MODULE_PATH : -- -- ONNX version : 1.6.0 -- ONNX NAMESPACE : onnx2trt_onnx -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- ONNXIFI_ENABLE_EXT : OFF -- -- Protobuf compiler : /usr/bin/protoc -- Protobuf includes : /usr/include -- Protobuf libraries : /usr/lib/x86_64-linux-gnu/libprotobuf.so;-lpthread -- BUILD_ONNX_PYTHON : OFF -- Found TensorRT headers at TENSORRT_INCLUDE_DIR-NOTFOUND -- Find TensorRT libs at TENSORRT_LIBRARY_INFER-NOTFOUND;TENSORRT_LIBRARY_INFER_PLUGIN-NOTFOUND;TENSORRT_LIBRARY_MYELIN-NOTFOUND -- Could NOT find TENSORRT (missing: TENSORRT_INCLUDE_DIR TENSORRT_LIBRARY) ERRORCannot find TensorRT library. -- Configuring done 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 files: /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt/TENSORRT_INCLUDE_DIR used as include directory in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt used as include directory in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt TENSORRT_LIBRARY_INFER linked by target "nvonnxparser" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt linked by target "nvonnxparser_static" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt TENSORRT_LIBRARY_INFER_PLUGIN linked by target "nvonnxparser" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt linked by target "nvonnxparser_static" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt TENSORRT_LIBRARY_MYELIN linked by target "nvonnxparser" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt linked by target "nvonnxparser_static" in directory /home/yfzx/mxnet-src/incubator-mxnet/3rdparty/onnx-tensorrt -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ``` cannot find Tensorrt Library, where can i find it? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
