No rule to make target libOgreMain.so when building ign-rendering under Debian 10 [closed]

asked 2020-02-07 21:34:58 -0500

adamwtow gravatar image

I'm attempting to get Ignition Citadel built under Debian 10 and feel I'm pretty close. I'm getting the following make error while building ign-rendering:

make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libOgreMain.so', needed by 'lib/libignition-rendering3-ogre.so.3.0.0'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:2642: ogre/src/CMakeFiles/ignition-rendering3-ogre.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

My CMake output for ign-rendering is:

ignition/build/ignition-rendering3$ cmake ../../src/ign-rendering/
-- ignition-rendering3 version 3.0.0
-- Operating system is Linux
-- Found CPack generators: DEB
-- Looking for ignition-math6 -- found version 6.4.0
-- Searching for dependencies of ignition-math6
-- Looking for ignition-math6 - found

-- Looking for ignition-common3 -- found version 3.3.0
-- Searching for dependencies of ignition-common3
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- Checking for module 'uuid'
--   Found uuid, version 2.33.1
-- Searching for <ignition-common3> component [graphics]
-- Looking for ignition-common3-graphics -- found version 3.3.0
-- Searching for dependencies of ignition-common3-graphics
-- Looking for ignition-math6 -- found version 6.4.0
-- Searching for <ignition-common3> component [events]
-- Looking for ignition-common3-events -- found version 3.3.0
-- Searching for dependencies of ignition-common3-events
-- Looking for ignition-math6 -- found version 6.4.0
-- Looking for ignition-common3 - found

-- Looking for ignition-plugin1 -- found version 1.1.0
-- Searching for dependencies of ignition-plugin1
-- Searching for <ignition-plugin1> component [all]
-- Looking for all libraries of ignition-plugin1 -- found version 1.1.0
-- Looking for ignition-plugin1 -- found version 1.1.0
-- Looking for ignition-plugin1-loader -- found version 1.1.0
-- Searching for dependencies of ignition-plugin1-loader
-- Looking for ignition-plugin1-register -- found version 1.1.0
-- Searching for dependencies of ignition-plugin1-register
-- Looking for ignition-plugin1 - found

-- Looking for FreeImage - found

CMake Warning (dev) at /usr/share/cmake-3.13/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  /home/code/ignition/install/ignition-cmake2/share/cmake/ignition-cmake2/cmake2/IgnUtils.cmake:188 (find_package)
  CMakeLists.txt:52 (ign_find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for OpenGL - found

-- Checking for module 'OGRE-RTShaderSystem >= 1.8'
--   Found OGRE-RTShaderSystem , version 1.9.0
-- Checking for module 'OGRE-Terrain >= 1.8'
--   Found OGRE-Terrain , version 1.9.0
-- Checking for module 'OGRE-Overlay >= 1.8'
--   Found OGRE-Overlay , version 1.9.0
-- Looking for IgnOGRE - found

-- Boost version: 1.67.0
-- Looking for IgnOGRE2 - found

CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) 
-- optix library not found.  Please locate before proceeding.
-- OptiX headers (optix.h and friends) not found.  Please locate before proceeding.
-- optix Prime library not found.  Please locate before proceeding.
-- Could ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by adamwtow
close date 2020-02-10 23:37:43.335156

Comments

Seems like it can not locate /usr/lib/x86_64-linux-gnu/libOgreMain.so. Is it in your filesystem? Should be part of libogre-1.9-dev package https://packages.debian.org/buster/am....

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2020-02-08 13:58:02 -0500 )edit

Ahh thank you. I incorrectly presumed my output of ls -la above meant that libOgreMain.so.1.9.0 was on my system. It wasn't. All sorted now. Thanks again.

adamwtow gravatar imageadamwtow ( 2020-02-10 23:31:18 -0500 )edit