Prebuild Problem - Any help will be appreciated

Jul 12, 2009 at 8:16 AM
Edited Jul 12, 2009 at 8:26 AM

Here is my prebuild output. I'm sorry I don't really understand what it all means. So if you could please tell me what might be wrong I would be very grateful.

 

I did get the DirectX SDK just recently I think it's working right I don't know if I have to set up any environment variables for it though I couldn't find anything about that on google. Other than that I'm pretty sure I have those 3 things installed correctly, I uninstalled 3.1 and installed 3.0 before posting and I get the same error either way.

 

OH and just to double check all I did was Unzip and double clicked the batch file, Is that correct???

I also tried changing the paths in the prebuild batch file to the absolute paths but that failed also. But instead of not found it says label syntax is incorrect when I do it that way.(Probably cause it's looking for classes not files)

 

-----------------------------------------------------
-----------------------------------------------------
-
- This process will prebuild xen (DEBUG) for XNA 3.0.
-
- A VisualStudio CustomTool plugin will be installed,
- which may prompt for admin rights in Windows Vista.
-
- Please report any bugs you find - and of course
- I greatly appreciate all feedback, good or bad!
-
- Thank you :-)
-
-----------------------------------------------------
-----------------------------------------------------

Press any key to continue . . .

Prebuilding xen for XNA GS 3.0 (This may take a minute or so...)

Building xen Shader System

Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.3053]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\build_ss.sln : error MSB4126:
 The specified solution configuration "Release|MCD" is invalid. Please specify
a valid solution configuration using the Configuration and Platform properties
(e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or
 leave those properties blank to use the default solution configuration.

Register Visual Studio Custom Tool
The system cannot find the path specified.
Building Xen.Ex Shaders
Building Xen.Ex Filters FX
The system cannot find the path specified.
Building Xen.Ex Graphics2D FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Shaders FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Material FX
The system cannot find the path specified.
Building Xen.Ex Material FX (Blending)
The system cannot find the path specified.
Building Xen.Ex Material FX (Instancing)
The system cannot find the path specified.
Building Xen.Ex Gpu Particle Core FX
The system cannot find the path specified.
Building Xen.Ex Gpu Particle 2D Display FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Gpu Particle 3D Display FX
The system cannot find the path specified.
The system cannot find the path specified.
Building Tutorials.Tutorial_03 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_09 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_16 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_25 FX
The system cannot find the path specified.
Building Xen and Xen.Ex DEBUG
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.3053]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 7/12/2009 2:06:17 AM.
Project "C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\prebuild.sln" on nod
e 0 (Rebuild target(s)).
C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\prebuild.sln : error MSB4126:
 The specified solution configuration "Debug|MCD" is invalid. Please specify a
