Building Mogre in x64

Sigvald

01-03-2012 15:11:17

Hey !

I've a problem with building Mogre in x64. I'm at step of building the dependencies of ogre using Batch Build. I'm working with Visual Studio 2008. When I click on Build in the Batch Build windows nothing happens.

Sigvald

02-03-2012 12:37:16

I had forgotten to install the x64 compiler for Visual Studio 2008 ^^

Sigvald

03-03-2012 14:21:39

I successfully build Mogre in x64 but I can't use it in a project. Everytime I try to launch it, I get a FileNotFoundException with the instruction CreateRoot().

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mogre;
using System.Windows.Forms;

namespace ConsoleApplication1
{
class Program
{
protected static Root mRoot;

static void Main(string[] args)
{
CreateRoot();
}

protected static void CreateRoot()
{
mRoot = new Root();
}

}
}


I don't know what to do :(

Pyritie

06-03-2012 11:22:13

What does the FileNotFoundException say? What file is it missing?

Beauty

19-04-2012 15:40:52

Hi Sigwald,

nice to see you here. :D

Building Mogre is a complex process.
For x86 builds it's easy to use the MogreBuilder.
x64 support should be include later, but we can't tell you when it's done. Currently we concentrate to some other parts of it (e.g. enable/disable Ogre options, find a way to modify the automatically created VS files, update depencies, etc.)
If you like, you can look to the MogreBuilder source and possibly add x64 support.

Did you create Mogre by the VS solution presets of the Cygon builds?
There is also an instruction file for his slightly custom way of building Mogre.
By the preperation of user Cygon it should be relatively easy to create x64 builds.
Or you just use the precompiled x64 files of the Cygon builds.

I get a FileNotFoundException
Are you shure you have all created binary files in your binary directory?
OgreMain.dll is needed and all DLL files for the plugins, which you enabled by the plugins.cfg file.

Good tools to find out missing depencies (files) are these:
  1. Depency Walker - analyse of dll/exe files[/*:m]
  2. Process Monitor - Use the filter to search for failed file accesses (missing files)[/*:m][/list:u]