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

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
patmo98
Posts: 188
Joined: 09 Jan 2006, 17:51

Post by patmo98 »

Das Bruce wrote:Its an error though. :?
Could you post the exact error when you ignore libc?
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Code: Select all

------ Build started: Project: rts, Configuration: Release with error catching Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
Build log was saved at "file://d:\Springsource\rts\build\vstudio7\Release with error catching\BuildLog.htm"
rts - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Sounds like an error with the way you've set up your win32 platform sdk or your directx 9 sdk, rather youve set up the headers from the sdk in the project but not all the library paths are setup correctly.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

So I should just do it over?
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

It complains it can't find cl, which I'm pretty sure is the cpp complier but I only have cpp and g++. What should I change to make it look at those?
FrznMD
Posts: 2
Joined: 11 Sep 2006, 11:43

Post by FrznMD »

Hi all, new user :)

I've just compiled TA Spring with vs .net 2003 with the vc libs as instructed, i've been trying to fix the errors, but so many errors atm...

Code: Select all

\Development\taspring_0.72b\taspring_0.72b1-source\rts\System\FileSystem\ArchiveScanner.cpp(162) : warning C4101: 'e' : unreferenced local variable

\Development\taspring_0.72b\taspring_0.72b1-source\rts\System\MouseInput.cpp(49) : warning C4312: 'type cast' : conversion from 'LONG' to 'WNDPROC' of greater size
\Development\taspring_0.72b\taspring_0.72b1-source\rts\System\MouseInput.cpp(50) : warning C4311: 'type cast' : pointer truncation from 'LRESULT (__stdcall *)(HWND,UINT,WPARAM,LPARAM)' to 'LONG'
\Development\taspring_0.72b\taspring_0.72b1-source\rts\System\MouseInput.cpp(74) : warning C4311: 'type cast' : pointer truncation from 'WNDPROC' to 'LONG'
\Development\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\Textures\Bitmap.cpp(238) : warning C4800: 'ILboolean' : forcing value to bool 'true' or 'false' (performance warning)
\Development\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(214) : warning C4288: nonstandard extension used : 'y' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
        \New Stuff\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(212) : definition of 'y' used
        \New Stuff\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(173) : definition of 'y' ignored
\Development\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(216) : warning C4288: nonstandard extension used : 'y' : loop control variable declared in the for-loop is used outside the for-loop scope; it conflicts with the declaration in the outer scope
        \Development\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(212) : definition of 'y' used
        \Development\taspring_0.72b\taspring_0.72b1-source\rts\Rendering\glFont.cpp(173) : definition of 'y' ignored
