build problems (in fact, cant build at all)

Hello, i need your help badly...

Started to have some interests in mechcommander2 source codes about 5 days ago.

Downloaded and installed all files necessary ;Mechcommander 2 shared source code, Xna, Framework, etc...

Then i try to build the code...How do i do? i searched and finally found something:in visual express, there is a dos command...doesnt work. But, acessed with the shortcut in the start menu, it can be opened. Doing what is told in the webcasts, i type ''

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe C:\MechCommander2 Source\BuildProj\mechcommander2.proj

It doesnt work. Why? Cause (i think) DOS takes C:\Mechcommander as a command

Then, i rename the folder, deleting the space between mechcommander2 and source, and it work!!...finally, not..

the file .proj refers to a file in the source dorectory (but the upper directory is named with a space between the ''2'' and the ''s''

Just had to move the .proj file out of the directory (and rename the dir with a space)

doesnt work either, and now, i'm stuk: it says it cant find 3 .dll files. Cant open them in fact, then says: failed to build the project, or something like that

I know there is a way to build the code without the content (and i succeded in that one), but i want the contents and the codes

Could you help me?

Please, dont blame me: i started to talk and write in english a month ago, i know it a bit (in fact, a lot) messy, but i'm making efforts to get thatt better

TheBlackShadow

[1726 byte] By [TheBlackShadow] at [2008-2-28]
# 1

Do you a copy of VS 2005 installed? If your doing anything with MSBuild you should open up a Visual Studio Command promt. If you don't have this you can go to the command prompt and type:

C:\>SET PATH=%PATH%;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
C:\>cd C:\MechCommander 2 Source\BuildProj
C:\>msbuild MechCommander2.proj

That should work for you!


MichaelKlucher-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 2

Hi,

Nope, it didnt worked. It said: 'C:\' isn't reconized as an internal or external command...

I cant type exatly what it says, because i have a french version of windows (and VS 2005 installed in the same language)

Anyway, perhaps you know somebody that know french (or that you know it yourself):

'C:\' n'est pas reconnu en tant que commande interne ou externe, un programme excutable ou un fichier de commande.

Thanks in advance

TheBlackShadow

TheBlackShadow at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 3

Ah! If you have VS 2005 installed just run the Visual Studio 2005 Command propmt, again go to the C:\Mechcommander 2\BuildProj directory via that command prompt (You can do this part right?) then type the command:

msbuild MechCommander2.proj

That should be all you need to do.

P.S. Sorry about the C:\> stuff if that threw you off, I was just copying the command prompt (sorta)...

MichaelKlucher-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 4

look, i'm a newb. I dont know (or i just cant) go in C:\Mechcommander2 source\buildproj, cause it seem that the command prompt doesn't take spaces.

If i move the .proj file in the C:\ folder (no spaces),and type it's direct location (e.g. ''msbuild C:\mechcommander2.proj''), it work. But, 5 secons after, it says it cant open user.lib, tries 2 other times to open, then crashes, after 12 secons exatly

The file is in the visual studio folder.

Thanks in advance,

TheBlackShadow

TheBlackShadow at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 5

Did you try putting quotes around it?

cd "C:\MechCommander2 Source\"

As a tip to help you just type cd C:\Me and hit the tab key and it should autocomplete for you, keep hitting tab to cycle through the entries if something else comes up.

As for the other error is sounds like you're installation may be broken but I'll need the text of the error to know better about the problem you're having.

MichaelKlucher-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 6

Excuse me for late-responding, but i was on vacation :)

Thanks, i can navicate around easily with dos, but that wasnt the problem. Still dont work

Here's the error text:

Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:\Program Files\Microsoft Visual Studio 8\VC>cd "c:\MechCommander2 Source\buildproj"

C:\MechCommander2 Source\BuildProj>msbuild mechcommander2.proj
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.

Build started 2006-07-22 02:28:45.
__
Project "C:\MechCommander2 Source\BuildProj\mechcommander2.proj" (default target
s):

Target BuildCode:
dodate.exe "C:\MechCommander2 Source\\Source\code\version.h"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mc2res.vcproj" "Debug|Win32"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mclib\gosfx\gosfx.vcproj" "Debug|Wi
n32"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\gui\gui.vcproj" "Debug|Win32"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mclib\stuff\stuff.vcproj" "Debug|Wi
n32"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mclib\mlr\mlr.vcproj" "Debug|Win32"

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mclib\mclib.vcproj" "Debug|Win32"
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\Tools\aseconv\aseconv.vcproj" "Debu
g|Win32"
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\mechcmd2.vcproj" "Debug|Win32"
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\..\..\vc\vcpackages\v
cbuild.exe "C:\MechCommander2 Source\\Source\viewer\viewer.vcproj" "Debug|Win32"

LINK : fatal error LNK1181: cannot open input file 'user32.lib'
Done building target "BuildCode" in project "mechcommander2.proj" -- FAILED.

Done building project "mechcommander2.proj" -- FAILED.

Build FAILED.
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
0 Warning(s)
3 Error(s)

Time Elapsed 00:00:06.66

C:\MechCommander2 Source\BuildProj>

TheBlackShadow at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 7

By the way, i uninstalled the source codes, visual express c++ (and framework 2.0), and re-downloaded all the thing, but i get the same error(?)

Again, your help woulf be grateful!

TheBlackShadow

TheBlackShadow at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 8
I have Visual Studion 2006 and I cannot build nothing have of the corrections don't work at all and I cannot install the XNA. It says that it cannot find a copy of 2005 on my computer.. well doh I have 2006. And when I try to do a command line build I get an error MSB3428: Could not load the Visual C++ component "VCbuild.exe". To fix this, 1) install .Net Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.

I have 2006 and I did a search for VCbuild.exe it is not on my computer. I do have .Net Framework 2.0 installed and the last one depends on ifu have VCbuild.exe. So, I am stuck. Would I have to find Vcbuild.exe and dl it from somewhere and add that path to the path for my computer and then try to build it?

Toymaster at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 9
I am wondering if anyone has got the bik files to work. I cannot get the video to work with the actual build of MechCommander 2.
Toymaster at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 10
Do you know the answer? Anyone?
TheBlackShadow at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 11

Couple of questions going on so I'll try to pick them up with one reply:

TheBlackShadow: Did you install the platform SDK and move it to the proper folders as specified in the MechCommander 2 help file? (Hit F1 in the instance of Visual Studio XNA Build is installed and look for the MC2 help section)

Toymaster: To compile MechCommander 2 you must download Visual C++ Express 2005 (There is currently no 2006 edition) you can download it from: http://msdn.microsoft.com/vstudio/express/visualc/ you'll also need to follow the instructions for TheBlackShadow above. You can also look here to find out why Video does not work: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=503080&SiteID=1

Thanks, hope this helps.

MichaelKlucher-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 12
So, I have to uninstall Visual 6.0 or will they work together 5.0 and 6.0?
Toymaster at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 13
If by 5.0 you mean Visual C++ .NET 2005 Express (which is actually version 8.1 or thereabouts), then yes, they work fine installed together.
RichardFine at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 14
The link for why video won't work seems to be broken. Does anyone have the link or the explanation?
1radiation at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...