Why am I facing this weird behavior during compilation using catkin_make?

asked 2021-05-26 04:58:30 -0600

Rika gravatar image

Hello all, hope you are having a great time. I'm currently facing an issue where in order to have a successful build, I first have to remove one of my projects (lets call it main_app) from src/ and build the whole workspace using catikin_make, and then when all other projects are built, add main_app folder and again do a catkin_make and this time all builds fine!
To be more specific, when main_app exists I get this error :

-- +++ processing catkin package: 'main_app'
-- ==> add_subdirectory(main_app)
CMake Deprecation Warning at main_app/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find svo (missing: svo_DIR)
-- Could not find the required component 'svo'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "svo" with any of
  the following names:


  Add the installation prefix of "svo" to CMAKE_PREFIX_PATH or set "svo_DIR"
  to a directory containing one of the above files.  If "svo" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  main_app/CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/user/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/catkin_ws/build/CMakeFiles/CMakeError.log".

Now if I remove my main_app directory from src, everything builds fine(but weirdly! I explain this at the end), and only after this initial step, I can readd the main_app and have a successful build.

Note: What do I mean by builds fine but is weird. I mean, when I remove main_app, and do a catkin_make, I get an error message at 3% or 11% (it seems random), the build fails completely and I get sth like this :

[ 11%] Performing install step for 'glog_src'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
 /bin/mkdir -p '/home/user/catkin_ws/devel/share/doc/glog-0.3.5'
 /bin/mkdir -p '/home/user/catkin_ws/devel/include/glog'
 /bin/mkdir -p '/home/user/catkin_ws/devel/include/glog'
 /bin/mkdir -p '/home/user/catkin_ws/devel/lib/pkgconfig'
 /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog INSTALL NEWS README README.windows doc/designstyle.css doc/glog.html '/home/user/catkin_ws/devel/share/doc/glog-0.3.5'
 /usr/bin/install -c -m 644 src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h '/home/user/catkin_ws/devel/include/glog'
 /usr/bin/install -c -m 644 src/glog/log_severity.h '/home/user/catkin_ws/devel/include/glog'
 /usr/bin/install -c -m 644 libglog.pc '/home ...
edit retag flag offensive close merge delete