View topic - Compiling spring (mingw and visual studio 7/8)


All times are UTC + 1 hour


Post new topic Reply to topic  [ 582 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 30  Next
Author Message
 Post subject:
PostPosted: 09 Aug 2006, 19:27 
Spring Developer

Joined: 14 Mar 2005, 12:32
Location: The Netherlands
I tried compiling Spring on Visual C++ 2005 Express Edition, but to no avail.
The compiler reports that it can't find header files (such as glew's), but I've got the vclibs in the correct directory. So I guess it's a project setting I have to fix.

Has anyone had any luck compiling it on Visual C++ 2005 Express Edition?
(btw, I tried that particular IDE because it's free.)
Top
 Offline Profile  
 
 Post subject:
PostPosted: 10 Aug 2006, 01:22 

Joined: 11 Jul 2006, 06:51
I got it to compile, but it took me about 3 weeks to get it working...

I found that some of the libs in the in the project are pointing to a version that isnt there...

Mine was referencing SDL 1.2.8, the SDL in the VCLIBS package was 1.2.9
Also was referencing a different version of Boost compared to what was in the lib...


There are some steps a few pages back regarding the Platform sdk which you need to do aswell.

Good luck!

If you want, i can email you my project... not sure if it still compiles tho.. ( havent compiled since last week when i updated the svn... )
Top
 Offline Profile  
 
 Post subject:
PostPosted: 14 Aug 2006, 16:05 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
bah that vstudio8 project file in SVN was horribly outdated

I think it should work now (here it does). Use it with the precompiled boost libraries posted by EW.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 14 Aug 2006, 16:20 
Spring Developer

Joined: 14 Mar 2005, 12:32
Location: The Netherlands
Ok, I'll give it one more try. Too bad I deinstalled VS Express Edition already :(.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 15 Aug 2006, 21:18 
User avatar

Joined: 23 Apr 2006, 01:15
.\Release\AdvTreeGenerator.obj : fatal error LNK1136: invalid or corrupt file
r1857

Any ideas?
Top
 Offline Profile  
 
 Post subject:
PostPosted: 15 Aug 2006, 21:41 
User avatar

Joined: 05 Jun 2005, 18:13
Location: NL
just a corrupted file, it will be regenerated when you rebuild
Top
 Offline Profile  
 
 Post subject:
PostPosted: 16 Aug 2006, 13:13 
Spring Developer

Joined: 14 Mar 2005, 12:32
Location: The Netherlands
My VC++ Express still complains it can't find "GL/glu.h" and "windows.h". Do I need to install the MS Platform SDK? (I'd rather don't, as it's 1.5 gigs).
Top
 Offline Profile  
 
 Post subject:
PostPosted: 16 Aug 2006, 13:52 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Yes :|
Top
 Offline Profile  
 
 Post subject:
PostPosted: 16 Aug 2006, 15:20 
Spring Developer

Joined: 14 Mar 2005, 12:32
Location: The Netherlands
Installing the Platform SDK wasn't that bad after all. You only need the core files, and of those only the Build Envirenmont, which comes to 87mb.

Compiling away with MVSC++ Express ... :) (I do get a lot of type mismatch warnings though).

Btw, shouldn't the first page be updated a bit for MVSC++ Express? Getting the free IDE, the VCLibs, the modified Boost libraries and the MS Platform SDK isn't on it right now.

E: Oops I forgot to mention the DX SDK, which you'll need for dsound.h ...
Perhaps it's a good idea to combine the header files you'll need on windows and which aren't yet in the VClibs package into a new package.
Top
 Offline Profile  
 
 Post subject: strange compile error
PostPosted: 21 Aug 2006, 01:37 

Joined: 08 Sep 2004, 14:32
Been trying to compile the latest SVN, got this never-happened-before error.
First I should say I had to add the include path to the boost headers (1-33-1) to start compile.
After some files compiled, the "generating code" message and stuff I got this:
Code:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(21): error C2039: 'ldexp' : is not a member of 'operator``global namespace'''

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(21): error C2873: 'ldexp' : symbol cannot be used in a using-declaration

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(22): error C2039: 'modf' : is not a member of 'operator``global namespace'''


Probably has smth to do with the right math.h include or I'm doing smth wrong, anybody knows? [/code]
I use VC7 (2003), maybe the project file wasn't updated correctly...
Top
 Offline Profile  
 
PostPosted: 21 Aug 2006, 04:40 

Joined: 09 Jan 2006, 17:51
alik83 wrote:
Been trying to compile the latest SVN, got this never-happened-before error.
First I should say I had to add the include path to the boost headers (1-33-1) to start compile.
After some files compiled, the "generating code" message and stuff I got this:
Code:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(21): error C2039: 'ldexp' : is not a member of 'operator``global namespace'''

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(21): error C2873: 'ldexp' : symbol cannot be used in a using-declaration

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cmath(22): error C2039: 'modf' : is not a member of 'operator``global namespace'''


Probably has smth to do with the right math.h include or I'm doing smth wrong, anybody knows? [/code]
I use VC7 (2003), maybe the project file wasn't updated correctly...


I don't know if the VS7 project was updated after the merge with tvo3. It looks like jcnossen might have fixed it at 9:00AM 19th PST.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 12:43 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Quote:
scons: Reading SConscript files ...

Now configuring. If something fails, consult `config.log' for details.

Detected platform : windows
Checking cl version... cl not found


What am I doing wrong?
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 16:26 

Joined: 09 Jan 2006, 17:51
KDR_11k wrote:
Quote:
scons: Reading SConscript files ...

Now configuring. If something fails, consult `config.log' for details.

Detected platform : windows
Checking cl version... cl not found



cl is the command-line compiler used by visual studio. Are you trying to use visual studio or gcc to compile spring?
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 17:01 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
It's mingw.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 19:06 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Make sure you set the MINGDIR environment variable correctly (to the path of your MinGW/Dev-Cpp install), then it will detect MinGW and not just default to MSVC.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 20:47 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
That's set to the Dev-Cpp directory.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 21 Aug 2006, 21:00 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
And do you have VC installed too?

If so, make sure the vcvars.bat isn't executed on system start.
If not, I'm out of clues atm.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 22 Aug 2006, 11:38 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Nope, no VC.
Top
 Offline Profile  
 
 Post subject:
PostPosted: 22 Aug 2006, 17:03 

Joined: 13 Aug 2004, 15:11
Location: Stockholm, Sweden
I had the same problem I believe when I was trying to build with mingw a while back.. I didn't investigate it, but the following workaround got it to compile for me.

In the main SConstruct file, I had to change

env = Environment(tools = ['default', 'rts'], toolpath = ['.', 'rts/build/scons'])

into

env = Environment(tools = ['mingw', 'rts'], toolpath = ['.', 'rts/build/scons'])
Top
 Offline Profile  
 
 Post subject:
PostPosted: 22 Aug 2006, 17:37 
Game Developer
User avatar

Joined: 25 Jun 2006, 07:44
Location: Germany
Ah, I found the problem: Path must include Dev-Cpp\bin, not Dev-Cpp
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 582 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 30  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google Feedfetcher and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Site layout created by Roflcopter et al.