You are not logged in.

#1 2015-07-30 11:59:11

tyrolite
Member
Registered: 2015-07-30
Posts: 1

Unable to configure the OGRE clean project with distro package

Hello,

I'm trying to build the clean_ogre_cmake_project_1-9.zip using the OGRE libraries found in the archlinux repo (ogre 1.9.0-10). My build fails at configure step because cmake can't find the ogre module "FindOGRE.cmake". After I install the arch ogre package, that module can be found at '/usr/lib/OGRE/cmake/FindOGRE.cmake' and this path is appended in the project configuration script, so it should work ...

this is the cmake output:

$ cmake ..
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line

    /mnt/data/test/clean_ogre_cmake_project/CMakeLists.txt:29 (if)

  closes on the line

    /mnt/data/test/clean_ogre_cmake_project/CMakeLists.txt:41 (endif)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:54 (find_package):
  By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OGRE", but
  CMake did not find one.

  Could not find a package configuration file provided by "OGRE" with any of
  the following names:

    OGREConfig.cmake
    ogre-config.cmake

  Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
  "OGRE_DIR" to a directory containing one of the above files.  If "OGRE"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/mnt/data/test/clean_ogre_cmake_project/build/CMakeFiles/CMakeOutput.log".

The ogre clean project can be found here: http://www.ogre3d.org/tikiwiki/tiki-ind … With+CMake
and I have cmake 3.2.3-1 installed.

PS: I managed to use OGRE in the past but those were local builds not distro provided packages

Thanks in advance !

Offline

#2 2015-07-30 20:51:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,840

Re: Unable to configure the OGRE clean project with distro package

ogre wiki wrote:

   
This CMake script assumes the following:

    Windows: the environment variable OGRE_HOME is set to point to the root directory of your Ogre SDK.
    Linux: Ogre is installed in the standard path: /usr/local.
    You're using the 1.7.2 SDK. In 1.7.2 the OIS.dll was renamed to libOIS.dll. As of 1.7.2 it is also necessary to copy the boost dll's into the bin directory because they're no longer statically linked. You can remove that part of the script (at the bottom) if you're using 1.7.1 (but it shouldn't do any harm if you leave it).

emphasis added by me.

You'll probably have to adjust the script to work with all the different paths used by arch official ogre package.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB