mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.39k stars 1.26k forks source link

Mixxx failed to build with error MSB8066 with MSVC on Windows target ARM64EC #13519

Open spacelg opened 1 month ago

spacelg commented 1 month ago

Bug Description

Hi,

Mixxx failed to build with error MSB8066 with MSVC on Windows target ARM64EC, it can reproduce on latest version on main branch. Could you please help look at this issue? Thanks in advance.

Repro steps:

  1. Open VS2022 amd64 cmd.
  2. git clone https://github.com/mixxxdj/mixxx.git C:\gitP\mixxxdj\mixxx
  3. cd /d C:\gitP\mixxxdj\mixxx\tools
  4. windows_buildenv.bat setup
  5. cd /d C:\gitP\mixxxdj\mixxx\build
  6. cmake -G "Visual Studio 17 2022" -A ARM64EC -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DCMAKE_TOOLCHAIN_FILE=C:\gitP\mixxxdj\mixxx\buildenv\mixxx-deps-2.5-x64-windows-06fe9b5\scripts\buildsystems\vcpkg.cmake ..
  7. msbuild /m /p:Platform=ARM64EC /p:Configuration=Release mixxx.sln /t:Rebuild

Error log: build_arm64ec.log

Error info: 83>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\gitP\mixxxdj\mixxx\build\CMakeFiles\008ea1e9984ad2992816340c869662b8\mixxx-qml-lib_qmllint_module.rule;C:\gitP\mixxxdj\mixxx\CMakeLists.txt' exited with code -1. [C:\gitP\mixxxdj\mixxx\build\mixxx-qml-lib_qmllint_module.vcxproj] 83>Done Building Project "C:\gitP\mixxxdj\mixxx\build\mixxx-qml-lib_qmllint_module.vcxproj" (Rebuild target(s)) -- FAILED.

Version

7a3c5151a3a3eb286bbc6c30f48b649dc41ce567

OS

Windows Server 2022 Datacenter

daschuer commented 1 month ago

windows_buildenv.bat will download the vcpkg environment for AMD 64. This is probably not compatible with ARM64EC.

You need probably build the vcpkg environment yourself. Not sure how dificult it will be.

The other think is that our windows_buildenv.bat should fail early with similar information in the error message. Do you have interest to contribute that as Pull request?

daschuer commented 1 month ago

Just started a build, let's watch how it proceed: https://github.com/daschuer/vcpkg/actions/runs/10161740018

daschuer commented 1 month ago

Building brotli is failing: https://github.com/daschuer/vcpkg/actions/runs/10162433762/job/28103098217

So it looks like there is quite a bit to do to make it build.

What is the device you are using?

JoergAtGithub commented 1 month ago

ARM64EC support for Qt is not official yet: https://www.qt.io/blog/qt-for-windows-on-arm-may21-update