compile ogre1.7 to mogre1.7 with dotnet2.0

andyhebear1

23-01-2013 02:44:10

i do step under the office

Step by step instructions to build Mogre/Ogre 1.7.1 with Visual Studio:
=======================================================================

- Clone Mogre: "hg clone http://bitbucket.org/mogre/mogre -u Mogre17 Mogre".
- Clone Ogre 1.7: "hg clone http://bitbucket.org/sinbad/ogre -u 58266f25ccd2 Mogre\Main\OgreSrc\ogre".
- Apply "Mogre\Main\Ogre Patches\58266f25ccd2.patch" to "Mogre\Main\OgreSrc\ogre".



but on path ogre1.74 there has error:

% hg import --no-commit --repository F:\Mogre\1.7.4\Main\OgreSrc\ogre -p0 --verbose -- F:\Mogre\1.7.4\Main\Ogre Patches\58266f25ccd2.patch
applying F:\Mogre\1.7.4\Main\Ogre Patches\58266f25ccd2.patch
patching file OgreMain/include/OgreAnimable.h
applied to working directory
patching file OgreMain/include/OgreAnimation.h
applied to working directory
patching file OgreMain/include/OgreAnimationState.h
applied to working directory
patching file OgreMain/include/OgreAnimationTrack.h
applied to working directory
patching file OgreMain/include/OgreArchive.h
applied to working directory
patching file OgreMain/include/OgreBillboard.h
applied to working directory
patching file OgreMain/include/OgreBillboardChain.h
applied to working directory
patching file OgreMain/include/OgreBillboardParticleRenderer.h
applied to working directory
patching file OgreMain/include/OgreBillboardSet.h
Hunk #2 succeeded at 860 (offset 6 lines).
applied to working directory
patching file OgreMain/include/OgreBone.h
applied to working directory
patching file OgreMain/include/OgreBorderPanelOverlayElement.h
applied to working directory
patching file OgreMain/include/OgreCamera.h
applied to working directory
patching file OgreMain/include/OgreCodec.h
Hunk #4 FAILED at 66
1 out of 4 hunks FAILED -- saving rejects to file OgreMain/include/OgreCodec.h.rej
中止: patch failed to apply
[命令返回代码255 Wed Jan 23 10:43:05 2013]


andyboy has ideas?

andyhebear1

23-01-2013 03:07:38

and i to compile ogre1.7.4

use1:hg clone http://bitbucket.org/mogre/mogre
put the ogre source repository clone here.
Use2: hg clone http://bitbucket.org/sinbad/ogre/ -u v1-7
For example, if you installed Mogre under C:\Mogre, you will have a
path with the ogre main sources under:
C:\Mogre\Main\OgreSrc\ogre\OgreMain

Let CMake point to the subdirectory build here, e.g. if you installed
Mogre as C:\Mogre, use this as CMake output build path:
C:\Mogre\Main\OgreSrc\build

and Apply "Mogre\Main\Ogre Patches\
mogre-1.7.3-cygon.patch or mogre-1.7.3-clrobject.patch
the same has error


Caprico

23-01-2013 19:57:01

Unfortunately all instructions for manually building Mogre linked in the wiki and the repository are currently outdated. I planned to write a new guide but haven't found the time yet. I'll try to do it in the next few days. Maybe you want to try out the MogreBuilder in the meantime. This is the easiest and the most actively maintained way to build Mogre.

Also I don't know if it is possible to build Mogre for dotnet2.0 anymore. I only work with .net Framework 4.0.

mstoyke

23-01-2013 23:01:30

It should be possible if you use Mogre Builder to build the .NET 4 assemblies first and then go to the project settings in Visual Studio and switch the projects from .NET4 to .NET2. You will probably also have to tweak some references to external libraries and assemblies, basically everything that Mogre depends on should first be built for the .NET2 target (not necessary for the native libs, they are not depending on the .NET framework, only on the Visual Studio C/C++ runtime libraries. If I remember correctly, I never had to change much when I was building the .NET2 and .NET4 releases.

andyhebear1

24-01-2013 08:50:58

thanks ! i will try do it with mogrebuilder