Compiling spring (mingw and visual studio 7/8) - Page 28

Compiling spring (mingw and visual studio 7/8)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

express is free ;p anyway if you've got a full version, then ok, but 2008 is simply a better compiler.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compiling spring (mingw and visual studio 7/8)

Post by lurker »

I can build you an updated 2005, I guess.

Do you have the expensive version of 2005 rather than the free version?
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: Compiling spring (mingw and visual studio 7/8)

Post by submarine »

Ok, I got it to work with lurker's libs
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

upload them somewhere?
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: Compiling spring (mingw and visual studio 7/8)

Post by submarine »

I took those (actually they have been provided by hoijui)
http://spring.jobjol.nl/show_file.php?id=1527
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling spring (mingw and visual studio 7/8)

Post by Auswaschbar »

New mingwlibs:
http://spring.jobjol.nl/show_file.php?id=1102
Now includes OpenAL32 dll + include files
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Compiling spring (mingw and visual studio 7/8)

Post by ILMTitan »

I'm having troubles with the mingwilbs_v13.exe. When I try to run it, it just says

Code: Select all

Program too big to fit in memory
I have plenty of memory free.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

open it in 7zip, something is broken with the self-extracting part.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling spring (mingw and visual studio 7/8)

Post by Auswaschbar »

Made new mingwlibs, with boost updated to 1.38.
The old version failed at win32-thread support.
http://jobjol.nl/1102
Garo
Posts: 11
Joined: 26 Apr 2009, 18:24

Re: Compiling spring (mingw and visual studio 7/8)

Post by Garo »

I'm trying to compile Spring with MinGW under WindowsXP. I have installed mingwlibs v16 and managed to compile all source files, but the linking part fails with the following message:

Code: Select all

[  0%] Built target gamedata
[ 10%] Built target streflop
[ 15%] Built target lua
[ 16%] Built target 7zip
[ 16%] Built target hpiutil2
[ 16%] Built target minizip
Linking CXX executable spring.exe
c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot find -lfreetype
There's freetype6.dll under mingwlibs\dll but I'm not sure if it's the right file for the job or not. There's no libfreetype6.a anywhere I know.

Any idea how I should correct this?

EDIT: this was for 0.78.2.1 sources. After some talk in #sy I was instructed to get mingwlibs v12. Sadly all download links are dead :(

- Garo
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

http://spring.jobjol.nl/show_file.php?id=2036

mingwlibs v17 with junction.exe, script for making junctions and libboost_program_options compiled.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Compiling spring (mingw and visual studio 7/8)

Post by lurker »

Seriously? A junction point? Does it fall back to copy if it's not on NTFS?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

it's a 4-line .bat, no idea what it does on non-ntfs, don't have such relics on my boxen 8)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

mingwlibs v18 (minor changes)
as we found out, the junctions thing is not needed, so they are out again, plus awk.exe was replaced with one that does not depend on msys.

http://jobjol.nl/2043
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Re: Compiling spring (mingw and visual studio 7/8)

Post by submarine »

I'm trying to compile Spring with VS.net 2008 (same error ocurred with 2005 as well) and I'm getting

Code: Select all

1>SkirmishAILibraryInfo.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C2144: syntax error : 'int' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C2470: 'IAVIStream' : looks like a function definition, but there is no parameter list; skipping apparent body
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C2143: syntax error : missing ';' before '*'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C2144: syntax error : 'int' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C2086: 'int interface' : redefinition
1>        C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : see declaration of 'interface'
Do I have the wrong platform SDK version? Or what else may cause this problem?
Societal
Posts: 64
Joined: 05 May 2009, 13:57

Re: Compiling spring (mingw and visual studio 7/8)

Post by Societal »

http://www.eggheadcafe.com/forumarchive ... 105268.asp
Same problem?

windows.h needs to be included before Vfw.h
-lVfw32.lib for linking
submarine wrote:I'm trying to compile Spring with VS.net 2008 (same error ocurred with 2005 as well) and I'm getting

Code: Select all

1>SkirmishAILibraryInfo.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C2144: syntax error : 'int' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : error C2470: 'IAVIStream' : looks like a function definition, but there is no parameter list; skipping apparent body
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C2143: syntax error : missing ';' before '*'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2097) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C2144: syntax error : 'int' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2103) : error C2086: 'int interface' : redefinition
1>        C:\Program Files\Microsoft SDKs\Windows\v6.1\include\vfw.h(2059) : see declaration of 'interface'
Do I have the wrong platform SDK version? Or what else may cause this problem?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Compiling spring (mingw and visual studio 7/8)

Post by zerver »

You can also compile with NO_AVI
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Compiling spring (mingw and visual studio 7/8)

Post by AF »

Do we have an upto date VC9 libs package?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Compiling spring (mingw and visual studio 7/8)

Post by AF »

Ahk

*tears hair out*

Where can I find ANY vclib package for 2008.

Not on:
  • This site
  • Spring files
  • Darkstars
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Compiling spring (mingw and visual studio 7/8)

Post by aegis »

mingw build env isn't terribly hard on windows, *and* it'll sync
Post Reply

Return to “Engine”