ycm-cmake-modules icon indicating copy to clipboard operation
ycm-cmake-modules copied to clipboard

Use case: build already downloaded superbuild without network connection

Open traversaro opened this issue 10 years ago • 2 comments

Probably related to https://github.com/robotology/ycm/issues/58 , but I open the issue to state the user case clearly.

If the user has an already downloaded superbuild repository, and wants to compile it off-line, the make or make subproject commands fail with the following error:

-- YCM not found. Bootstrapping it.
-- Downloading YCMEPHelper.cmake
-- Downloading YCMEPHelper.cmake - ERROR 6: "Couldn't resolve host name"
CMake Error at cmake/YCMBootstrap.cmake:87 (ycm_bootstrap):
  Unknown CMake command "ycm_bootstrap".
Call Stack (most recent call first):
  CMakeLists.txt:27 (include)

A typical example of this use case is if someone is programming while commuting on a train.

A workaround that I found is to call make and make install in all the build directories of the modifed subprojects. Another workaround is to use a installed YCM instead of a bootstrapped one.

traversaro avatar Jun 27 '14 19:06 traversaro

About installing YCM, you have to be careful of installing it again each time it gets updated. If using YCM inside a superbuild, it means that each time you do an update of the whole superbuild 'someone' should check if the YCM has changed and install it again.

barbalberto avatar Oct 22 '15 15:10 barbalberto

Related to the issue you are experiencing today @gabrielenava .

traversaro avatar Aug 16 '17 13:08 traversaro