Building HandBrake from Source
Steps to reproduce the problem (If Applicable):
I have followed the Building HandBrake for Windows
https://handbrake.fr/docs/en/1.5.0/deve ... ndows.html
However there is NO documentation about building from source, only Cloning from GitHub
https://github.com/HandBrake/HandBrake.git using your git client.
Source code for the GUI resides in the win\CS folder and the solution file is named HandBrake.sln.
Make sure HandBrakeWPF is set as the startup project in the Solution Explorer by right-clicking the
name and selecting “Set as startup project”.
When I try to build from Source, following the directions except from cloning from GitHub as I have
the Source. I am building with Visual Studio 2022 Community IDE, I have installed the .NET desktop development
to build WPF, Windows Forms and console applications using the .NET Framework.
The build FAILS.
1. Download HandBrake Sourcecode
2. Extract HandBrake Sourcecode
3. Open Visual Studio 2022
4. Select the H:\HandBrake-1.5.1\win\CS\HandBrake.sln
I am prompted with:
5. I select OKUnsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- HandBrake.Installer, "H:\HandBrake-1.5.1\win\CS\HandBrake.Installer\HandBrake.Installer.wixproj"
No changes required
These projects can be opened in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- Solution Items, "Solution Items"
- HandBrake.Worker, "H:\HandBrake-1.5.1\win\CS\HandBrake.Worker\HandBrake.Worker.csproj"
- HandBrake.Interop, "H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\HandBrake.Interop.csproj"
- HandBrakeWPF, "H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\HandBrakeWPF.csproj"
- HandBrake, "H:\HandBrake-1.5.1\win\CS\HandBrake.sln"
6. Set HandBrakeWPF as Startup project
7. Select HandBrakeWPF
8. Build HandBrakeWPF
9. Build Fails
Code: Select all
Build started...
1>------ Build started: Project: HandBrake.Interop, Configuration: Debug Any CPU ------
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeUtils.cs(371,10,371,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(194,10,194,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(172,10,172,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(276,10,276,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(285,10,285,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(239,10,239,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(294,10,294,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(320,10,320,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(250,10,250,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(380,10,380,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Interop\HandBrakeInstance.cs(426,10,426,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
1>H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\Utilities\JsonSettings.cs(21,65,21,81): warning SYSLIB0020: 'JsonSerializerOptions.IgnoreNullValues' is obsolete: 'JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull.'
1>HandBrake.Interop -> H:\HandBrake-1.5.1\win\CS\HandBrake.Interop\bin\Debug\HandBrake.Interop.dll
1>Done building project "HandBrake.Interop.csproj".
2>------ Build started: Project: HandBrakeWPF, Configuration: Debug Any CPU ------
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\ViewModels\StaticPreviewViewModel.cs(327,10,327,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\ViewModels\SummaryViewModel.cs(727,10,727,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(109,66,109,88): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(176,43,176,58): warning SYSLIB0014: 'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(183,68,183,90): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>Done building project "HandBrakeWPF_uffwktja_wpftmp.csproj".
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\ViewModels\StaticPreviewViewModel.cs(327,10,327,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\ViewModels\SummaryViewModel.cs(727,10,727,47): warning SYSLIB0032: 'HandleProcessCorruptedStateExceptionsAttribute' is obsolete: 'Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(109,66,109,88): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(176,43,176,58): warning SYSLIB0014: 'WebClient.WebClient()' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\Services\UpdateService.cs(183,68,183,90): warning SYSLIB0014: 'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
2>HandBrakeWPF -> H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\bin\Debug\HandBrake.dll
2>..\HandBrake.Worker\bin\Debug\*.*
2>The system cannot find the file specified.
2> 0 file(s) copied.
2>H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\HandBrakeWPF.csproj(175,5): error MSB3073: The command "copy ..\HandBrake.Worker\bin\Debug\*.* bin\Debug" exited with code 1.
2>Done building project "HandBrakeWPF.csproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Severity Code Description Project File Line Suppression State
Error MSB3073 The command "copy ..\HandBrake.Worker\bin\Debug\*.* bin\Debug" exited with code 1. HandBrakeWPF H:\HandBrake-1.5.1\win\CS\HandBrakeWPF\HandBrakeWPF.csproj 175
11. Oops! No F1 help match was found
HandBrake version (e.g., 1.0.0):
1.5.1
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows: Windows 10 Pro Version 21H2 OS build 19044.1889
Experience: Windows Feature Experience Pack 120.2212.4180.0
*nix: Operating System: Linux Mint 21
Kernel: Linux 5.15.0-41-generic
Architecture: x86-64
HandBrake Activity Log ***required*** (see [url=https://handbrake.fr/docs/en/latest/hel ... y-log.html]
Code: Select all
[b]NO Activity Log as Building![/b]