Closed pmankyu closed 2 years ago
@pmankyu set the nvcc path to your environment variables
@enazoe I have already setting in bashrc
export PATH=/usr/local/cuda-11.4/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH export CUDA_HOME=/usr/local/cuda-11.4
I also meet this bug.
Here is the way how i sloved it.
Add extra additional instructions behind your cmake order like below:
sudo cmake .. -DCMAKE_CUDA_COMPILER:PATH=/usr/local/cuda-10.2/bin/nvcc
(Remember to change your own CUDA path)
That could appoint compiler of cudacxx.
After that, you can compile successfully
@Wilson-shuo Thank you!
cmake problem is solved, but the following error occurs when "make"
It seemed that you are compiling this repo on a x86/x64 plantform, not on Jetson series. I could not understand the Korean words behind the "Fatal Error". I guess that means the cmake could not find nvinfer.h? This file belong to TensorRT sdk. So Please make sure you have installed "Tensor RT SDK" correctly on your computer.
@Wilson-shuo
thank you
and my system is ubuntu 18.04, cuda 11.3, opencv 4.2.0, tensorrt 8.0.1, cudnn 8.2.1
As you said, I installed Tensorrt and when I "make" it fails with the error below.
What's the problem?
@pmankyu checkout the branch to TRT8
@enazoe Thank you! When I checked out and "make", the following error occurred I also installed tensorRT normally, but I don't know what the problem is.
@enazoe I update latest cmake 3.21.1 and when I do 'cmake' at TRT8 branch
A warning message appears
@enazoe I solve the problem fatal error NvInfer.h
change include path
thank you all
A problem occurred during build
The build msg is:
`pmk@pmk-ubuntu:~/yolo-tensorrt/build$ cmake .. -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The CUDA compiler identification is unknown -- Check for working CUDA compiler: /usr/bin/nvcc -- Check for working CUDA compiler: /usr/bin/nvcc -- broken CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCUDACompiler.cmake:46 (message): The CUDA compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (enable_language)
-- Configuring incomplete, errors occurred! `![스크린샷, 2021-08-05 14-52-23](https://user-images.githubusercontent.com/6636556/128298364-015cfbac-c762-486e-a163-70222a8c7931.png)