Linking mmdeploy to your cpp code #1210
Replies: 4 comments 5 replies
-
@Likhith-Sugganahalli How did you install CUDNN and TensorRT? The first error indicates that CUDNN is not found:
Also, I would suggest that you include the full build output and not just snippets. Can you build the cpp examples included with MMDeploy? |
Beta Was this translation helpful? Give feedback.
-
@tehkillerbee i am able to build the cpp samples included and run them as well without any issue. |
Beta Was this translation helpful? Give feedback.
-
@Likhith-Sugganahalli Please attach the complete (failed) build log when you attempt to build your own CPP application so it is easier to see what goes wrong when the CMake errors occur. It would also be useful to see how you have written your CMakeList file for your own CPP. It should be similar to the file written for the cpp example codes. |
Beta Was this translation helpful? Give feedback.
-
@Likhith-Sugganahalli Its odd that your errors are not consistent. Sometimes its an issue about CUDNN, sometimes its TensorRT. Have you removed your build output directory after each attempt? It looks like you are working on an external mounted drive? Permission issue, perhaps? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i have gone though all the github issues relating to this,
according to this, #280
the op is able to build their project with the cmake that they submitted, but when i do that, the error is
CMake Error at /media/likhith/Data/mmdeploy/mmdeploy/build/install/lib/cmake/MMDeploy/modules/FindCUDNN.cmake:18 (message): Couldn't find cuDNN in CUDNN_DIR: , or in CUDA_TOOLKIT_ROOT_DIR: , please check if the path is correct. Call Stack (most recent call first): /media/likhith/Data/mmdeploy/mmdeploy/build/install/lib/cmake/MMDeploy/MMDeployConfig.cmake:44 (find_package) CMakeLists.txt:27 (find_package)
when i just have
find_package(MMDeploy REQUIRED PATHS /media/likhith/Data/mmdeploy/mmdeploy/build/install/lib/cmake/MMDeploy/)
in my cmake, the error is:
`CMake Error at /media/likhith/Data/mmdeploy/mmdeploy/build/MMDeployConfig.cmake:12 (include):
include could not find requested file:
Call Stack (most recent call first):
CMakeLists.txt:19 (find_package)
CMake Error at /media/likhith/Data/mmdeploy/mmdeploy/build/MMDeployConfig.cmake:43 (find_package):
By not providing "FindTENSORRT.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "TENSORRT",
but CMake did not find one.
Could not find a package configuration file provided by "TENSORRT" with any
of the following names:
Add the installation prefix of "TENSORRT" to CMAKE_PREFIX_PATH or set
"TENSORRT_DIR" to a directory containing one of the above files. If
"TENSORRT" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:19 (find_package)
`
i am not sure how to proceed
Beta Was this translation helpful? Give feedback.
All reactions