Author Topic: [invalid] Compilation problem  (Read 2724 times)

discodowney

  • Guest
[invalid] Compilation problem
« on: 4 August 2010, 13:21:16 »
So ive deonladed MegaGlest and unzipped the dependencies in the source folder.
Ive opened the project and tried to compile. I get an error saying:

fatal error LNK1181: cannot open input file 'libglest.lib'

I cant find where that is even in the code.
I have a libglest.lib object at C:\Users\Downey\College\Masters\MegaGlest Code\trunk\mk\windoze

Do i have to add it to the project?

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #1 on: 4 August 2010, 15:02:56 »
Did you following the instructions at:

https://forum.megaglest.org/index.php?topic=5303.0

discodowney

  • Guest
Re: Compilation problem
« Reply #2 on: 5 August 2010, 13:16:33 »
Yeah thats what i was following.

I have all the code, and i have the dependencies folder unzipped in my source folder. When i do a build/rebuild i get that error.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #3 on: 5 August 2010, 13:26:08 »
You can try building sub projects from the bottom to the top and see if each one builds. libglest is one of the projects in the list.

discodowney

  • Guest
Re: Compilation problem
« Reply #4 on: 5 August 2010, 14:57:18 »
The projects that fail are glest_configurator and libstreflop. I get the error above when i try to build them.

As a note when i build the others I get a lot of :

warning LNK4099: PDB 'vc90.pdb' was not found with 'libglest.lib' or at 'c:\Users\Downey\College\Masters\MegaGlest Code\trunk\data\glest_game\vc90.pdb'; linking object as if no debug info

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #5 on: 5 August 2010, 15:29:45 »
libstreflop is the first library what errors do you get for that project? Nothing else will build without it.

discodowney

  • Guest
Re: Compilation problem
« Reply #6 on: 6 August 2010, 13:21:02 »
The error im getting is the same as in the first post:

1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>LINK : fatal error LNK1181: cannot open input file 'libglest.lib'

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #7 on: 6 August 2010, 17:08:41 »
You are not building streflop by itself. This lib DOES NOT depend in libglestm, rather libglest depnds on it. Did you click ONLY on the streflop project do a build?

discodowney

  • Guest
Re: Compilation problem
« Reply #8 on: 1 September 2010, 13:24:07 »
Okay, sorry this took so long but ive had crazy laptop problems resulting in me getting a new one.

Ive compiled the code and im getting this same problem.

When i do right click on <sub_project>->Project Only->Rebuild Only <sub-project> i get the following:

libglest -> fine, no errors
glest_game -> fine, no errors
glest_editor -> fine, no errors
glest_configurator -> fine, no errors
g3d_viewer - fine, no errors.
libstreflop -> fine, no errors

But when i try to build the project im getting the following error (same as the original):

1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>LINK : fatal error LNK1181: cannot open input file 'libglest.lib'

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #9 on: 1 September 2010, 14:19:51 »
Quote
But when i try to build the project im getting the following error (same as the original):

1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>LINK : fatal error LNK1181: cannot open input file 'libglest.lib'

Which project? And Which version of Visual Studio are you using? And did you get the latest win32 deps from sourceforge? Also what mode are you building in (Release or Debug)

discodowney

  • Guest
Re: Compilation problem
« Reply #10 on: 1 September 2010, 14:28:43 »
Using Visual C++ 2008 Express Edition

glest_game is set as the Startup Project (i changed this a few times so this could be wrong but it definately wasnt working on the default option either)
EDIT: i press F7 to start a build, and thats the one that fails. Build solution its called in the build menu.

I got the deps yesterday from: https://sourceforge.net/projects/megaglest/files/win32_deps.7z/download

And i think im building in Debug mode. But not really sure and ive forgotten now how to check which im in.

discodowney

  • Guest
Re: Compilation problem
« Reply #11 on: 1 September 2010, 14:38:28 »
Sorry, in Release mode. Havent used this in a while so forgot the answer was staring me in the face when i open the thing up.

EDIT: I just finished a run again and its glest_configurator that fails when i build the whole solution. But when i rebuild it by itself When i do right click on glest_configurator ->Project Only->Rebuild Only glest_configurator i get no errors. Same with if i just right click the glest_configurator sub_project in the solution explorer and click rebuild.

It is only failing when i try to rebuild the whole solution.
« Last Edit: 1 September 2010, 14:49:58 by discodowney »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #12 on: 1 September 2010, 18:05:16 »
Do you have the latest service packs for VC 2008 express? I recall another user had problems and it was related to not having the latest service pakc for VS express 2008.

discodowney

  • Guest
Re: Compilation problem
« Reply #13 on: 2 September 2010, 12:06:43 »
service pack 1 comes with the download and ive just reinstalled everything and that installs fine. I cant find anymore SP's for this version of Visual C++. Ive tried compiling again and im still getting the same problem

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #14 on: 2 September 2010, 14:41:27 »
I don't know what to say. Theres at least 2 others that build using VS Express 2008 with no problem as well as me (making 3 that I know of). I always do a build solution (or rebuild solution when required). But I can also build projects individually also without problem.

patz

  • Guest
Re: Compilation problem
« Reply #15 on: 2 September 2010, 15:53:21 »
maybe you can check the project property of glest_configurator, to see if the path of libglest.lib is in the linker's search scope.

i build the whole solution with vs2008 pro. several times, and never met such problem.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Compilation problem
« Reply #16 on: 2 September 2010, 17:00:22 »
Also the configurator is a mostly useless piece. You already have everything you need to work with the game if everything else builds.

 

anything