TRANS Failed
Monkey Targets Forums/Desktop/TRANS Failed
| ||
Hi Community Didnt touch Monkey for 2 Weeks, now installed 38 and when i want to compile anything with GWFL i get: TRANS Failed to execute '"C:/Program Files (x86)/MonkeyPro38/bin/makemeta_winnt" "C:/Program Files (x86)/MonkeyPro38/bananas/Richard_Betson/mirror_fx_transform/mirror_fx_transform.build/glfw/vc2010/Debug/data" "C:/Program Files (x86)/MonkeyPro38/bin/meta.txt"', return code=1 Das aktuelle Verzeichnis ist ungltig. (Means ~ The current Directory is invalid) Whats wrong? It worked before :( |
| ||
"Translating readfile "C:/Program Files (x86)/MonkeyPro38/bin/trans_winnt" -target=glfw -run C:/Users/ozzi/Documents/MonkeyCode/readfile.monkey TRANS monkey compiler V1.09 Parsing... Semanting... Translating... Building... Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.225] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 18.05.2011 21:25:30. Project "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets). ValidateSolutionConfiguration: Building solution configuration "Debug|win32". Project "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.sln" (1) is building "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets). InitializeBuildStatus: Touching "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild". ClCompile: All outputs are up-to-date. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"../bdwgc/libatomic_ops-1.2/src" /I../bdwgc/include /I../stb /I../openal/include /I../glfw/include /I../glfw/lib /I../glfw/lib/win32 /ZI /nologo /W0 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHsc /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp main.cpp c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2202): error C2143: syntax error : missing ';' before '.' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2202): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2205): error C2143: syntax error : missing ';' before '{' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2205): error C2447: '{' : missing function header (old-style formal list?) [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2213): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] No constructor could take the source type, or constructor overload resolution was ambiguous c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2213): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] No constructor could take the source type, or constructor overload resolution was ambiguous c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2218): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] No constructor could take the source type, or constructor overload resolution was ambiguous c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2224): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] No constructor could take the source type, or constructor overload resolution was ambiguous c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2493): error C3861: 'openfile': identifier not found [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] Done Building Project "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED. Done Building Project "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED. Build FAILED. "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) -> "C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) -> (ClCompile target) -> c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2202): error C2143: syntax error : missing ';' before '.' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2202): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2205): error C2143: syntax error : missing ';' before '{' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2205): error C2447: '{' : missing function header (old-style formal list?) [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2213): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2213): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2218): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2224): error C2440: 'type cast' : cannot convert from 'int' to 'FILE' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] c:\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2493): error C3861: 'openfile': identifier not found [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj] 0 Warning(s) 9 Error(s) Time Elapsed 00:00:01.93 TRANS Failed to execute 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug;Platform="win32" MonkeyGame.sln', return code=1 Process Complete " |
| ||
Have you set the pathes correctly in the config.winnt.txt again? Because that's usally overwritten as well. Plus just delete any old build folders. |
| ||
Duh.. i forgot about that.. Anyway the Path was correct, still the same error. I also deleted the gwfl build folders Ideas? ":\users\ozzi\documents\monkeycode\readfile.build\glfw\main.cpp(2202): error C2143: syntax error : missing ';' before '.' [C:\Users\ozzi\Documents\MonkeyCode\readfile.build\glfw\vc2010\MonkeyGame.vcxproj]" And so on and so on. Somethings fckd up i guess :( |
| ||
Just tried on a different PC, also Win7. Newest Monkey 39 and installed Visual C 2010 Express from the Visual Studio 2010 Express ISO. I found the MSBuild and edited it into config.winnt.txt. Then tried to Build & Ran a Sample (simple_verlet_physics) and got: (html5 works fine though..) Translating simple_verlet_physics "C:/Program Files (x86)/Monkey/bin/trans_winnt" -target=glfw -run "C:/Program Files (x86)/Monkey/bananas/Richard_Betson/simple_verlet_physics/simple_verlet_physics.monkey" TRANS monkey compiler V1.10 Parsing... Semanting... Translating... Building... Microsoft (R)-Buildmodul, Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.225] Copyright (C) Microsoft Corporation 2007. Alle Rechte vorbehalten. Der Buildvorgang wurde am 19.05.2011 08:57:38 gestartet. Projekt "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.sln" auf Knoten "1" (Standardziele). ValidateSolutionConfiguration: Die Projektmappenkonfiguration "Debug|win32" wird erstellt. Das Projekt "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.sln" (1) erstellt "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.vcxproj" (2) auf Knoten "1" (Standardziele). C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.vcxproj(18,3): error MSB4019: Das importierte Projekt "C:\Microsoft.Cpp.Default.props" wurde nicht gefunden. Vergewissern Sie sich, dass der Pfad in der <Import>-Deklaration korrekt und die Datei auf dem Datentrger vorhanden ist. Die Erstellung des Projekts "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER. Die Erstellung des Projekts "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.sln" ist abgeschlossen (Standardziele) -- FEHLER. Fehler beim Buildvorgang. "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.sln" (Standardziel) (1) -> "C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.vcxproj" (Standardziel) (2) -> C:\Program Files (x86)\Monkey\bananas\Richard_Betson\simple_verlet_physics\simple_verlet_physics.build\glfw\vc2010\MonkeyGame.vcxproj(18,3): error MSB4019: Das importierte Projekt "C:\Microsoft.Cpp.Default.props" wurde nicht gefunden. Vergewissern Sie sich, dass der Pfad in der <Import>-Deklaration korrekt und die Datei auf dem Datentrger vorhanden ist. 0 Warnung(en) 1 Fehler Verstrichene Zeit 00:00:00.71 TRANS Failed to execute 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug;Platform="win32" MonkeyGame.sln', return code=1 Process Complete PLEASE help me :( |
| ||
Puh strange. Just to check: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe does exist? Try to install Monkey to a path without spaces. Maybe "Program Files..." makes some trouble here, don't know. Could you please post your config.winnt.txt? |
| ||
The Exe exists, i double checked that ;) I moved the Monkey Folder directly to C:\ same problem. Here the Config (pretty standard) '-------------------- 'HTML player path. ' 'Must be set for HTML5 target support. ' HTML_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'Ant build tool path ' 'Must be set to a valid dir for ANDROID target support ' ANT_PATH="${SYSTEMDRIVE}\apache-ant-1.8.2" ANT_PATH="${SYSTEMDRIVE}\ant" '-------------------- '-------------------- 'MinGW path. ' 'Must be set to a valid dir for STDCPP target support. ' MINGW_PATH="${SYSTEMDRIVE}\MinGW" '-------------------- '-------------------- 'Java dev kit path ' 'Must be set to a valid dir for ANDROID and FLASH target support ' JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_23" JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_21" JDK_PATH="${PROGRAMFILES}\Java\jdk1.6.0_19" '-------------------- '-------------------- 'Android SDK and tool paths. ' 'Must be set to a valid for for ANDROID target support ' ANDROID_PATH="${SYSTEMDRIVE}\android-sdk-windows" '-------------------- '-------------------- 'Flex SDK and flash player path. ' 'Must be set for FLASH target support. ' FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1.0.16076" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.1" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0.0.14159" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4.0" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk_4" FLEX_PATH="${SYSTEMDRIVE}\flex_sdk" FLASH_PLAYER="${TRANSDIR}\mserver_winnt.exe" '-------------------- '-------------------- 'MSBUILD path. ' 'Must be set for XNA and GLFW target support. ' MSBUILD_PATH="C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" '-------------------- This is getting really demotivating.. Thanks 4 your help Xaron! |
| ||
Dude that's rather strange. It's absolutely 100% not a problem with Monkey but with Visual Studio and/or .NET. Ok, let's go ahead. Open regedit and open the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\4.0\VCTargetsPath What value does the key VCTargetsPath have? It should have something like "$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\" If this is set, then it SHOULD work. If it is set and it (obviously doesn't work), set this environment variable (Control Panel \ System -> Advanced System Settings): Variable: VCTargetsPath Value: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\V4.0\ ..or whatever your path for MSBuild is. Wäre doch gelacht, wenn wir das nicht hinbekommen! ;) |
| ||
That Key is there and the Path is "$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\". Anyway my path for MSBuild is "C:\Windows\Microsoft.NET\Framework\v4.0.30319\" so i set it as a Env Variable. And dude... its working! WTH thats weird... Changing only the Reg Key doesnt do anything. Having the Reg key "$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\" And the Env Variable to the Installed Path of MSBuild works. Thanks a lot! Grüsse :) |
| ||
Still having some kinda Issue. Executing Sampels give me "TRANS Failed to execute '"C:/Program Files (x86)/MonkeyPro38/bin/makemeta_winnt" "C:/Program Files (x86)/MonkeyPro38/bananas/difference/champagne/champagne.build/glfw/vc2010/Debug/data" "C:/Program Files (x86)/MonkeyPro38/bin/meta.txt"', return code=1" If i Copy it into a new Tab it works splendid. Where does Monkey cache all that old Stuff? Thx |
| ||
Hmm... Don't know. Actually I just have ONE MonkeyPro installation folder where I extract all new Monkey versions in to. It might be not a good idea to have several different versions of Monkey installed? Hmm... |
| ||
You should be able to have any number of Monkey versions installed - probably a good idea to always keep the previous version anyway. I'd say it's a permissions issue. Try putting your MonkeyProXX folder at the root level ie. c:\ or d:\. Under Vista/Seven you have no permissions to write into the program files folder. I'm running under Seven 64bit myself and have no problems here (i've got my Monkey running in my d: drive. |
| ||
Xaron yeah i first only had a Programm Files\Monkey Folder. Then only as a test i had the ..\Monkey38. No i have it on C:\Monkey\ and set the Permissions right, working perfectly with the Env Variable |
| ||
Great to hear that! Glad it worked. :) |