weimingtom / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

Angel Build in VS2010 #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all :)

I have a problem to build Angel-Engine with Visual Studio 2010 Pro.

Error   7   error C2039: 'inserter' : is not a member of 
'std'   C:\Users\Turok\Desktop\Angel-v2.2\Code\Angel\Infrastructure\TagCollection.
cpp 83  1   Angel
Error   9   error C2039: 'inserter' : is not a member of 
'std'   C:\Users\Turok\Desktop\Angel-v2.2\Code\Angel\Infrastructure\TagCollection.
cpp 89  1   Angel
Error   8   error C3861: 'inserter': identifier not 
found   C:\Users\Turok\Desktop\Angel-v2.2\Code\Angel\Infrastructure\TagCollection.
cpp 83  1   Angel
Error   10  error C3861: 'inserter': identifier not 
found   C:\Users\Turok\Desktop\Angel-v2.2\Code\Angel\Infrastructure\TagCollection.
cpp 89  1   Angel
Error   11  error LNK1181: cannot open input file 
'Angel.lib' C:\Users\Turok\Desktop\Angel-v2.2\Code\ClientGame\LINK  ClientGame
Error   12  error LNK1181: cannot open input file 
'Angel.lib' C:\Users\Turok\Desktop\Angel-v2.2\Code\IntroGame\LINK   IntroGame
    14  IntelliSense: cannot open source file "crtassem.h"  c:\users\turok\desktop\angel-v2.2\code\angel\libraries\python-2.6.4\pc\msvcrtmodule.c   27  1   _pythoncore
    13  IntelliSense: linkage specification is incompatible with previous "_hypot" (declared at line 138)   c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h   161 34

I dont know, how to fix that.
crtassem.h is not avaible in VS2010 more. *thanks to ms* :P
I cant find Angel.lib.
...

Thanks. 

Original issue reported on code.google.com by ler...@gmail.com on 8 Jul 2010 at 2:55

GoogleCodeExporter commented 8 years ago
Could you let try building the the trunk and see if it also happens there? (I'm 
guessing it will, but want to be sure before I chase it down.)

Original comment by lieseg...@gmail.com on 8 Jul 2010 at 4:31

GoogleCodeExporter commented 8 years ago
The Angel lib problems all seem to stem from inserter not being in the std 
namespace anymore. Kind of surprised they would mess with that, but who knows 
the reasoning. Need to research some more. 

The Python errors aren't relevant anymore since we've moved away from it 
(pending the next release). 

Original comment by lieseg...@gmail.com on 8 Jul 2010 at 4:41

GoogleCodeExporter commented 8 years ago
All right, it looks like Microsoft has messed with their implementation of the 
STL and the way we were doing set_intersection is no longer valid. (I don't 
recall getting deprecation warnings in older versions, but they may have been 
suppressed.) 

Looks like that function is up for a rewrite, then. The trick will be making 
sure whatever new method also works across GCC. 

(Note that at present we only support building on VS2005 [the downloads] or 
VS2008 [the trunk].)

Original comment by lieseg...@gmail.com on 8 Jul 2010 at 8:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think, the solution is:
Add this include in TagCollection.cpp:

#include <iterator>

i am testing now the build. i hope, its work.

Original comment by ler...@gmail.com on 8 Jul 2010 at 9:07

GoogleCodeExporter commented 8 years ago
I think, the IntroGame dont work.
I see only the lines. I think, Lua isnt loaded correctly.

Original comment by ler...@gmail.com on 8 Jul 2010 at 9:14

GoogleCodeExporter commented 8 years ago
Thanks for tracking down the "#include <iterator>" solution. Saved me some 
googling. :-) 

After adding that, everything seemed build and run fine (though with some 
warnings about Lua library names). Are you sure you're running IntroGame and 
not ClientGame? 

Original comment by lieseg...@gmail.com on 8 Jul 2010 at 10:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I redownloaded trunk and compiled again, now its work. Thanks :)
I edited only TagCollection.cpp :)

The biggest problem for me is, i cant open the console, because i am using a 
switzerland keyboard. 

Where i can change the key settings?

Original comment by ler...@gmail.com on 8 Jul 2010 at 11:19

GoogleCodeExporter commented 8 years ago
Ha! I love that that's still hard-coded. Look for GetToggleConsoleKey() in 
Console.h. Hilariously bespoke. 

I'm going to close this bug, then, since you've got it working. When we move to 
2010 (which will likely be in the far-flung future), this will be a good 
reference. 

Original comment by lieseg...@gmail.com on 8 Jul 2010 at 11:25

GoogleCodeExporter commented 8 years ago
Thanks, working :)

Original comment by ler...@gmail.com on 8 Jul 2010 at 11:39