rexdex / recompiler

Xbox360 -> Windows executable converter
MIT License
1.64k stars 81 forks source link

Failed to compile recompiled code #30

Open Memorix101 opened 6 years ago

Memorix101 commented 6 years ago

When I try to recompile I get this error:

Executor: Running 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe "..\..\projects\xenon\dolphin\temp/code/autocode.vcxproj" /ds /t:build /verbosity:minimal /nologo /p:Platform=x64 /p:Configuration=Build' Run: D:\SourceTree\recompiler\projects\xenon\dolphin\temp\code\autocode.vcxproj(14,3): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Run: Process 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe' terminated with exit code 1 CodeGen: There were compilation errors Recompiler: Failed to compile recompiled code

icuruok commented 6 years ago

I also get a error when trying to recompile but nothing like the above issue.

Any XEX I attempt to recompile even the default dolphin XEX gives me the exact same errors.

[290.217][I]: Run: Project file contains ToolsVersion="17.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333. [292.775][I]: Run: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(507,5): error MSB8008: Specified platform toolset (v140) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\Users\icuruok\Desktop\xbox\.temp\default_0x9DE8A84CCE0A645A\cpp_msvc_debug\temp\code\autocode.vcxproj] [293.554][E]: Run: Process 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe' terminated with exit code 1 [293.647][E]: CodeGen: There were compilation errors [293.652][E]: Recompiler: Failed to compile recompiled code [294.402][E]: Process failed after 181.52s with exit code -2

What I dont get is why is it setting all the VC projects to use ToolsVersion="17.0" when this doesnt even exist yet. The highest it goes to is version 15.0 as of current date. There is no such thing as a ToolsVersion="17.0" as of now. So obvously it cant compile using a toolset version that doesnt even exist.

Then another thing I dont understand is it says in error log

Specified platform toolset (v140) is not installed or invalid

But that is my currently installed toolset version 14.0 yet it says its not installed or doesnt exist yet when I check in visual studio manually it claims its installed fine.

Any help resolving these issues would be grateful.

straightarrows commented 6 years ago

i am having a similar problem. I tried at first on VS17 and had no luck so now I'm trying with VS 2015.

  1. Installed the wxWidgets 3.1.0 tools. put the whole lib folder from that in dev\external\wxWidgets-3.1.0
  2. compiled solution recompile.sln
  3. got 10 errors Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\xinput1_3\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64 call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\d3dcompiler_46\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. host_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\xinput1_3\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64 call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\d3dcompiler_46\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. host_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\xinput1_3\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64 call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\d3dcompiler_46\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. host_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\xinput1_3\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64 call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\d3dcompiler_46\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. host_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\xinput1_3\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64 call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\d3dcompiler_46\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. host_core C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\wxWidgets-3.1.0\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. recompiler_tools C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\wxWidgets-3.1.0\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. recompiler_tools C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\wxWidgets-3.1.0\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. recompiler_tools C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB3073 The command " call C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master\dev\src..\external\wxWidgets-3.1.0\deploy.bat "C:\Users\Mark Vdovychenko\Desktop\wawmodtools\xexconverter\recompiler-master_bin\Debug\" Debug x64

:VCEnd" exited with code 1. recompiler_tools C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133

Severity Code Description Project File Line Suppression State Error MSB6006 "cmd.exe" exited with code 1. xenon_launcher C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 171

I am still able to run recompiler_tools but only after transferring many of the dlls to the Release folder. After running the tool on the default xex file I get an error (which I cannot pull up right now, since the application isn't running). Basically it runs for about 30 seconds then has a similar msbuild error as mentioned by OP. And of course compiler failed to compile recompiled code.