Game Development Community

Compile Error 9009

by Nicolai Dutka · in Torque X 3D · 01/26/2009 (11:03 am) · 11 replies

I have 1 error...

Error	1	The command """ -exportschema "myschema.txschema"" exited with code 9009.

I traced it back to my solution->Properties->Build Events
I have a Post-Build Event:
"$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"

Apparently the path is not valid. Can someone help me make this valid?

#1
01/26/2009 (5:18 pm)
Try changing the build event to look like this...

if "$(PlatformName)"=="x86" "$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"

John K.
www.envygames.com
#2
01/27/2009 (7:00 am)
That didn't work for me and what's REALLY puzzling is that I completely removed the post-build event and I am still getting the error listed above! The messed up part is that the error IS related to the post-build event! It's like it doesn't care that I removed it and wants to try anyway....
#3
01/27/2009 (7:13 am)
How can I be having the same error code:

Error	1	The command """ -exportschema "myschema.txschema"" exited with code 9009.	Fowl Prowl

If I completely removed the post-build event:
"$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"

???
#4
01/27/2009 (7:40 am)
Oh btw, here is the complete error code from my output window:


C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3109,13): error MSB3073: The command """ -exportschema "myschema.txschema"" exited with code 9009.


When I right click and choose 'go to', this is what I see:

<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />


When I go to solution properties and look at the $(PostBuildEvent), it looks fine. It gives the error even if I delete the event! (Yes, I save the files after deleting the event and before doing a build)

What I am not understanding is how the error can still occur even if the event is removed...
#5
01/27/2009 (8:37 am)
Try closing your game's VisualStudio project, then openning the .csproj file with Notepad. Look for the build event and either fix it or remove it manually. I've found a few cases where VisualStudio is not that good at retaining changes to the project file.

<Project>
  <PropertyGroup>
    <PostBuildEvent>if "$(PlatformName)"=="x86" 
"$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"
    </PostBuildEvent>
  </PropertyGroup>
</Project>

John K.
www.envygames.com
#6
01/27/2009 (9:23 am)
I've tried that John but get this, even with the post-event completely removed, I still get the EXACT same error. How can I have a post-event error when there is NO post-event!? :(
#7
01/27/2009 (9:37 am)
Very strange. Okay, looking a the error again. It seems to me that the $(TargetPath) property is blank and not being set by Visual Studio. We need to fix that. Back to Visual Studio, in project settings, Build tab, is there a value for "Output path", ideally set to:
bin\x86\Debug\

John K.
www.envygames.com
#8
01/27/2009 (12:22 pm)
yep. and mine says:

bin\x86\Release
#9
01/27/2009 (1:12 pm)
Are you comfortable emailing me your .csproj file (not all the code, just the .csproj)? I can browse through it to see if anything else looks fishy. I promise, your secrets are safe with me.

jkanalakis AT envygames.com

John K.
www.envygames.com
#10
01/27/2009 (4:31 pm)
I have to ask. It's not my project.
#11
11/25/2009 (2:30 am)
I know this is an old topic, I just got the error again trying to build the FPS project in v3.1.4.0, all I did was put brackets around the if statement and it works fine. If I take them out I get an error again.

if ("$(PlatformName)"=="x86") "$(TargetPath)" -exportschema "$(ProjectDir)myschema.txschema"