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

[OGRE-265] build dir layout issues

[reporter="corristo", created="Sun, 15 Sep 2013 16:04:02 +0200"]

I'm building Ogre using following cmake call:

#!/bin/sh
cmake \
-D CMAKE_C_COMPILER=/usr/bin/clang \
-D CMAKE_CXX_COMPILER=/usr/bin/clang++ \
-D CMAKE_OSX_ARCHITECTURES="x86_64" \
-D OGRE_BUILD_SAMPLES=FALSE \
-D OGRE_BUILD_TOOLS=FALSE \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr/local/Cellar/Ogre/1.9.0-unstable \
..

Build dir is located inside source dir.

As you can see from screenshot I got two distinct Ogre.framework copies. But one has headers that other doesn't. It gets even worse after doing "make install", only one instance of Ogre.framework got copied to install prefix.

Also, why there's "macosx" intermediate folder in $build/lib? It can confuse some cmake scripts that assume that libs must be right under lib. It's especially important when installing Ogre in /usr/local (i.e. system-wide) for example. /usr/local/lib/macosx/Release just isn't right path for libraries =\

I'm using revision 4ddd8edfc4f25b72b674f520bbcc1358f54b8c6d

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

  • 写回答

5条回答 默认 最新

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

    [author="corristo", created="Sun, 15 Sep 2013 17:15:21 +0200"]

    Official Ogre 1.9RC1 SDK build has the same issue: Ogre.framework hasn't "Threading" and "OSX" header subfolders.

    评论

报告相同问题?