Compiling spring (mingw and visual studio 7/8)
Moderator: Moderators
About the crashrpt, that was removed because it isn't used in the released spring.exe. I didn't realize the code still used it when compiling on MSVC... Since it (crashrpt) never changes you could just copy it from b2 or rip the crashrpt code out of spring (can probably be done by modifying the #ifdef's a minor bit), since you probably wont need it anyway, right?
So I figured out I had to compile the GlobalAIInterfaces C# project and run the generate.bat batch file to fix this.QMan wrote:One more problem. During linkage, it complains about a missing "def_generated.def" file in the GlobalAICInterface folder. Any ideas on this?
Now I get errors about a bad link in streflop
Code: Select all
Random.obj : error LNK2019: unresolved external symbol "float __cdecl streflop::Random<1,0,float>(float,float,struct streflop::RandomState &)" (??$Random@$00$0A@M@streflop@@YAMMMAAURandomState@0@@Z) referenced in function "float __cdecl streflop::NRandom_Generic<float>(float *,struct streflop::RandomState &)" (??$NRandom_Generic@M@streflop@@YAMPAMAAURandomState@0@@Z)
streflop_gateway.obj : error LNK2001: unresolved external symbol "float __cdecl streflop::Random<1,0,float>(float,float,struct streflop::RandomState &)" (??$Random@$00$0A@M@streflop@@YAMMMAAURandomState@0@@Z)
E:\AIDesign\TASpring74DEV\spring.exe : fatal error LNK1120: 1 unresolved externals
EDIT: Nevermind, found the fix on the previous page. :)
Ok, got a new problem. I got spring compiled and working just fine, but when compiling my AI in VC++, I get wrong AI DLL error messages. I tracked this down to different sizes of some standard classes (string, vector, etc). Any ideas why the same copy of VC++ would produce different results for sizeof(std:string)?
In the spring copy it is 28 bytes, and in my AI it is 32 bytes. These mismatches cause the AI DLL error.
-QMan
In the spring copy it is 28 bytes, and in my AI it is 32 bytes. These mismatches cause the AI DLL error.
-QMan
How do I do that with MinGW32/Dev-C++?QMan wrote:I saw this note on the DirectX SDK download page:
The place for these is in:If you encounter compilation issues related to the DirectX headers, make sure that the include directories in Visual Studio are set correctly. On the Win32 platform, make sure that there is a reference to the DirectX headers. Either "$(DXSDK_DIR)include" or "c:\program files\microsoft DirectX SDK (February 2007)\Include" should appear in the include directory "$(VCInstallDir)Include."
Tools
Options
Projects and Solutions
VC++ Directories
Include (drop down box)
I got the same issue. I manually modified aibase.h to give the value 0 rather than sizeof(...) and it started NTai then crashed at the first attempt to access a string value.
I believe this is because of the debug NTai + release spring and that if both had the same debugging data then they'd work fine at runtime.
I believe this is because of the debug NTai + release spring and that if both had the same debugging data then they'd work fine at runtime.
i'm encountering 4 error when trying to compile:
2 are the directSound Header problem which is mentionned on page before.
1 is
I can't find this file.
And another one:
This file is existant, but isn't find ?!
2 are the directSound Header problem which is mentionned on page before.
1 is
Code: Select all
c1xx : fatal error C1083: Datei (Quelle) kann nicht ge├â┬Âffnet werden: "..\..\Rendering\UnitModels\Unit3DLoader.cpp": No such file or directory
And another one:
Code: Select all
c1xx : fatal error C1083: Datei (Quelle) kann nicht ge├â┬Âffnet werden: "..\..\System\SyncTracer.cpp": No such file or directory
Object.cpp
I made a new mingwlibs package.
New stuff:
New stuff:
- Python 2.5 headers and libraries. Not used by unitsync yet but I wanted to make it future proof
- Java headers, as preparation to including AF's unitsync java bindings.
- SDL 1.2.11 (was 1.2.9)
- ILU added, a Spring build dependency recently introduced by trepan
- ILUT added, just for future proof-ness
- Added readme (not much, but at least some info)
- Added reimp_new.zip, containing the tool reimp.exe to create MinGW import libraries from MSVC import libraries (otherwise I keep googling for it everytime I update mingwlibs...)

i tried to build latest svn version with vs.net 2003 (as usual), added the 4 new files and committed the updated project file, however i get tzhe following linking error
rts error LNK2019: unresolved external symbol __imp__iluCrop@24 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluBlurGaussian@4 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluScaleColours@12 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluInit@0 referenced in function "public: __thiscall InitializeOpenIL::InitializeOpenIL(void)" (??0InitializeOpenIL@@QAE@XZ)
i cant figure out the source file containing these functions
or are my precompiled libraries outdated?
rts error LNK2019: unresolved external symbol __imp__iluCrop@24 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluBlurGaussian@4 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluScaleColours@12 referenced in function "public: bool __thiscall Glyph::Outline(unsigned int)" (?Outline@Glyph@@QAE_NI@Z)
rts error LNK2019: unresolved external symbol __imp__iluInit@0 referenced in function "public: __thiscall InitializeOpenIL::InitializeOpenIL(void)" (??0InitializeOpenIL@@QAE@XZ)
i cant figure out the source file containing these functions

or are my precompiled libraries outdated?
They are outdated, recently trepan added a dependency upon ILU. This library is in the devil package. Just grab it there yourself until someone updates vclibs package:
http://prdownloads.sourceforge.net/open ... p?download
http://prdownloads.sourceforge.net/open ... p?download
hello
i am trying to compile spring using visual c++ 2005, however i get the following two error messages:
Cannot open include file: 'GL/glu.h': No such file or directory
Cannot open include file: 'windows.h': No such file or directory
i did install directX sdk and platform sdk as suggested in the very first post, but i dont know what causes this error.
thanks in advance for helping me
i am trying to compile spring using visual c++ 2005, however i get the following two error messages:
Cannot open include file: 'GL/glu.h': No such file or directory
Cannot open include file: 'windows.h': No such file or directory
i did install directX sdk and platform sdk as suggested in the very first post, but i dont know what causes this error.
thanks in advance for helping me
i am stuck on this error:
"fatal error C1083: Cannot open source file: '..\..\System\SyncTracer.cpp': No such file or directory"
if i just copy the cpp from the Sync into the System folder, the after a while of compiling i get:
LINK : fatal error LNK1104: cannot open file '../../lib/ft/freetype2110_D.lib'
any ideas?
"fatal error C1083: Cannot open source file: '..\..\System\SyncTracer.cpp': No such file or directory"
if i just copy the cpp from the Sync into the System folder, the after a while of compiling i get:
LINK : fatal error LNK1104: cannot open file '../../lib/ft/freetype2110_D.lib'
any ideas?