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

Cmake Error #15

Closed
cagik opened this issue Jul 24, 2021 · 8 comments
Closed

Cmake Error #15

cagik opened this issue Jul 24, 2021 · 8 comments

Comments

@cagik
Copy link

cagik commented Jul 24, 2021

您好,我在执行 cmake .. 时,产生以下错误

Building tests
-- 

-- BUILD SUMMARY
--   CMAKE_GENERATOR      : Unix Makefiles
--   Compiler ID          : GNU
--   Build type           : Release
--   Build shared libs    : ON
--   Use double for kernel: OFF

--   Build tests          : ON
-- 

-- 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:
NVINFER
    linked by target "pointpillars" in directory /home/cavata/project/OpenPCDet/PointPillars_MultiHead_40FPS/pointpillars
    linked by target "test_model" in directory /home/cavata/project/OpenPCDet/PointPillars_MultiHead_40FPS/test

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

请问您是否有相应的解决方案,十分感谢!

@hova88
Copy link
Owner

hova88 commented Jul 26, 2021

可能没装gtest?我不确定,需要你把问题打的更全一些

@cagik
Copy link
Author

cagik commented Jul 26, 2021

我在安装Google-test后仍然存在cmake error

(openpcdet) cavata@cavata:~/project/OpenPCDet/PointPillars_MutilHead_40FPS/build $ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
Building tests
-- Found Python: /home/cavata/anaconda3/envs/openpcdet/bin/python3.7 (found version "3.7.10") found components: Interpreter 
-- 
-- BUILD SUMMARY
--   CMAKE_GENERATOR      : Unix Makefiles
--   Compiler ID          : GNU
--   Build type           : Release
--   Build shared libs    : ON
--   Use double for kernel: OFF
--   Build tests          : ON
-- 
-- 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:
NVINFER
    linked by target "pointpillars" in directory /media/cavata/cavata/ubuntu_git/OpenPCdet/PointPillars_MultiHead_40FPS/pointpillars
    linked by target "test_model" in directory /media/cavata/cavata/ubuntu_git/OpenPCdet/PointPillars_MultiHead_40FPS/test

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

另外,我之前cmake ..没有出现此问题,但是在make时报错。

之后因为显卡驱动崩溃重装系统后,发现该cmake error

感谢您的帮助

@hova88
Copy link
Owner

hova88 commented Jul 26, 2021

我在安装Google-test后仍然存在cmake error

(openpcdet) cavata@cavata:~/project/OpenPCDet/PointPillars_MutilHead_40FPS/build $ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
Building tests
-- Found Python: /home/cavata/anaconda3/envs/openpcdet/bin/python3.7 (found version "3.7.10") found components: Interpreter 
-- 
-- BUILD SUMMARY
--   CMAKE_GENERATOR      : Unix Makefiles
--   Compiler ID          : GNU
--   Build type           : Release
--   Build shared libs    : ON
--   Use double for kernel: OFF
--   Build tests          : ON
-- 
-- 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:
NVINFER
    linked by target "pointpillars" in directory /media/cavata/cavata/ubuntu_git/OpenPCdet/PointPillars_MultiHead_40FPS/pointpillars
    linked by target "test_model" in directory /media/cavata/cavata/ubuntu_git/OpenPCdet/PointPillars_MultiHead_40FPS/test

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

另外,我之前cmake ..没有出现此问题,但是在make时报错。

之后因为显卡驱动崩溃重装系统后,发现该cmake error

感谢您的帮助

奇怪,你cmake版本,显卡型号,nvcc版本都是多少?

@cagik
Copy link
Author

cagik commented Jul 26, 2021

我的cmake版本是3.21.0
显卡型号为 TITAN X(pascal) 驱动版本为Nvidia-driver-460
nvcc版本号为10.2
cudnn版本为8.0.2

@hova88
Copy link
Owner

hova88 commented Jul 26, 2021

我的cmake版本是3.21.0
显卡型号为 TITAN X(pascal) 驱动版本为Nvidia-driver-460
nvcc版本号为10.2
cudnn版本为8.0.2

虽然我不确定问题在哪,但我觉得问题不大😄。清空一下build目录,确定当下运行的版本和你cmakelist里面找到的NVINFER版本(也就是tensorrt,能找到应该都不会错吧)是否一致,会不会是之前生成的pointpillar动态库没有清理

@cagik
Copy link
Author

cagik commented Jul 26, 2021

好的,我自己再试一试,感谢您的帮助😄

@cagik cagik closed this as completed Nov 3, 2021
@jcuic5
Copy link

jcuic5 commented Nov 15, 2021

我也遇到了该问题,FYI,可以在CMakeList里直接指定tensorrt library的位置:

set(CMAKE_PREFIX_PATH "/home/travis/packages/TensorRT-8.2.0.6/lib")

@hova88
Copy link
Owner

hova88 commented Nov 16, 2021

我也遇到了该问题,FYI,可以在CMakeList里直接指定tensorrt library的位置:

set(CMAKE_PREFIX_PATH "/home/travis/packages/TensorRT-8.2.0.6/lib")

对,安装环境不一致,多少会有些路径包含问题,这个优点耐心,能解决的

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

3 participants