Author Topic: Windows version of the code compile trouble  (Read 6784 times)

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Windows version of the code compile trouble
« on: 4 April 2010, 09:41:18 »
Hi,softcoder! Today, I build (SVN inside the windows version of glest code) Windows version of the source code when it came to a trouble, please help me, thank you!
Error message:
2> auto_test.cpp2> Compiling resources ...2> Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.02> Copyright (C)

Microsoft Corporation. All rights reserved.2> is the link ...2> fatal error C1047: object or library file ". \ Release \

glest_game \ auto_test.obj" is used to create other objects than with the old compiler, the compiler created; please

rebuild old objects and libraries2> LINK: fatal error LNK1257: code generation failed2> Build log was saved at "file: / /

e: \ untitled folder 2 \ trunk \ mk \ windoze \ Release \ glest_game \ BuildLog.htm"2> glest_game - 1 error, 69

warnings========== Build: 1 succeeded, 1 failed, the latest 0, 0 skipped ==========

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #1 on: 4 April 2010, 15:12:23 »
If trying to compile the windows project you'll need updated dependencies (specifically SDL). I will upload the update win32_deps later today or tomorrow.

P.S. the only configuration that has the right settings is: Release|Win32

so if you tried to switch to anything else it won't work. If you used all the defaults that are set coming out of SVN then it should compile fine. The error message seems to indicate you have an old version of something. See if you can manuallu clear out your release folders (especially if they have .obj files)

Thanks
« Last Edit: 7 April 2010, 05:57:24 by softcoder »

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #2 on: 5 April 2010, 00:21:44 »
I am using SDL version: SDL 1.2.14

Used to set dependencies are used win32_deps inside,

Please tell me how to update the dependencies, please tell me the relevant set method, please??? Thank you!

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #3 on: 5 April 2010, 02:49:59 »
I use the build tools: VS2008.net. I would like to know how to update my dependencies?? You please tell me in detail, thank you!

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #4 on: 5 April 2010, 15:46:00 »
I have uploaded the new win32 dependency archive:

https://sourceforge.net/projects/megaglest/files/win32_deps.7z/download

Thanks

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #5 on: 6 April 2010, 03:46:58 »
Hi,softcoder! Today, I build (SVN inside the windows version of glest code) Windows version of the source code when it came to a trouble, please help me, thank you!
Error message:
2> auto_test.cpp2> Compiling resources ...2> Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.02> Copyright (C)

Microsoft Corporation. All rights reserved.2> is the link ...2> fatal error C1047: object or library file ". \ Release \
By the way: I am using the latest win32_deps, but the problem still occurs, please help me!

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #6 on: 6 April 2010, 04:16:50 »
sorry I'm not sure what auto_test.cpp2 is as thats not a file checked into SVN. Did you change files in your project Tom?

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #7 on: 6 April 2010, 06:24:54 »
Not auto_test.cpp2 file but auto_test.cpp file

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #8 on: 6 April 2010, 06:28:09 »
I use the operating system is Vista Home Premium, I VS2008.NET installed on this system, I would like to know what operating system you are compiling under???

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #9 on: 6 April 2010, 06:29:59 »
I'm compiling on Windows XP. If you want help compiling you will need to give me the exact copy / paste errors you get from Visual Studio.

Thanks

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #10 on: 6 April 2010, 06:48:35 »
Your system is XPSP2 you??? I have come to notice the error, you can look at:

2> auto_test.cpp 2> Compiling resources ...  2> Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.02> Copyright (C)

Microsoft Corporation. All rights reserved. 2> is the link ...  2> fatal error C1047: object or library file ". \ Release \

glest_game \ auto_test.obj "is used to create other objects than with the old compiler, the compiler created; please

rebuild old objects and libraries  2> LINK: fatal error LNK1257: code generation failed2> Build log was saved at "file: / /

e: \ untitled folder 2 \ trunk \ mk \ windoze \ Release \ glest_game \ BuildLog.htm "2> glest_game - 1 error, 69

warnings ========== Build: 1 succeeded, 1 failed, the latest 0, 0 skipped ==========

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #11 on: 6 April 2010, 06:50:20 »
The main error message:

glest_game \ auto_test.obj "is used to create other objects than with the old compiler, the compiler created; please

rebuild old objects and libraries

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #12 on: 6 April 2010, 07:07:40 »
Try doing a Rebuild Solution

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #13 on: 6 April 2010, 07:56:11 »
Yes, I tried to re-build the solution, but the error still occurs! Thank you!
« Last Edit: 6 April 2010, 08:28:08 by tom123 »

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #14 on: 6 April 2010, 08:40:08 »
I replaced the system, XP SP2, re-compiled, the problem still occurs, I re-build the solution, but the result was this error message appears, please help me, thank you!

Error message:
------ Build started: Project: glest_game, Configuration: Release Win32 ------

Is the link ...

fatal error C1047: object or library file ". \ Release \ glest_game \ auto_test.obj" is used to create other objects than with the old compiler, the compiler created; please rebuild old objects and libraries

LINK: fatal error LNK1257: code generation failed

Build log saved in the "file: / / e: \ 2010406game \ trunk \ mk \ windoze \ Release \ glest_game \ BuildLog.htm"

glest_game - 1 error, 0 warnings

========== Build: 4 succeeded, 1 failed, the latest 0, 0 skipped ==========
« Last Edit: 6 April 2010, 08:43:02 by tom123 »

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Windows version of the code compile trouble
« Reply #15 on: 6 April 2010, 09:08:03 »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #16 on: 6 April 2010, 09:16:42 »
NO, the code is compiled glest problems! Thank you!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Windows version of the code compile trouble
« Reply #17 on: 6 April 2010, 09:23:12 »
softcoder changed the sound implementation for the windows version. By this the dependencies doesn't fit any more and this may cause compile errors for you.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #18 on: 6 April 2010, 09:31:18 »
titi, then how do I do??? I would like to be the solution, thank you!

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Windows version of the code compile trouble
« Reply #19 on: 6 April 2010, 14:26:39 »
New win32_dependencies are on sf.. uploaded last night.

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #20 on: 7 April 2010, 00:19:01 »
Hi, Softcoder! Where is win32_dependencies??? Please tell me! I did not find!

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #22 on: 7 April 2010, 00:37:19 »
Hi, Softcoder! To ask: is the latest win32_dependencies??? Please tell me!

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #23 on: 7 April 2010, 00:47:38 »
I replaced the system, XP SP2, re-compiled, the problem still occurs, I re-build the solution, but the result was this error message appears, please help me, thank you!

Error message:
------ Build started: Project: glest_game, Configuration: Release Win32 ------

Is the link ...

fatal error C1047: object or library file ". \ Release \ glest_game \ auto_test.obj" is used to create other objects than with the old compiler, the compiler created; please rebuild old objects and libraries

LINK: fatal error LNK1257: code generation failed

Build log saved in the "file: / / e: \ 2010406game \ trunk \ mk \ windoze \ Release \ glest_game \ BuildLog.htm"

glest_game - 1 error, 0 warnings

========== Build: 4 succeeded, 1 failed, the latest 0, 0 skipped ==========

How to solve this problem???

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: Windows version of the code compile trouble
« Reply #24 on: 7 April 2010, 01:18:31 »
Please help me! Softcoder!

 

anything