Cannot build Ogre tutorial framework

Started by
1 comment, last by zer0wolf 13 years, 3 months ago
I cannot build the INSTALL goal in the Tutorial framework project (Using MS Visual Studio 2010 on windows 7). I have done the following:


1) Downloaded and extracted the prebuild OGRE 1.7.2 SDK for Visual C++ .Net 2010 (32-bit):
http://www.ogre3d.org/download/sdk


2) Add an environment variable OGRE_HOME pointing to the above sdk.


3) Downloaded and added the CMakeLists.txt to the Tutorial Framework - (Windows Line-endings):
http://www.ogre3d.org/tikiwiki/Building+Your+Projects+With+CMake


4) Downloaded and build (both for debug and release) the Dependencies for VS:
http://www.ogre3d.org/tikiwiki/Prerequisites#Dependencies

Copied the folder "Dependencies" to the src folder in the Tutorial project.



4) Downloaded and installed directX sdk:
http://www.ogre3d.org/tikiwiki/Prerequisites#DirectX_SDK



5) build the project with CMake, opened the file: OgreApp.sln and build the ALL_BUILD target which completed with success. But when I try to build the INSTALL target I get:



1>------ Build started: Project: INSTALL, Configuration: Debug Win32 ------
1>Build started 24-12-2010 16:20:53.
1>InitializeBuildStatus:
1> Touching "Win32\Debug\INSTALL\INSTALL.unsuccessfulbuild".
1>PostBuildEvent:
1> CMake Error at cmake_install.cmake:35 (FILE):
1> file INSTALL cannot find "C:/local/TutorialFramework/dist/Media".
1>
1>
1> -- Install configuration: "Debug"
1> The system cannot find the batch label specified - VCReportError
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if errorlevel 1 goto VCReportError
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.15
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========




I guess this is the problem:

file INSTALL cannot find "C:/local/TutorialFramework/dist/Media".

that does not exist on my system. The correct path is:

C:\local\TutorialFramework\build\debug\dist\media

which exists.



EDIT:

The following :

if(WIN32)
set(CMAKE_MODULE_PATH "$ENV{OGRE_HOME}/CMake/;${CMAKE_MODULE_PATH}")
set(OGRE_SAMPLES_INCLUDEPATH
$ENV{OGRE_HOME}/Samples/include
)
endif(WIN32)

is not correct. The include folder under Samples is located in:

OgreSDK_vc10_v1-7-2\Samples\Common\include

have anyone had success building the project with the CMakeLists.txt file located at:

http://www.ogre3d.org/tikiwiki/Building+Your+Projects+With+CMake

?

[Edited by - mlt on December 24, 2010 9:36:54 AM]
Advertisement
Anyone? Or is time better spend on:

http://irrlicht.sourceforge.net/

??
You posted on Christmas Eve night; of course you haven't gotten much attention. I can't help you with your build problems (not a programmer), but the Ogre forums would be more useful than the irrlicht ones for Ogre problems. Give it some time and I'm sure a helpful programmer will come along here though.

On second thought, why don't you just put the media folder where the make file is looking for it?
laziness is the foundation of efficiency | www.AdrianWalker.info | Adventures in Game Production | @zer0wolf - Twitter

This topic is closed to new replies.

Advertisement