Issues with building OGRE from src

Description

Original reporter: FrameFever

1. When I build OGRE statically as DEBUG build(with PDB installed), I get an error while using the INSTALL target.

Up-to-date: D:/Projekte/Builds/Ogre/Ogre-1.7.3-STATIC/sdk/lib/Debug/opt/samples/Sample_BezierPatch_d.lib
1>CMake Error at Samples/BezierPatch/cmake_install.cmake:56 (FILE):
1> file INSTALL cannot find
1> "D:/Projekte/Builds/Ogre/Ogre-1.7.3-STATIC/bin/Debug/Sample_BezierPatch_d.pdb".
1>Call Stack (most recent call first):
1> Samples/cmake_install.cmake:48 (INCLUDE)
1> cmake_install.cmake:140 (INCLUDE)
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."

The pdb is really located in:

D:\Projekte\Builds\Ogre\Ogre-1.7.3-STATIC\lib\Debug\sample_bezierpatch_d.pdb

2. I get an warning that FREETYPE was not found, when using OGRE to find the static build, why?

3. I got a problem with the variable "OGRE_LIBRARIES" it contain in the static build the string "notfound".
which will fail my build.

I searched in the FindOGRE.cmake and found the problem is related to the variable :"OGRE_LIBRARY_FWK"

This if statement looks strange to me:

Code: Select all

if(NOT OGRE_BUILD_PLATFORM_IPHONE)

  1. try to find framework on OSX
    findpkg_framework(OGRE)
    else()
    set(OGRE_LIBRARY_FWK "")
    endif()

I think the cases should be switched, because when set(OGRE_LIBRARY_FWK "") will be called I got no problem anymore.

I got in the cmake shell also : "OGRE_BUILD_PLATFORM_IPHONE"

4.
It seems to be that the finding of OGRE is not cached, I get this messages every time I hit "cmake ."

Looking for OGRE...
OGRE_BUILD_PLATFORM_IPHONE
Found Ogre Cthugha (1.7.3)
Found OGRE: optimized;D:/Projekte/Builds/Ogre/Ogre-1.7.3-STATIC/sdk/lib/release/OgreMainStatic.lib;debug;D:/Projekte/Builds/Ogre/Ogre-1.7.3-STATIC/sdk/lib/debug/OgreMainStatic_d.lib
DX lib dir: D:/Programmierung/Frameworks/Microsoft DirectX SDK (June 2010)/Lib/x86
DX lib dir: D:/Programmierung/Frameworks/Microsoft DirectX SDK (June 2010)/Lib/x86
Looking for FREETYPE...
CMAKE_PREFIX_PATH:
Could not locate FREETYPE
Could not find all required dependencies for the Ogre package.

I want it like the Qt finding routine from CMake, silent, when its found onetime.

5. I don't like it that so many variables are now shown in the cmake-gui when I configure my project, which use the FindOGRE.cmake
Can I disable this? I don't like this pollution of variables.

6. The currently available prebuild sdk contains the old 1.7.2 OGRE, where is 1.7.3??
The mingw installer uses an dos-shell to extract immediately the sdk without a chance to choosing a dir.

http://www.ogre3d.org/forums/viewtopic.php?f=2&t=64999

Original Mantis Ticket: http://www.ogre3d.org/mantis/view.php?id=451

Environment

None

Assignee

Murat Sari

Reporter

Philip Allgaier

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure