weixin_39595487 2020-11-30 03:02
浏览 0

[OGRE-281] find_package(OGRE) fails (OS X, OGRE_STATIC=OFF)

[reporter="cadabra", created="Fri, 27 Sep 2013 06:05:21 +0200"]

OS X, OGRE_STATIC=OFF, working copy at 5087:06a4f5ef9bfd. find_package(OGRE) fails.

cmake_minimum_required(VERSION 2.8.11.2 FATAL_ERROR)
project(testapp)
find_package(OGRE)

I attached two CMake logs from the same test project: one normal and one verbose. They include generating and building tinyxml, OGRE, and the test app. The latter fails in generation because it can't find the OGRE that was just built.

Not sure what's going wrong in FindOGRE. It managed to find:

>>>> Ogre_FRAMEWORK_INCLUDES "/installs/ext/ogre/lib/macosx/Release/Ogre.framework/Headers;/installs/ext/ogre/lib/macosx/Release/Ogre.framework/PrivateHeaders;/installs/ext/ogre/lib/macosx/Release/Ogre.framework/Headers;/installs/ext/ogre/lib/macosx/Release/Ogre.framework/PrivateHeaders"

but it failed to set the framework path such that FindPkgMacros could find it in the end.

该提问来源于开源项目:OGRECave/ogre

  • 写回答

7条回答 默认 最新

  • weixin_39595487 2020-11-30 03:02
    关注

    [author="masterfalcon", created="Mon, 30 Sep 2013 05:28:40 +0200"]

    Could you highlight what the error is in the logs? There's a ton of info in there but I'm not sure what I'm looking for in them. I'm not clear on if all variables are not being set, just some are not being set or if find_package reports that it cannot find Ogre.

    评论

报告相同问题?