unable to compile

Monkey Targets Forums/Windows 8/unable to compile

pantson(Posted 2014) [#1]
Hi
I'm trying to compile the Clock sample that came with monkey v78h into Windows Phone 8 and Window 8.
I am running Windows 8 (x86)

I can compile successfully in XNA, Android and HTML but Windows 8 is causing me problems.
I have installed Visual Studio Express 2013 and Windows SDK (after getting these errors and still get same errors)

Windows 8 output
"C:/dev/bin/MonkeyXPro78h/bin/transcc_winnt" -target=Windows_8_Game -config=Debug -run "C:/dev/bin/MonkeyXPro78h/bananas/difference/clock/clock.monkey"
TRANS monkey compiler V1.68
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine version 4.0.30319.33440
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 22/05/2014 21:11:23.
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" (1) is building "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.csproj" (2) on node 1 (default targets).
C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.csproj(159,3): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.csproj" (default targets) -- FAILED.
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" (1) is building "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGameNative.vcxproj" (3) on node 1 (default targets).
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(1810,3): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGameNative.vcxproj]
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGameNative.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" (default target) (1) ->
"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.csproj" (default target) (2) ->
  C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.csproj(159,3): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.


"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGame.sln" (default target) (1) ->
"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGameNative.vcxproj" (default target) (3) ->
  C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(1810,3): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\WindowsXaml\v11.0\Microsoft.Windows.UI.Xaml.Cpp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_win8\MonkeyGameNative.vcxproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:00.20
TRANS FAILED: Error executing 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1
Done.


Windows Phone 8 output
"C:/dev/bin/MonkeyXPro78h/bin/transcc_winnt" -target=Windows_Phone_8_Game -config=Debug -run "C:/dev/bin/MonkeyXPro78h/bananas/difference/clock/clock.monkey"
TRANS monkey compiler V1.68
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine version 4.0.30319.33440
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 22/05/2014 21:03:31.
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.sln" (1) is building "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.csproj" (2) on node 1 (default targets).
Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.csproj" (2) is building "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.PhoneComponent.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
  Touching "Debug\MonkeyGame.PhoneComponent.unsuccessfulbuild".
FxCompile:
  fxc.exe /nologo /E"main" /T ps_4_0_level_9_3 /Fo "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\Debug\MonkeyGame.PhoneComponent\SimplePixelShader.cso" /Zi SimplePixelShader.hlsl 
TRACKER : error TRK0005: Failed to locate: "fxc.exe". The system cannot find the file specified. [C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.PhoneComponent.vcxproj]
  
  
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.PhoneComponent.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.csproj" (default targets) -- FAILED.
Done Building Project "C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.sln" (default target) (1) ->
"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.csproj" (default target) (2) ->
"C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.PhoneComponent.vcxproj" (default target) (3) ->
(FxCompile target) -> 
  TRACKER : error TRK0005: Failed to locate: "fxc.exe". The system cannot find the file specified. [C:\dev\bin\MonkeyXPro78h\bananas\difference\clock\clock.buildv78h\winrt_winphone8\MonkeyGame.PhoneComponent.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.32
TRANS FAILED: Error executing 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1
Done.


has anyone seen this before? I'm struggling to find an answer
(fxc.exe and msbuild.exe are part of the SDK and exist on my HD)
many thanks in advance


pantson(Posted 2014) [#2]
getting closer

After loading the .sln file into Studio, I had to repoint my project.
Only then could I build in Visual Studio


pantson(Posted 2014) [#3]
Heres how I solved the above.
The errors in Monkey Output console threw me. Not sure if that is standard for everyone or its because I had 8.1 SDK installed.

If you open the sln file in into Visual Studio (found in .build/winrt dir)
Right click on each project and retarget to 8.1 Silverlight
Build device as ARM

Some of my issues were down to that I downloaded libs for Windows 8.1 and project built for 8.0
Retargeting sorted that