Mogre NET 2.0 build?

lare

12-05-2012 10:58:43

Can 1.7.3 be build to NET 2.0? Have somebody compiled it, are there somewhere binaries?
I found only 1.7.1 net2.0 binaries but they are quite old.

zarfius

12-05-2012 21:58:32

It's possible. But I don't think anyone has done it recently. If you want to give it a go I suggest using the MogreBuilder. It makes it fairly easy to build Mogre, but I believe in order to get .NET 2 binaries you'll need to mess with the solution file settings of Mogre (except the MogreBuilder itself which has .NET 4 code in it).

lare

13-05-2012 10:11:34

Ok, I tried mogrebuilder, very nice.
It works fine when compiling NET 4.0 but when I change Mogre_vs2010 to use NET2.0 (modifying Mogre_vs2010.vcxproj file, adding <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> line), I got unresolved externals errors.
(I had to install VC++ 2008 too, hopefully it doesnt mess things because I have VS 2010 installed too)


..error error
.
.
unresolved external symbol "public: virtual class Ogre::ConstMapIterator<class stdext::hash_map<class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> >,class Ogre::MovableObject *,class stdext::hash_compare<c
lass std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic
_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,class std::allocator<struct std::pair<class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class Ogre::MovableObject *> >
> > __thiscall Ogre::SceneNode::getAttachedObjectIterator(void)const " (?getAttachedObjectIterator@SceneNode@Ogre@@UBE?A
V?$ConstMapIterator@V?$hash_map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVMovableObject@Ogre@@V?$
hash_compare@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@V?$basic_string@DU?$char_traits@D@std
@@V?$allocator@D@2@@std@@@2@@stdext@@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@s
td@@PAVMovableObject@Ogre@@@std@@@2@@stdext@@@2@XZ)
unresolved external symbol "public: virtual class Ogre::MapIterator<class stdext::hash_map<class std::basic_string<char,
struct std::char_traits<char>,class std::allocator<char> >,class Ogre::MovableObject *,class stdext::hash_compare<class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_stri
ng<char,struct std::char_traits<char>,class std::allocator<char> > > >,class std::allocator<struct std::pair<class std::
basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class Ogre::MovableObject *> > > > _
_thiscall Ogre::SceneNode::getAttachedObjectIterator(void)" (?getAttachedObjectIterator@SceneNode@Ogre@@UAE?AV?$MapItera
tor@V?$hash_map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVMovableObject@Ogre@@V?$hash_compare@V?$
basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D
@2@@std@@@2@@stdext@@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVMovableOb
ject@Ogre@@@std@@@2@@stdext@@@2@XZ)
6 unresolved externals
Failed to build Main\Mogre_vs2010.sln

Duration: 0 hours 26 minutes


this kind of errors (beginnings of the lines)

unresolved token (0A000098) "public: class stdext::hash_map<class std: ....
unresolved external symbol "public: virtual class Ogre::ConstMapIterator<class stdext:: ...
unresolved external symbol "public: class stdext::hash_map<class std::basic_string<char, ...
unresolved external symbol "public: virtual class Ogre::MapIterator<class stdext::hash_map< ...



Tried VS 2008 version of solution files too, didnt work either.

zarfius

15-05-2012 05:33:04

Sorry, I don't know how to help you with those errors.

Out of curiosity though, why do you need a .NET 2.0 version anyway?

lare

01-06-2012 13:41:54


Out of curiosity though, why do you need a .NET 2.0 version anyway?


Well, NET4.0 doesnt have anything that I need, and I dont like to force people install NET4 just to play my
little ugly and small games. And in XP, there must be install some SP too.
Maybe someday I will use NET4.0 too, but now I just use older binaries or other engine.

zarfius

03-06-2012 08:12:52


Out of curiosity though, why do you need a .NET 2.0 version anyway?


Well, NET4.0 doesnt have anything that I need, and I dont like to force people install NET4 just to play my
little ugly and small games. And in XP, there must be install some SP too.
Maybe someday I will use NET4.0 too, but now I just use older binaries or other engine.

Fair enough. In that case I suggest taking a look at the older releases of Mogre on the wiki http://www.ogre3d.org/tikiwiki/tiki-ind ... d+releases
I think one of the previous versions was .NET 2.0 and I don't think you need to go back far to find it. If you're just making small simple games it probably doesn't matter about new features in later versions of Ogre / Mogre anyway. If you decided you need something later you can always replace the binaries with something newer.

The main issue your going to have is when you want to add physics, sound or some other .NET library to your game because they will probably also have .NET 4 versions. Personally I don't think it's worth worrying about users having to download .NET 4. I think you'd be surprised how many people already have it.

If Mogre does not suit your needs, I found a great list of other game development tools over here: http://www.pixelprospector.com/the-big- ... ing-tools/
They also have a bunch of other cool game development links worth a read.