openpose icon indicating copy to clipboard operation
openpose copied to clipboard

CMake Errors

Open ZahraAnam opened this issue 4 years ago • 13 comments

I am very new to using Deep Learning models and trying to run OpenPose on Ubuntu 20.04 with CUDA 10.1 and CuDNN 7.6.5. When I attempt to build my file after Configuring and Generation the following error appears:

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: CUDA_cublas_LIBRARY (ADVANCED) linked by target "caffe" in directory /home/anam/Codes/OpenPose/openpose/3rdparty/caffe/src/caffe

-- Configuring incomplete, errors occurred! See also "/home/anam/Codes/OpenPose/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeOutput.log". See also "/home/anam/Codes/OpenPose/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeError.log". make[2]: *** [CMakeFiles/openpose_lib.dir/build.make:107: caffe/src/openpose_lib-stamp/openpose_lib-configure] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/openpose_lib.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

Overall the log is as follows:

[ 12%] Performing configure step for 'openpose_lib' CMake Warning (dev) at cmake/Misc.cmake:32 (set): implicitly converting 'BOOLEAN' to 'STRING' type. Call Stack (most recent call first): CMakeLists.txt:25 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Found PROTOBUF Compiler: /usr/bin/protoc -- HDF5: Using hdf5 compiler wrapper to determine C configuration -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration -- CUDA detected: 10.1 -- Found cuDNN: ver. 7.6.5 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so) -- Automatic GPU detection failed. Building for all known architectures. -- Added CUDA NVCC flags for: sm_35 sm_37 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 sm_86 -- Found Atlas (include: /usr/include/x86_64-linux-gnu library: /usr/lib/x86_64-linux-gnu/libatlas.so lapack: /usr/lib/x86_64-linux-gnu/liblapack.so -- Python interface is disabled or not all required dependencies found. Building without it...

-- ******************* Caffe Configuration Summary ******************* -- General: -- Version : 1.0.0 -- Git : 1.0-149-g1807aada -- System : Linux -- C++ compiler : /usr/bin/c++ -- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -std=c++11 -Wno-sign-compare -Wno-uninitialized -- Debug CXX flags : -g -fPIC -Wall -std=c++11 -Wno-sign-compare -Wno-uninitialized -- Build type : Release

-- BUILD_SHARED_LIBS : ON -- BUILD_python : OFF -- BUILD_matlab : OFF -- BUILD_docs : OFF -- CPU_ONLY : OFF -- USE_OPENCV : OFF -- USE_LEVELDB : OFF -- USE_LMDB : OFF -- USE_NCCL : OFF -- ALLOW_LMDB_NOLOCK : OFF -- USE_HDF5 : ON

-- Dependencies: -- BLAS : Yes (Atlas) -- Boost : Yes (ver. 1.71) -- glog : Yes -- gflags : Yes -- protobuf : Yes (ver. 3.6.1) -- CUDA : Yes (ver. 10.1)

-- NVIDIA CUDA: -- Target GPU(s) : Auto -- GPU arch(s) : sm_35 sm_37 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 sm_86 -- cuDNN : Yes (ver. 7.6.5)

-- Install: -- Install path : /home/anam/Codes/OpenPose/openpose/build/caffe

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: CUDA_cublas_LIBRARY (ADVANCED) linked by target "caffe" in directory /home/anam/Codes/OpenPose/openpose/3rdparty/caffe/src/caffe

-- Configuring incomplete, errors occurred! See also "/home/anam/Codes/OpenPose/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeOutput.log". See also "/home/anam/Codes/OpenPose/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeError.log". make[2]: *** [CMakeFiles/openpose_lib.dir/build.make:107: caffe/src/openpose_lib-stamp/openpose_lib-configure] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/openpose_lib.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

My problem probably is naive and simple but will be really grateful if someone can help me through it. Or if there is any Gitter community to help beginners that you can suggest me.

ZahraAnam avatar Feb 13 '21 17:02 ZahraAnam

Have you resolved the issue, I have got the same.

mallikagarg avatar Mar 11 '21 13:03 mallikagarg

Yes! By reinstalling the cmake and correct version of CUDA-Toolkit.

ZahraAnam avatar Mar 11 '21 13:03 ZahraAnam

I have reinstalled cuda-11.1 and cudnn-8.0.4 on ubuntu 20.04 , but still facing the same issue.

mallikagarg avatar Mar 12 '21 07:03 mallikagarg

Did you deactivate conda??

On Fri., Mar. 12, 2021, 8:00 a.m. mallikagarg @.***> wrote:

I have reinstalled cuda-11.1 and cudnn-8.0.4 on ubuntu 20.04 , but still facing the same issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1873#issuecomment-797281359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIJTCUH2P4DCNLOFKQEWSTTDG3ZRANCNFSM4XSKVDJQ .

ZahraAnam avatar Mar 12 '21 07:03 ZahraAnam

i have not installed anaconda on my system

mallikagarg avatar Mar 12 '21 08:03 mallikagarg

Hmm! We can connect and check what and where is the problem. For me it worked after setting Cuda

ZahraAnam avatar Mar 12 '21 09:03 ZahraAnam

i have the same question

xinzi2018 avatar Apr 20 '21 11:04 xinzi2018

Are versions of cuda, opencv etc same as suggested Sent from my Huawei phone-------- Original message --------From: xinzi @.>Date: Tue., Apr. 20, 2021, 1:09 p.m.To: CMU-Perceptual-Computing-Lab/openpose @.>Cc: ZahraAnam @.>, Author @.>Subject: Re: [CMU-Perceptual-Computing-Lab/openpose] CMake Errors (#1873) i have the same question

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

ZahraAnam avatar Apr 20 '21 11:04 ZahraAnam

Hmm! We can connect and check what and where is the problem. For me it worked after setting Cuda

@ZahraAnam how do you set your Cuda? This is my setting, still failed. my Cuda version is 10.2, Cudnn is 8.1 image

ccl-private avatar Apr 23 '21 03:04 ccl-private

I noticed something, after cmake .. the output log shows cuda10.2 is detected by openpose. but for caffe, it uses cuda11? image

ccl-private avatar Apr 23 '21 04:04 ccl-private

I have it in a different way. I assign path in bashrc

On Fri., Apr. 23, 2021, 5:15 a.m. ccl @.***> wrote:

Hmm! We can connect and check what and where is the problem. For me it worked after setting Cuda

@ZahraAnam https://github.com/ZahraAnam how do you set your Cuda? This is my setting, still failed. my Cuda version is 10.2, Cudnn is 8.1 [image: image] https://user-images.githubusercontent.com/36214675/115813018-ffa95f00-a424-11eb-8d7e-53a54fae70f3.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1873#issuecomment-825356383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIJTCXG4K5ZROA7M62V5XLTKDQ5RANCNFSM4XSKVDJQ .

ZahraAnam avatar Apr 23 '21 06:04 ZahraAnam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 07:01 stale[bot]