valid solution configuration using the Configuration and Platform properties (e
.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or l
eave those properties blank to use the default solution configuration.
Done Building Project "C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\prebui
ld.sln" (Rebuild target(s)) -- FAILED.


Build FAILED.

"C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\prebuild.sln" (Rebuild targe
t) (1) ->
(ValidateSolutionConfiguration target) ->
  C:\Caleb\Workspaces\XNALibraries\xen\prebuild\sln\prebuild.sln : error MSB412
6: The specified solution configuration "Debug|MCD" is invalid. Please specify
a valid solution configuration using the Configuration and Platform properties
(e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or
 leave those properties blank to use the default solution configuration.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.03

-----------------------------------
-----------------------------------
- If part of the prebuild failed,
- Check the following are installed:
-
- .NET Framework 3.5
- XNA Game Studio 3.0
- DirectX SDK
-----------------------------------
-----------------------------------

-----------------------------------
- To get started, open:
- ./xen/Tutorials.sln
-----------------------------------

Press any key to continue . . .

 

 

Thank you for any help.

Coordinator
Jul 12, 2009 at 11:47 PM

Hi. Do you have Visual C# Express or any version of visual studio 2008 installed? (This is needed to build and run XNA/xen code)
The problem looks like it cannot build the project in debug mode, which would suggest you do not have a .Net SDK installed (which comes with visual studio).

Jul 14, 2009 at 9:59 PM

Yes I have C# Express. I've been able to compile XNA code.

Coordinator
Jul 16, 2009 at 1:30 PM
Edited Jul 16, 2009 at 1:31 PM

I guess I didn't read the error report properly the first time...
Sorry about that. And I apologize for taking an age to reply..

I've looked into this properly, and I'm still totally stumped as to why it's happening. However, looking up on the web there does appear to be a solution to the problem.

What I've read, is that to fix this problem in most cases, you can force MSBuild to use the "Any CPU" platform.
However, XNA requires the build to always be x86. (x64 binaries are not provided). And I'd swear x86 is currently set for all projects....
So, forcing x86 in the command line, in theory, should fix the build.

Open up prebuild.bat in notepad (make sure word wrap is off..), then there is a line quite early on that look like this:

%SYSTEMROOT%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release /p:Optimize=true /p:DebugSymbols=false /verbosity:minimal .\xen\prebuild\sln\build_ss.sln

To fix it, add in the following configuration switch:

 /p:Platform="x86"

So something like:

 %SYSTEMROOT%\Microsoft.NET\Framework\v3.5\MSBuild.exe /p:Configuration=Release  /p:Platform="x86" /p:Optimize=true /p:DebugSymbols=false /verbosity:minimal .\xen\prebuild\sln\build_ss.sln

There is also a second MSBuild task,  near the end of the file, that looks like this:

%SYSTEMROOT%\Microsoft.NET\Framework\v3.5\MSBuild.exe /t:Rebuild .\xen\prebuild\sln\prebuild.sln

Do the same to it, so something like:

%SYSTEMROOT%\Microsoft.NET\Framework\v3.5\MSBuild.exe /t:Rebuild /p:Platform="x86" .\xen\prebuild\sln\prebuild.sln

I *hope* that fixes the problem.
It's odd, because I'm quite sure I've checked all the projects to make sure they are all internally set to x86. Creating XNA projects defaults to x86, unless I've messed something up somewhere.

 

 

Jul 23, 2009 at 1:45 PM

i'm getting issues too, but im getting totally diffrent errors?

 


-----------------------------------------------------
-----------------------------------------------------
-
- This process will prebuild xen (DEBUG) for XNA 3.0.
-
- A VisualStudio CustomTool plugin will be installed,
- which may prompt for admin rights in Windows Vista.
-
- Please report any bugs you find - and of course
- I greatly appreciate all feedback, good or bad!
-
- Thank you :-)
-
-----------------------------------------------------
-----------------------------------------------------

Press any key to continue . . .

Prebuilding xen for XNA GS 3.0 (This may take a minute or so..

Building xen Shader System

Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: .\xen\prebuild\sln\build_ss.sln

Register Visual Studio Custom Tool
The system cannot find the path specified.
Building Xen.Ex Shaders
Building Xen.Ex Filters FX
The system cannot find the path specified.
Building Xen.Ex Graphics2D FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Shaders FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Material FX
The system cannot find the path specified.
Building Xen.Ex Material FX (Blending)
The system cannot find the path specified.
Building Xen.Ex Material FX (Instancing)
The system cannot find the path specified.
Building Xen.Ex Gpu Particle Core FX
The system cannot find the path specified.
Building Xen.Ex Gpu Particle 2D Display FX
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Building Xen.Ex Gpu Particle 3D Display FX
The system cannot find the path specified.
The system cannot find the path specified.
Building Tutorials.Tutorial_03 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_09 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_16 FX
The system cannot find the path specified.
Building Tutorials.Tutorial_25 FX
The system cannot find the path specified.
Building Xen and Xen.Ex DEBUG
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.4016]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: .\xen\prebuild\sln\prebuild.sln

Jul 23, 2009 at 2:52 PM

(BTW) i have XNA 3.0 (not 3.1), VS 2008 (not express), and DX SDK March 2009

Jul 23, 2009 at 4:23 PM

never mind i fixed it!, Heres what i did:

  • changed directory to where i had the data (in my case) "cd E:\xensdk"
  • applyed the "/p:Platform="x86"" to both MSBUILD Lines
  • Compiled the ShaderSystem Solution in VS ( in the batch it gives me a dll, but nothing else, idk)
  • compiled the prebuild solution (just ModelInport and Particle system)
  • moved the bin to xen\bin
  • Compiled W/ Batch!
Coordinator
Jul 24, 2009 at 12:53 PM

It's good to know you got it working. However it's an odd error you were getting. The only point is the prebuild batch file has to be run from it's directory - if you opened up the command prompt and ran 'e:\xensdk\prebuild.bat', then the working directory would not be e:\xendsk, it would be the current directory you are in. The batch uses all relative paths, so doing that would cause it to break.