Replies: 3 comments 1 reply
-
Hi @DrawQuick The latest development documentation can be found here: https://github.com/opengisch/QField/blob/master/doc/dev.md in general it's easiest to just follow this (and provide feedback if any of the steps does not work) In general I would recommend to build for your desktop operating system first to be able to quickly iterate and debug. In your case this would be Windows. For building for Android, I would recommend using the docker based script first: https://github.com/opengisch/QField/blob/master/doc/dev.md#android you can probably use WSL2 or docker for Windows for this. In QtCreator, it's possible to open the CMakeLists.txt file of QField as project and select a build folder as created by the dev documentation. |
Beta Was this translation helpful? Give feedback.
-
@DrawQuick this looks like some packages for windows have outdated download links (in vcpkg). |
Beta Was this translation helpful? Give feedback.
-
Hi @m-kuhn /home/mark/Qt/Tools/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230: : error: CMake process exited with exit code 1.
For 2. above |
Beta Was this translation helpful? Give feedback.
-
Can someone provide the steps to setup QT Creator so that I can edit and compile the Qfield project. Installed Github desktop, I have checked out the repository to my local PC, Installed QT( QT Creator for Windows 10), installed GIT for Windows, Eclipse Temurin JDK, android-ndk-r25c ...?
Thank you
Update: So, I removed QT Creator for Windows and re-installed Chose Latest version 6.4 and selected Android and Desktop.
I then selected Create Project, selected Import Project template/ Git Clone, selected Choose.
Location Dialog:
Repository: https://github.com/opengisch/QField.git
Branch:
Path: D:\Github
Directory: Qfield
selected Recursive checkbox
Pressed Next
QT Creator downloaded repository
Pressed Configure in next Dialog
Selected "Android Qt 6.4.3 Clang arm64-v8a" and "Android Qt 6.4.3 Clang armeabi-v7a" from Auto-detected.
I then get these caution and error messages
"D:\Home\Github\build-QField-Android_Qt_6_4_3_Clang_arm64_v8a-Release.qtc\package-manager\auto-setup.cmake:153: warning: Qt Creator: vcpkg executable not found. Package manager auto-setup will be skipped. To disable this warning set QT_CREATOR_SKIP_VCPKG_SETUP to ON. D:/Home/Github/build-QField-Android_Qt_6_4_3_Clang_arm64_v8a-Release/.qtc/package-manager/auto-setup.cmake:208 (qtc_auto_setup_vcpkg) CMakeLists.txt:32 (project)"
"D:\Home\Github\QField\CMakeLists.txt:131: error: By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5", but CMake did not find one. Could not find a package configuration file provided by "Qt5" with any of the following names: Qt5Config.cmake qt5-config.cmake Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed."
👎 error: CMake process exited with exit code 1.
👎 error: CMake project configuration failed. No CMake configuration for build type "Release" found.
Edit: 2023.04.03
Uninstalled QT Creator 6.4 because of Caution and Error messages above
Installed QT Creator 5.15.2
This resulted in the above Caution message and the following error message
"D:\Qt\Tools\CMake_64\share\cmake-3.24\Modules\FindPackageHandleStandardArgs.cmake:230: error: Could NOT find QGIS (missing: QGIS_Core_LIBRARY QGIS_Analysis_LIBRARY QGIS_INCLUDE_DIR) D:/Qt/Tools/CMake_64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) cmake/FindQGIS.cmake:110 (find_package_handle_standard_args) CMakeLists.txt:142 (find_package)"
I have OSGeo4W installed. Not sure if the missing Libraries from QGis were included with OSGeo4W install or if I missed the option to install?
Edit: 2023.04.06
I think I found the problem with the build using QT Creator. I've attached a log file(see below) of the QT build and it appears to be an issue with downloading some files from 2 internet sites(https://mirror.bit.edu.cn/ and https://mirrors.sjtug.sjtu.edu.cn/). Not sure how to resolve this? Any suggestions.
Log File:
Detecting compiler hash for triplet x64-windows...
The following packages will be built and installed:
gdal[core,curl,default-features,expat,geos,gif,hdf5,iconv,jpeg,lerc,libkml,libspatialite,libxml2,lzma,netcdf,openjpeg,openssl,pcre2,png,poppler,postgresql,qhull,recommended-features,sqlite3,webp,zstd]:x64-windows -> 3.6.2#1
nu-book-zxing-cpp[core]:x64-windows -> 2.0.0
qca[core]:x64-windows -> 2.3.4#2 -- D:/Home/Github/QField/vcpkg/overlay\qca
qgis[core]:x64-windows -> current -- D:/Home/Github/QField/vcpkg/overlay\qgis
qt5-charts[core]:x64-windows -> 5.15.8
qt5-connectivity[core]:x64-windows -> 5.15.8
qt5-declarative[core]:x64-windows -> 5.15.8
qt5-location[core]:x64-windows -> 5.15.8
qt5-multimedia[core]:x64-windows -> 5.15.8
qt5-quickcontrols2[core]:x64-windows -> 5.15.8
qt5-sensors[core]:x64-windows -> 5.15.8
qt5-serialport[core]:x64-windows -> 5.15.8
qt5-webview[core]:x64-windows -> 5.15.8
sentry-native[core]:x64-windows -> 0.5.3#1
spix[core]:x64-windows -> dev -- D:/Home/Github/QField/vcpkg/overlay\spix
Additional packages (*) will be modified to complete this operation.
Restored 0 package(s) from C:\Users\Gazoo\AppData\Local\vcpkg\archives in 4.485 ms. Use --debug to see more details.
Installing 1/86 libiconv:x64-windows...
Building libiconv[core]:x64-windows...
-- [OVERLAY] Loading triplet configuration from: D:\Home\Github\QField\vcpkg\triplets\x64-windows.cmake
-- Installing port from location: D:/Home/Github/QField/vcpkg/overlay\libiconv
-- Using cached libiconv-1.16.tar.gz.
-- Cleaning sources at D:/Home/Github/build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug/_deps/vcpkg-src/buildtrees/libiconv/src/1.16-b9a7bc6566.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Home/Github/build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug/_deps/vcpkg-src/downloads/libiconv-1.16.tar.gz
-- Applying patch 0002-Config-for-MSVC.patch
-- Applying patch 0003-Add-export.patch
-- Applying patch 0004-ModuleFileName.patch
-- Using source at D:/Home/Github/build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug/_deps/vcpkg-src/buildtrees/libiconv/src/1.16-b9a7bc6566.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Using cached msys-gzip-1.11-1-x86_64.pkg.tar.zst.
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
-- Using cached msys-autoconf-2.71-3-any.pkg.tar.zst.
-- Using cached msys-diffutils-3.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-binutils-2.37-5-x86_64.pkg.tar.zst.
-- Using cached msys-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys-file-5.41-2-x86_64.pkg.tar.zst.
-- Using cached msys-zlib-1.2.11-1-x86_64.pkg.tar.xz.
-- Using cached msys-libbz2-1.0.8-3-x86_64.pkg.tar.zst.
-- Using cached msys-coreutils-8.32-2-x86_64.pkg.tar.zst.
-- Using cached msys-grep-3.0-2-x86_64.pkg.tar.xz.
-- Using cached msys-sed-4.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-libpcre-8.45-1-x86_64.pkg.tar.zst.
-- Using cached msys-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake-wrapper-11-4-any.pkg.tar.zst.
-- Using cached msys-gawk-5.1.0-2-x86_64.pkg.tar.zst.
-- Using cached msys-mpfr-4.1.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-gmp-6.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys-libreadline-8.1.001-1-x86_64.pkg.tar.zst.
-- Using cached msys-ncurses-6.2-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake1.16-1.16.3-3-any.pkg.tar.zst.
-- Using cached msys-perl-5.32.1-2-x86_64.pkg.tar.zst.
-- Using cached msys-libcrypt-2.1-3-x86_64.pkg.tar.zst.
-- Using cached msys-pkg-config-0.29.2-4-x86_64.pkg.tar.zst.
-- Using cached msys-make-4.3-3-x86_64.pkg.tar.zst.
-- Using cached msys-findutils-4.8.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-libintl-0.21-1-x86_64.pkg.tar.zst.
-- Using cached msys-libiconv-1.16-2-x86_64.pkg.tar.zst.
-- Using cached msys-gcc-libs-11.2.0-3-x86_64.pkg.tar.zst.
-- Downloading https://repo.msys2.org/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst -> msys-msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
Downloading https://repo.msys2.org/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
Downloading https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst
error: Failed to download from mirror set
error: https://repo.msys2.org/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirror.yandex.ru/mirrors/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirrors.ustc.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: WinHttpSendRequest failed with exit code 12007
error: https://mirror.bit.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: WinHttpSendRequest failed with exit code 12007
error: https://mirror.selfnet.de/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
error: https://mirrors.sjtug.sjtu.edu.cn/msys2/msys/x86_64/msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst: failed: status code 404
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(956):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 15 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 25940 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 13.97 s (13939056 us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_acquire_msys.cmake:26 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:67 (z_vcpkg_acquire_msys_download_package)
scripts/cmake/vcpkg_acquire_msys.cmake:345 (z_vcpkg_acquire_msys_declare_package)
scripts/cmake/vcpkg_configure_make.cmake:207 (vcpkg_acquire_msys)
D:/Home/Github/QField/vcpkg/overlay/libiconv/portfile.cmake:29 (vcpkg_configure_make)
scripts/ports.cmake:147 (include)
error: building libiconv:x64-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with
git pull
andvcpkg update
.Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libiconv
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libiconv]+Build+error
Include '[libiconv] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-12-14-7ae0d8527fb488fde10a89c2813802dc9b03b6f9
vcpkg-scripts version: e69dd972b 2023-01-20 (3 months ago)
Please use the prefilled template from D:\Home\Github\build-QField-Desktop_x86_windows_msvc2022_pe_64bit-Debug\vcpkg_installed\vcpkg\issue_body.md when reporting your issue.
Beta Was this translation helpful? Give feedback.
All reactions