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, 2, 3, 4, 5, 6 ... 30  Next
Author Message
 Post subject:
PostPosted: 16 Mar 2006, 17:25 
User avatar

Joined: 02 May 2005, 02:56
Location: Canada
my guess... the DirectX SDK is missing... you'll need that to get sound working on windows still...


Top
 Offline Profile  
 
 Post subject:
PostPosted: 16 Mar 2006, 21:49 
Engines Of War Developer

Joined: 09 Jun 2005, 22:39
Location: Germany, the EU
Thanks for the tip. But does that really mean downloading a 337 MB installation file ? Not that that would really be a problem, but I didn´t think it would be so big


Top
 Offline Profile  
 
 Post subject:
PostPosted: 16 Mar 2006, 23:39 
User avatar

Joined: 02 May 2005, 02:56
Location: Canada
Not only that but you have to have the "genuine windows" plugin to get it... I happened to have an extra copy of it on my drive... blame the Devs for using an industry standard... :P


Top
 Offline Profile  
 
 Post subject:
PostPosted: 17 Mar 2006, 09:12 
Engines Of War Developer

Joined: 09 Jun 2005, 22:39
Location: Germany, the EU
I needed the "genuine windows" pluggin to get the VS C++ 2005 Express edition (if I remember rightly) so I´m not bothered about that. Zaphod, could you edit your front post and add that you need the directx SDK installed ?
I guess I should just write it in the wiki .....


Top
 Offline Profile  
 
 Post subject:
PostPosted: 17 Mar 2006, 20:23 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
Dont you also need the win32 platform sdk?

For me the directx sdk was 900MB and the widnwos SDK in excess of 1.5GB possibly 2 or 3


Top
 Offline Profile  
 
 Post subject:
PostPosted: 18 Mar 2006, 05:17 

Joined: 09 Jan 2006, 17:51
AF wrote:
Dont you also need the win32 platform sdk?

For me the directx sdk was 900MB and the widnwos SDK in excess of 1.5GB possibly 2 or 3

Strange, for me the DirectX was 589 MB, and the Windows PSDK was 894 MB. That is the size after I deleted the installers, and files in temp.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 25 Mar 2006, 18:51 
User avatar

Joined: 16 Aug 2004, 03:36
Location: The Steward's Realm
1.5 gigs!!?


jeebus.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 25 Mar 2006, 19:30 

Joined: 09 Jan 2006, 17:51
Dragon45 wrote:
1.5 gigs!!?


jeebus.

No one ever accused Microsoft of thinking small :wink: . When it comes to file size.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 28 Mar 2006, 18:13 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Now this thread has been promoted to "how to build spring code in mingw/dev-cpp" too, let me list some links. Except for TortoiseSVN, which can be replaced by the commandline svn client or SmartSVN and Dev-Cpp, which can be replaced by a bare MinGW system, the linked programs are a must-have if you want to compile spring with MinGW/Dev-Cpp.Zaphod, could you copy these to the main post?

Oh, and quick instructions:
  • Grab and install the above programs.
  • Make sure C:\Python2.4 and C:\Dev-Cpp\bin are in your PATH environment variable. Make sure a MINGDIR environment variable with value C:\Dev-Cpp exists. (change paths where appropriate.) Set environment variables by: Start -> Settings -> Control Panel -> System -> Advanced -> Environment variables (for Windows XP).
  • Checkout the TA Spring SVN repository.
  • Open a console (Start -> Run -> cmd.exe -> Run), cd \path\to\taspring<enter> (where you checked it out in the previous step) and type scons configure<enter>, followed by scons<enter>. Refer to scons --help for options which can be passed to scons configure.
  • Wait.
  • Copy over datafiles and stuff from official spring to the game dir (where spring.exe is created).
  • Copy missing DLLs from mingwlibs/dll.
  • Start developing.


Last edited by Tobi on 28 Mar 2006, 20:03, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject:
PostPosted: 28 Mar 2006, 19:25 
User avatar

Joined: 19 Nov 2004, 20:38
Location: in die buerse al sonder naet,daer men die beyaert mede slaet.
Praise the lord! MinGW!


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 19:21 

Joined: 18 Mar 2006, 18:21
Location: Germany
I just built TA Spring using MingW on Windows 2k, and i could load a map WITHOUT crash!!!

I rebuilt the devIL libs, but there are some strange things...

At first, compile faild, because -lIL wasn't found, i renamed libdevIL.a to libIL.a and it worked(i just remember, i also created the mingwlibs folder, because i extracted this folder in dev-cpp at first, i thing thats the reason why it worked, no the renaming...), but the game crashed when loading a map.



Later i downloaded and rebuilt the devIL libs, with much much problems..
after deleting unsued extensions (tif,png,mng) it finally compiled. i got a IL.dll and a IL.dll.a .. now i was unsre what to do.. moved the IL.dll.a to the /libs and renamed it to libIL.dll.a (which was not the name i wanted, but i forget it), then i copied over the includes folder of the devIL package, then i renamed the libIL.a in my dev-cpp folder to libIL.a_, so it was not used any more (a same copy of this file called libdevIL.a still exists in mingwlibs/), then i compiled ta spring again... the new ta spring file was copied over to the ta spring game dir, then i started it, error -> dll IL.dll not found... i copied it over, tryed again, and it worked!!!!!!!!

Here are the new created files from devIL :
http://user.supradigital.org/suprano/devIL.rar

You need to copy & rename mods/XTAPE.sd7 to mods/XTAPEv3.sd7 and you have to copy the guis & bitmaps folder from the svn dir to the spring game dir(not sure if it were these 2)

I also uploaded a binary:
http://user.supradigital.org/suprano/springmingw.exe


EDIT: I just joined a online game, but a few seconds after start, the sync errors started and after 10 secs the game closed without error message..






--Ano


Last edited by Suprano on 31 Mar 2006, 21:20, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 21:13 

Joined: 09 Jan 2006, 17:51
Suprano wrote:
I just joined a online game, but a few seconds after start, the sync errors started and after 10 secs the game closed without error message..

--Ano

I hope this didn't supprise you. You went probably went out of sync because there were chances between your copy and .70b3


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 21:19 

Joined: 18 Mar 2006, 18:21
Location: Germany
no it didn't suprise me, i just wanted the hardproof ;)

I think it happens, because it is an other compiler... but maybee both, who knows..

--Ano


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 21:22 

Joined: 09 Jan 2006, 17:51
Suprano wrote:
no it didn't suprise me, i just wanted the hardproof ;)

I think it happens, because it is an other compiler... but maybee both, who knows..

--Ano


What rev are you using? If you want I could compile it in VS8 and we could play a game today.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 21:52 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Whoa, cool! So I can finally declare the mingw platform supported once I get new mingwlibs pack up :-)


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 22:19 

Joined: 09 Jan 2006, 17:51
We tried to play, but something was relly strange. First we updated from the SVN, and compiled rev 1089. Then I hosted a game. The game started up just fine for me, but Suprano's game wouldn't start. I think the connection timed out. I recreated the game and the lobby wouldn't sync. I couldn't figure out what caused it, so I decided to switch to a diffierent installation.

I moved my newly compiled exe to my primary spring folder, and we tried again. Same problem. The lobby synced and we connected just fine. His connection timed out. When Suprano reconnected the lobby client wouldn't sync.

It sound like something is corupting the installation on my end (I'm using VS8). Anyone have any advice?

Just to make the point relly clear, spring.exe was nt giving sync errors. The lobby was complaining.


Top
 Offline Profile  
 
 Post subject:
PostPosted: 31 Mar 2006, 22:48 

Joined: 18 Mar 2006, 18:21
Location: Germany
well the second time my connection timed out, it wasn't his fault, because my internet pc was shut down by a virus (i disabled the FW because i was going to host after that) .. but after restart, the lobby was not synced again...

We tryed several lobby restarts, but nothing happend...
The interessting thing: later, I joined an normal game, and the lobby was synced(after that i renamed my exes back to org, to be able to play a normal game), so the lobby-unsync was not caused by the different exes...

--Ano


Top
 Offline Profile  
 
 Post subject:
PostPosted: 04 Apr 2006, 10:14 

Joined: 22 Aug 2005, 23:08
Location: UK Channel Islands Jersey
I fed the mingw stuff to the wiki :twisted:


Top
 Offline Profile  
 
 Post subject:
PostPosted: 05 Apr 2006, 20:25 
Engines Of War Developer

Joined: 09 Jun 2005, 22:39
Location: Germany, the EU
Ok thanks for all the help so far. After finally getting round to installing the directx sdk, I got the next missing include I can´t start anything with:
"afxres.h"

Compiling...
7zHeader.c
7zIn.c
7zItem.c
7zMethodID.c
LzmaDecode.c
Generating Code...
Compiling resources...
.\rts.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

I found two instances of this header in the windows sdk, but it didnt help to add there folders to the include folders of the project.
I´d by thankful for any further hints I can get. But no worries if you cant help, as I´m not going to be doing much with the code anyway :) .


Top
 Offline Profile  
 
 Post subject:
PostPosted: 05 Apr 2006, 21:23 

Joined: 09 Jan 2006, 17:51
SeanHeron wrote:
.\rts.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.


Replace any instance of afxres.h in the .rc file with winres.h
I found that "fix" on google. I don't know what that file is suppost to do but at least it compiles.

Found that at http://www.winprog.org/tutorial/errors.html


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 582 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 30  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users 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.