\Development\taspring_0.72b\taspring_0.72b1-source\rts\System\Messages.cpp(40) : warning C4101: 'e' : unreferenced local variable
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
FBO.obj : warning LNK4049: locally defined symbol ___glewGenFramebuffersEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___GLEW_EXT_framebuffer_object imported
FBO.obj : warning LNK4049: locally defined symbol ___glewDeleteFramebuffersEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewBindFramebufferEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewCheckFramebufferStatusEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewFramebufferTexture2DEXT imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewGetPbufferDCARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewCreatePbufferARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___WGLEW_NV_render_depth_texture imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewDestroyPbufferARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewReleasePbufferDCARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewReleaseTexImageARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewBindTexImageARB imported
freetype2110_D.lib(autofit.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(bdf.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(cff.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftbase.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftbitmap.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftdebug.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftglyph.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftgzip.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftinit.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftlzw.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftsystem.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(smooth.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pcf.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pfr.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(psaux.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pshinter.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(psmodule.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(raster.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(sfnt.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(truetype.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type1.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type1cid.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type42.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(winfnt.obj) : warning LNK4204: 'c:\Development\taspring_0.72b\taspring_0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
VS.NET 2003 with DirectX 9.0c (August Edition)....

Thanks,

FrznMD
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Those all look like warnings, can you post the very end of the build log?
FrznMD
Posts: 2
Joined: 11 Sep 2006, 11:43

Post by FrznMD »

Das Bruce wrote:Those all look like warnings, can you post the very end of the build log?
Generating Code...
Compiling resources...
Linking...
LINK : LNK6004: ../../../game/debug.exe not found or not built by the last incremental link; performing full link
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
FBO.obj : warning LNK4049: locally defined symbol ___glewGenFramebuffersEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___GLEW_EXT_framebuffer_object imported
FBO.obj : warning LNK4049: locally defined symbol ___glewDeleteFramebuffersEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewBindFramebufferEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewCheckFramebufferStatusEXT imported
FBO.obj : warning LNK4049: locally defined symbol ___glewFramebufferTexture2DEXT imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewGetPbufferDCARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewCreatePbufferARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___WGLEW_NV_render_depth_texture imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewDestroyPbufferARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewReleasePbufferDCARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewReleaseTexImageARB imported
WinPBuffer.obj : warning LNK4049: locally defined symbol ___wglewBindTexImageARB imported
freetype2110_D.lib(autofit.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(bdf.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(cff.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftbase.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftbitmap.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftdebug.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftglyph.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftgzip.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftinit.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftlzw.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(ftsystem.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(smooth.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pcf.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pfr.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(psaux.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(pshinter.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(psmodule.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(raster.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(sfnt.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(truetype.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type1.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type1cid.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(type42.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
freetype2110_D.lib(winfnt.obj) : warning LNK4204: 'c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\vc70.pdb' is missing debugging information for referencing module; linking object as if no debug info
They are warnings, but still...?

EDIT: also......

Code: Select all

Build log was saved at "file://c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\BuildLog.htm"
rts - 0 error(s), 46 warning(s)

---------------------- Done ----------------------

    Rebuild All: 1 succeeded, 0 failed, 0 skipped
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Build log was saved at "file://c:\My Projects\taspring\0.72b1-source\rts\build\vstudio7\Debug\BuildLog.htm"
rts - 0 error(s), 46 warning(s)

---------------------- Done ----------------------

Rebuild All: 1 succeeded, 0 failed, 0 skipped
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

all of those warnings are unimportant.
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

Hey guys, does anyone know what happened with VS8 Spring libraries. The link is dead ( http://spring.clan-sy.com/dl/spring-vc8libs.exe)?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Works for me.
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

yeah in my post, try the link on the first page. You guys misspelled it, remove the comma from the end.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Ah, thanks. Fixed now.
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

I'm missing LIBC.lib. Do I need to instal PlatformSDK to have it? I have VisualStudio Pro, normally I don't need all the win stuff from PlatformSDK.

Thanks.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

IIRC you need basically everything (Including internet related libs of which you really think you don't need them :/ ) from psdk to get it to work in VS Express, but I'm not sure what the deal is in Visual Studio Pro
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

I've set LIBC.lib to ignore.

Now i'm missing files from Spring source directory:
ExplosionGraphics.h
ExplosionGraphics.cpp.
The files appear in Visual Studio 8 solution but they're not on my hard drive nor do they appear in the SVN.
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

got it compiling =]
redcoat
Posts: 36
Joined: 12 Sep 2006, 23:50

Post by redcoat »

pin_ wrote:
Now i'm missing files from Spring source directory:
ExplosionGraphics.h
ExplosionGraphics.cpp.
The files appear in Visual Studio 8 solution but they're not on my hard drive nor do they appear in the SVN.
I'm having the same problem.
c1xx : fatal error C1083: Cannot open source file: '..\..\Rendering\ExplosionGraphics.cpp': No such file or directory
How did you fix this?
pin_
Posts: 49
Joined: 22 Jul 2006, 16:12

Post by pin_ »

Remove the files from your project and add instead ExplosionGenerator.h and ExposionGenerator.cpp from rts/Sim/Projetiles
Post Reply

Return to “Engine”