Author Topic: Problem Regarding Compilation in Windows Vista  (Read 2372 times)

aiexpert

  • Guest
Problem Regarding Compilation in Windows Vista
« on: 13 December 2008, 20:51:35 »
We are a bunch of students trying to introduce a new concept in AI of RTS games and we found Glest the perfect one to test our ideas....but the source available for windows is not gettin compiled under Visual Studio....we have tried all the steps given at   "http://www.glest.org/glest_board/viewtopic.php?f=4&t=3271"  but in vain

the fact is that we were able to compile it earlier but we think that there was some problem with the compilation as the game was being too slow even on a Core2Duo 2.0GHz ,2Gb RAM, Vista 32bit, ......also the size of the exe was 5.5MB (we dint make any major changes in the source) as opposed to one available which is only about 2.1MB...so we tried to recompile but now we are not even able to do that...I know that may sound odd but its just the case

could you please help us with this coz our work is on a halt as the compiled game which we have is so slow that its almost impossible to work with that...

daniel.santos

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #1 on: 14 December 2008, 03:11:18 »
you'll have to post actual error message, can't help w/o that.  Tell exactly what version you downloaded, rather you downloaded it from the web site (as a package) or from subversion, etc.  I'm not psychic :)

aiexpert

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #2 on: 14 December 2008, 10:39:15 »
we are using GAE ver 2.7 under Visual C++ 2008 Express (we also tried visual studio 2005)...
last night we were able to compile but the problem is same i.e. it is being too slow

there is no error during the compilation process but a whole lot of warnings...the thing is that we are able to run the game bu after about 20 secs it becomes very very slow....I mean u give some unit a command then u hv to wait to see it being executed

now the build log containing the warnings is abt 125kb ....how may I send it to u???
please help

daniel.santos

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #3 on: 14 December 2008, 23:50:34 »
Maybe you can download 0.2.10b from subversion and use the msvc++ project files I have.  (I don't remember if the source tarballs include them or not.)  My initial guess is that you don't have an optimized build, but I could be wrong.  I'm also guessing that you have a descent video card (by "descent" I mean anything designed for playing 3d games made in the last 8 years or so).

From a command line
Code: [Select]
svn co https://glest.codemonger.org/svn/repos/gae/tags/0.2.10b gaeFor WinSVN, you'll have to figure that one out on your own. :)  Note that you'll have to confirm the use of an "improperly signed" certificate or something like that.

aiexpert

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #4 on: 18 December 2008, 14:42:29 »
we have download the 0.2.10b code and your project files. The compilation was successful but with lot of warnings. But the compiled game is not working properly. It slows down after 20-30 seconds.

What do you mean by optimized build. How can we find whether our build is optimized or not??

daniel.santos

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #5 on: 19 December 2008, 21:46:59 »
hmm, well in Visual Studio, you get 2 different build configurations by default, Debug and Release.  Make sure you are building the "Release" build.  You can also tweak it out a little further, but just building release should be enough to not be slow.  Since you are using a core 2, I would enable SSE2 instructions in the build, that's done under the project properties => compilation options => code generation (I think, that's just from my memory).  Be sure you do it for both the libglest and game projects.  There are a few other things that can help, like inlining "any feasible" and, optimizing "for speed" instead of "full optimizations" (/O2 instead of /Ox) and enabling "whole program optimizations" (that one is for the game project only) -- but these should just be "icing on the cake" so to speak, just having a Release build should be enough for it not to behave as you described.

aiexpert

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #6 on: 22 December 2008, 06:17:11 »
The problem is solved!!!!!! :D

Thanks a lot.

modman

  • Guest
Re: Problem Regarding Compilation in Windows Vista
« Reply #7 on: 26 December 2008, 02:54:07 »
Ok so maybe you'll take a look at this topic?