openpose icon indicating copy to clipboard operation
openpose copied to clipboard

ubuntu18.04,cpu, 执行make `nproc`后:cmake error:

Open houshuaishuai opened this issue 4 years ago • 2 comments

CMake Error at CMakeLists.txt:39 (include): include could not find requested file:

cmake/Utils.cmake

-- GCC detected, adding compile flags -- GCC detected, adding compile flags -- Building with CUDA. CMake Error at CMakeLists.txt:425 (include): include could not find requested file:

cmake/Cuda.cmake

CMake Warning at CMakeLists.txt:426 (find_package): By not providing "FindCuDNN.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "CuDNN", but CMake did not find one.

Could not find a package configuration file provided by "CuDNN" with any of the following names:

CuDNNConfig.cmake
cudnn-config.cmake

Add the installation prefix of "CuDNN" to CMAKE_PREFIX_PATH or set "CuDNN_DIR" to a directory containing one of the above files. If "CuDNN" provides a separate development package or SDK, be sure it has been installed.

CMake Warning at CMakeLists.txt:429 (find_package): By not providing "FindGlog.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Glog", but CMake did not find one.

Could not find a package configuration file provided by "Glog" with any of the following names:

GlogConfig.cmake
glog-config.cmake

Add the installation prefix of "Glog" to CMAKE_PREFIX_PATH or set "Glog_DIR" to a directory containing one of the above files. If "Glog" provides a separate development package or SDK, be sure it has been installed.

CMake Error at CMakeLists.txt:526 (message): Glog not found. Install Glog from the command line using the command(s) - sudo apt-get install libgoogle-glog-dev

-- Configuring incomplete, errors occurred! See also "/home/lzh/下载/openpose-1.7 (1).0/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeOutput.log". See also "/home/lzh/下载/openpose-1.7 (1).0/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeError.log". CMakeFiles/openpose_lib.dir/build.make:91: recipe for target 'caffe/src/openpose_lib-stamp/openpose_lib-configure' failed make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-configure] Error 1 CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/openpose_lib.dir/all' failed make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2 Makefile:90: recipe for target 'all' failed make: *** [all] Error 2

Posting rules

  1. No duplicated posts, only 1 new post opened a day, and up to 2 opened a week. Otherwise, extrict user bans will occur.
    • Check the FAQ section, other GitHub issues, and general documentation before posting. E.g., low-speed, out-of-memory, output format, 0-people detected, installation issues, ...).
    • Keep posting all your issues in the same post.
    • No bans if you are unsure whether the post is duplicated!
  2. Fill all the Your System Configuration section if you are facing an error or unexpected behavior. Some posts (e.g., feature requests) might not require it.
  3. No questions about training or 3rd party libraries:
    • OpenPose only implements testing. For training, check OpenPose train.
    • Caffe errors/issues: Check Caffe documentation.
    • CUDA/cuDNN check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, then rebooting, and then re-installing OpenPose. Otherwise, check Nvidia/CUDA/cuDNN forums.
    • OpenCV errors: Install the default/pre-compiled OpenCV or check for OpenCV online help.
  4. Set a proper issue title: Add the OS (Ubuntu, Windows) and be specific (e.g., do not call it: Error).
  5. Only English comments.
  6. Remove these posting rules from your post but follow them! Posts which do not follow these rules will be ignored/deleted and those users banned with no further clarification.

Issue Summary

Executed Command (if any)

Note: add --logging_level 0 --disable_multi_thread to get higher debug information.

OpenPose Output (if any)

Errors (if any)

Type of Issue

Select the topic(s) on your post, delete the rest:

  • Compilation/installation error
  • Execution error
  • Help wanted
  • Question
  • Enhancement / offering possible extensions / pull request / etc
  • Other (type your own type)

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK

  2. OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.2.0)?

  3. General configuration:

    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?
    • Operating system (lsb_release -a in Ubuntu):
    • Operating system version (e.g., Ubuntu 16, Windows 10, ...):
    • Release or Debug mode? (by default: release):
    • Compiler (gcc --version in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no):
    • Any other custom CMake configuration with respect to the default version? (by default: no):
  5. 3rd-party software:

    • Caffe version: Default from OpenPose, custom version, ...?
    • CMake version (cmake --version in Ubuntu):
    • OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases):
    • cuDNN version:
    • GPU model (nvidia-smi in Ubuntu):
  7. If CPU-only mode issue:

    • CPU brand & model:
    • Total RAM memory available:
  8. If Python API:

    • Python version: 2.7, 3.7, ...?
    • Numpy version (python -c "import numpy; print numpy.version.version" in Ubuntu):
  9. If Windows system:

    • Portable demo or compiled library?
  10. If speed performance issue:

houshuaishuai avatar May 19 '21 07:05 houshuaishuai

@houshuaishuai From the error log, you have posted, I could find the following useful information:

Glog not found. Install Glog from the command line using the command(s) -
sudo apt-get install libgoogle-glog-dev

Therefore, please install Glog using the following command:

sudo apt-get install libgoogle-glog-dev

On a side note, I suggest you to format your issue properly. For example, you have ignored Posting rules completely. Please read your issue once and format it accordingly.

ravijo avatar May 20 '21 10:05 ravijo

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]