<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
Expected behavior Build successfully.
<!--- What behavior did you expect? -->
Actual behavior Hi all, Bitcoin fails to build on MSVC due to error MSB3073, the same problem also appeared in vs2019, I mentioned a same issue but it was closed. Could you help look?
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
error message 23>F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj(161,5): error MSB3073: The command "C:\Qt_static\bin\moc.exe "....\src\qt\bitcoinamountfield.cpp" -o .\QtGeneratedFiles\qt\bitcoinamountfield.moc" exited with code 3. 23>Done Building Project "F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj" (Rebuild target(s)) -- FAILED. detail log build (27).log
To reproduce
- set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
- git clone https://github.com/bitcoin/bitcoin F:\bitcoin\bitcoin
- cd F:\bitcoin\bitcoin\build_msvc
- py -3 msvc-autogen.py
- cd F:\bitcoin
- mkdir tools\vcpkg
- git clone https://github.com/microsoft/vcpkg F:\bitcoin\tools\vcpkg
- cd F:\bitcoin\tools\vcpkg
- bootstrap-vcpkg.bat 2>&1
- set path=%cd%;%path%
- vcpkg integrate install 2>&1
- cd F:\bitcoin\bitcoin\build_msvc
- msbuild /m /p:Platform=x64 /p:Configuration=Release bitcoin.sln /t:Rebuild 2>&1
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
System information VS version: VS2022(17.3.6) Operating system: windows server 2019 the commit of Bitcoin we use is 5174a13
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
