Should I have both OGRE and OGRE2 installed?

Issue #43 resolved
Pei JIA
created an issue

Hi, I successfully had OGRE2 installed, but while I tried to build ign-rendering, I got the following ERROR message:

-- BUILD WARNINGS
-- Cannot build component [ogre] - Missing: IgnOGRE (Components: RTShaderSystem, Terrain, Overlay)
-- Cannot build component [optix] - Missing: OptiX
-- END BUILD WARNINGS

And then, I tried to install OGRE. I had OGRE successfully built, but failed to install with the following ERROR message:

Selecting previously unselected package ogre.
(Reading database ... 677630 files and directories currently installed.)
Preparing to unpack .../build/ogre_1.11.5-6_amd64.deb ...
Unpacking ogre (1.11.5-6) ...
dpkg: error processing archive 
 ....../orge/build/ogre_1.11.5-6_amd64.deb (--install):
 trying to overwrite '/usr/local/include/OGRE/MeshLodGenerator/OgreLod0Stripifier.h', which is also in package ogre2 2.1.0-6
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 ....../orge/build/ogre_1.11.5-6_amd64.deb

So, my questions are: 1. Do I need to install both OGRE2 and OGRE? 2. Is it possible to enable ALL components, including RTShaderSystem, Terrain, Overlay from OGRE2 ONLY?

Cheers

Comments (6)

  1. Ian Chen

    Are you using the default branch? Could you try the gz11 branch?

    I have not tested ign-rendering with ogre 1.11 before so it could be that we need to tweak the FindIgnOGRE.cmake module in ign-cmake to find ogre 1.11 components properly.

    Note that you don't need both ogre 1.x and ogre 2.x installed. Only one of them is sufficient. After installing ign-rendering with ogre2, you can test it by building and running ogre2_demo

  2. Pei JIA reporter

    Thank you Ian Chen. 1). If I use ogre2.x, I found I couldn't build through ALL components. As you can see, some of the components are AUTOMATICALLY disabled. However, if I had ALL components enabled, there will be so many ERROR messages.

    OGRE_BUILD_COMPONENT_HLMS_PBS    ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_HLMS_PBS_   ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_HLMS_UNLI   ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_HLMS_UNLI   ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_MESHLODGE   ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_OVERLAY     ON                                                                                                                                                                         
     OGRE_BUILD_COMPONENT_PAGING      OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_PLANAR_RE   OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_PROPERTY    OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_RTSHADERS   OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_SCENE_FOR   OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_TERRAIN     OFF                                                                                                                                                                        
     OGRE_BUILD_COMPONENT_VOLUME      OFF                                                                                                                                                                        
     OGRE_BUILD_PLATFORM_NACL         OFF   
    

    2). If I keep the components as default, I can have Ogre2 successfully built and installed. However, when I tried to build ign-rendering (gz11), I'll obtain the following WARNING:

    -- BUILD WARNINGS
    -- Cannot build component [ogre] - Missing: IgnOGRE (Components: RTShaderSystem, Terrain, Overlay)
    -- Cannot build component [optix] - Missing: OptiX
    -- END BUILD WARNINGS
    

    3). If I continue building ign-gui, I obtained the following ERROR message:

    -- BUILD ERRORS: These must be resolved before compiling.
     -- Missing: ignition-rendering1 (Components: ogre)
     -- END BUILD ERRORS
    
     CMake Error at /usr/local/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:66 (message):
       Errors encountered in build.  Please see BUILD ERRORS above.
     Call Stack (most recent call first):
       CMakeLists.txt:124 (ign_configure_build)
    

    However, in fact:

    ➜  pkgconfig ll ignition-rendering1*
    -rw-r--r-- 1 root root 384 Jan 31 05:24 ignition-rendering1-ogre2.pc
    -rw-r--r-- 1 root root 384 Jan 31 05:24 ignition-rendering1.pc
    ➜  pkgconfig pwd
    /usr/local/lib/pkgconfig
    ➜  pkgconfig 
    

    How did you successfully build ign-gui (gz11) without ogre, but ONLY with ogre2 ?

  3. Ian Chen

    1) The default ogre2 components listed look fine. Components such as rtshaders are not available in ogre2 and terrain, and paging are not yet supported in ogre2.

    2) The warning are ok and safe to ignore if you only want ogre2

    3) ign-gui is using ign-rendering-ogre by default because ign-rendering-ogre2 was still under development. We may make the switch soon to use ogre2 after more testing. For now, you could modify this line to search for ogre2 instead of ogre

    After making the change in 3), ign-gui should hopefully build for you

  4. Log in to comment