openpose icon indicating copy to clipboard operation
openpose copied to clipboard

Ubuntu Cmake-gui error while getting default Caffe

Open svarnypetr opened this issue 8 years ago • 36 comments

Issue Summary

This should not be a Caffe problem per se, but before I install custom Caffe I would like to make sure. I followed all the steps in the install doc up until using the CMake-gui. There I ran into an error while downloading Caffe.

It seems to me CMake-gui does not download Caffe at all. I tried to wipe everything and try to install OpenPose again, but received the same mistake. I also tried to see if cmake follows the ifs in the CMakeLists.txt correctly and reaches the branches where he establishes that Caffe needs to be downloaded and it seems to me it does so.

CMake-gui returns the following error:

Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
Already on 'master'

M	CMakeLists.txt
Your branch is up-to-date with 'origin/master'.

Caffe will be built from source now.
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message):
  No download info given for 'openpose_caffe' and its source directory:

   /home/naoskin/openpose/3rdparty/caffe

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * URL
   * GIT_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
   * SVN_REVISION
   * DOWNLOAD_COMMAND
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
  CMakeLists.txt:392 (ExternalProject_Add)

Executed Command (if any)

CMake-gui according to installation guide.

OpenPose Output (if any)

None.

Type of Issue

You might select multiple topics, delete the rest:

  • Compilation/installation error

Your System Configuration

Operating system (lsb_release -a in Ubuntu):

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

Installation mode: CMake-gui

CUDA version: CUDA Version 8.0.61 cuDNN version: ver. 5.1.10 Release or Debug mode?: release 3-D Reconstruction module added?: no GPU model nvidia-smi 384.111 GeForce GTX 106 Caffe version: Default from OpenPose - or at least trying OpenCV version: pre-compiled `apt-get install libopencv-dev` (only Ubuntu) Compiler (gcc --version in Ubuntu): 5.4.0 20160609

svarnypetr avatar Feb 08 '18 17:02 svarnypetr

If you were using an old OP version and you just updated it, you should simply re-download or re-clone OpenPose again and re-compile it.

We changed Caffe from being inside OP to be a submodule in GitHub (so it's easier to keep the latest Caffe version, but we found this kind of error when updating OpenPose from an old version).

Let me know if re-downloading it from scratch doesn't fix the issue.

gineshidalgo99 avatar Feb 08 '18 17:02 gineshidalgo99

Hello Gines, thank you for the reply. I tried a totally new install - removed OpenPose, followed the installation guide again from the top (i.e. went through the prerequisites also). Surprisingly it worked although my first clone was a clean install made from the master repo I cloned on Feb 8th. The only changes I made now that I am aware of:

  1. cloning the current master repo (should be the same for ubuntu)
  2. letting CMake-gui create the /build subfolder

So thank you for pushing me to restart.

svarnypetr avatar Feb 10 '18 10:02 svarnypetr

Thanks for the feed-back!

gineshidalgo99 avatar Feb 10 '18 16:02 gineshidalgo99

Had the same issue while compiling for the CPU-ONLY version. Same thing fixed it. Did both clones today. So thanks for the feedback! But this cost me quite some time. I used a fresh install of ubuntu-16.04.4-server-amd64.

MasterScrat avatar Mar 31 '18 15:03 MasterScrat

Issue Summary

I am facing the same issue when compiling in CPU-ONLY mode.

Even when I reclone the openpose repo and start installation from scratch, I get the the same error.

CMake-gui returns the following error:

CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message):
  No download info given for 'openpose_caffe' and its source directory:

   /home/ashwin/center_for_robolution/Intelligent retail store Demonstration/Body detection/openpose/3rdparty/caffe

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * URL
   * GIT_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
   * SVN_REVISION
   * DOWNLOAD_COMMAND
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
  CMakeLists.txt:471 (ExternalProject_Add)

Executed Command (if any)

CMake-gui according to installation guide.

OpenPose Output (if any)

No output since it is a cmake error.

Type of Issue

  • Compilation/installation error

Your System Configuration

Operating system: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial

Installation mode: CMake (Ubuntu) CUDA version : CPU_ONLY mode cuDNN version: CPU_ONLY mode CMake version : 3.5.1 Release or Debug mode?: Release 3-D Reconstruction module added?: No GPU model : CPU_ONLY mode Caffe version: Default from OpenPose OpenCV version: pre-compiled apt-get install libopencv-dev Compiler :gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609

ashwinvk94 avatar Apr 03 '18 10:04 ashwinvk94

Re-download OpenPose from scratch. If you try to move from Caffe CPU to Caffe GPU, this kind of errors might happen (as we use different Caffe repos for each one).

gineshidalgo99 avatar Apr 03 '18 15:04 gineshidalgo99

Even when I clone the repository and redo the installation process, I get the same error that I have mentioned above.

I have also tried the same with a fresh installation of Ubuntu 16.04.3 LTS. cmake still shows the same error.

ashwinvk94 avatar Apr 10 '18 06:04 ashwinvk94

Not sure what it could be (I can confirm OpenPose works in a fresh Ubuntu 16). Could you try...

  1. OpenPose in a full path without spaces? I.e. I see /home/ashwin/center_for_robolution/Intelligent retail store Demonstration/Body detection/

What about: /home/ashwin/center_for_robolution/Body_detection/

  1. Updating CMake.

gineshidalgo99 avatar Apr 10 '18 16:04 gineshidalgo99

I fixed this issue by manually clone the caffe repo into the 3rdparty directory:

  1. cd 3rdparty
  2. git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git
  3. Now, run cmake gui to Configure and Generate.

appleweed avatar Apr 18 '18 20:04 appleweed

@appleweed
works for me, bro, thanks!

vssli avatar Apr 25 '18 22:04 vssli

@appleweed Thank you, you saved my day!

verihelp-viktor avatar Jun 07 '18 03:06 verihelp-viktor

I am installing on a Mac and I had this problem. I tried re-cloning the repo and it didn't work. I used the trick @appleweed suggested, which allowed me to make progress.

jbrownkramer avatar Jun 09 '18 17:06 jbrownkramer

Hmm..i am unable to recreate this error. On my Mac (OSX Yosemite), Cmake automatically downloads / clones caffe. Can someone please do a clean clone and cmake run and paste their cmake output here for me?

soulslicer avatar Jun 09 '18 19:06 soulslicer

I re-clone it. and got the same issue. (on Mac). the 3rdparty/caffe folder is empty after the cloning. and I followed @appleweed by cloning caffe manually, and the configuring got done on CMake GUI.

ShuminY avatar Aug 03 '18 01:08 ShuminY

@appleweed Thank bro ^^

linhkakashi avatar Sep 28 '18 15:09 linhkakashi

After cloning master, the 3rdparty/caffe folder stayed empty. For me this fix was to manually trigger the git submodules to update. So the clone step becomes:

git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
cd openpose

git submodule init
git submodle update

Should this be added to the docs?

Thanks @appleweed for pointing me in the right direction.

rubenvandeven avatar Oct 05 '18 07:10 rubenvandeven

@appleweed You saved my life, fam.

MartinFultot avatar Oct 26 '18 22:10 MartinFultot

@rubenvandeven After trying a lot, your message was the only one that pushed me forward :)

jhirsh avatar Mar 20 '19 04:03 jhirsh

@rubenvandeven Thanks! I will add it to the following commit!

gineshidalgo99 avatar Mar 20 '19 12:03 gineshidalgo99

@appleweed You are the best!!! Thank you very much! You saved my day!!! :3

MiaYangheeKim avatar Jun 24 '19 05:06 MiaYangheeKim