Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[icu:x64-windows] Build Error During Initial CMake Setup for QField on Windows #5889

Closed
AndresBerillo opened this issue Dec 10, 2024 · 3 comments

Comments

@AndresBerillo
Copy link

AndresBerillo commented Dec 10, 2024

Describe the issue

When executing the cmake command to prepare the QField environment for the first time on Windows, the process fails during the ICU build step with the error BUILD_FAILED. It occurs during the configuration or build process of x64-windows-rel.

Reproduction steps

Steps to reproduce the behavior:

  1. Clone the QField repository and prepare the vcpkg environment as instructed in the documentation.
  2. Run the following cmake command on a Windows machine:
    cmake -S QField -B build -D VCPKG_TARGET_TRIPLET=x64-windows-static -D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$<CONFIG:Debug>:Debug>" -D PKG_CONFIG_EXECUTABLE=build/vcpkg_installed/x64-windows-static/tools/pkgconf/pkgconf.exe -D VCPKG_INSTALL_OPTIONS="--x-buildtrees-root=C:/build"
    

Expected behavior

The command should successfully configure the project and build the necessary dependencies, including ICU, without any errors.

Observed behavior

The build process fails with the following error:

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: C:/dev/build/_deps/vcpkg-src/downloads/tools/msys2/d1518c5fb772aeb9/usr/bin/make.exe -j 9 --trace -f Makefile all
Working Directory: C:/dev/build/_deps/vcpkg-src/buildtrees/icu/x64-windows-rel/
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_make.cmake:136 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
ports/icu/portfile.cmake:100 (vcpkg_install_make)
scripts/ports.cmake:192 (include)

Screenshots and GIFs

No screenshots available; the error occurs in the console.

QGIS (please complete the following information)

-OS: Windows 10
-QGIS Version: Not applicable
-QFieldSync Version: Not applicable

QField (please complete the following information)

-Device: Not applicable
-OS: Not applicable
-QField version: Not applicable

Additional information

*Problem started happening recently, didn't happen in an older version of QField: Not applicable (first-time setup).
*Problem can be reliably reproduced, doesn't happen randomly: Yes.
*Problem happens with all files and projects, not only some files or projects: Not applicable.

@m-kuhn
Copy link
Member

m-kuhn commented Dec 11, 2024

You should have a few error logs (file paths printed in the output), these files will help to identify the problem.

@m-kuhn
Copy link
Member

m-kuhn commented Dec 11, 2024

Can you add -D VCPKG_HOST_TRIPLET="x64-windows-static" to the command?

@nirvn nirvn added the feedback label Dec 14, 2024
Copy link
Contributor

The QField project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale label Dec 29, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants