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:
- anyrpc[core]:x64-windows → 2020-01-13#2 – D:/Home/Github/QField/vcpkg/overlay\anyrpc
- atlmfc[core]:x64-windows → 0#1
- boost-assert[core]:x64-windows → 1.81.0
- boost-build[core]:x64-windows → 1.81.0
- boost-config[core]:x64-windows → 1.81.0
- boost-container[core]:x64-windows → 1.81.0
- boost-container-hash[core]:x64-windows → 1.81.0
- boost-core[core]:x64-windows → 1.81.0
- boost-describe[core]:x64-windows → 1.81.0
- boost-intrusive[core]:x64-windows → 1.81.0
- boost-modular-build-helper[core]:x64-windows → 1.81.0
- boost-move[core]:x64-windows → 1.81.0
- boost-mp11[core]:x64-windows → 1.81.0
- boost-predef[core]:x64-windows → 1.81.0
- boost-smart-ptr[core]:x64-windows → 1.81.0
- boost-static-assert[core]:x64-windows → 1.81.0
- boost-throw-exception[core]:x64-windows → 1.81.0
- boost-type-traits[core]:x64-windows → 1.81.0
- boost-uninstall[core]:x64-windows → 1.81.0
- boost-vcpkg-helpers[core]:x64-windows → 1.81.0#1
- boost-winapi[core]:x64-windows → 1.81.0
- brotli[core]:x64-windows → 1.0.9#4
- bzip2[core,tool]:x64-windows → 1.0.8#3
- curl[core,non-http,schannel,ssl,sspi]:x64-windows → 7.86.0#2
- double-conversion[core]:x64-windows → 3.2.1
- egl-registry[core]:x64-windows → 2022-09-20
- exiv2[core,xmp]:x64-windows → 0.27.5#1 – D:/Home/Github/QField/vcpkg/overlay\exiv2
- expat[core]:x64-windows → 2.5.0#3
- freeglut[core]:x64-windows → 3.4.0
- freetype[brotli,bzip2,core,png,zlib]:x64-windows → 2.12.1#3
- freexl[core]:x64-windows → 1.0.6#1
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 - geos[core]:x64-windows → 3.11.1
- giflib[core]:x64-windows → 5.2.1#3
- gsl[core]:x64-windows → 2.7.1#1
- harfbuzz[core]:x64-windows → 6.0.0
- hdf5[core,cpp,szip,zlib]:x64-windows → 1.12.2#5
- icu[core]:x64-windows → 72.1
- jasper[core,default-features,opengl]:x64-windows → 4.0.0
- json-c[core]:x64-windows → 2019-09-10#2 – D:/Home/Github/QField/vcpkg/overlay\json-c
- lerc[core]:x64-windows → 4.0
- libgeotiff[core]:x64-windows → 1.7.1#1
- libiconv[core]:x64-windows → 1.16#13 – D:/Home/Github/QField/vcpkg/overlay\libiconv
- libkml[core]:x64-windows → 1.3.0#10
- libspatialindex[core]:x64-windows → 1.9.3#3
- libspatialite[core,freexl,geocallbacks]:x64-windows → 5.0.1#9
- libxml2[core]:x64-windows → 2.10.3
- libzip[bzip2,core,default-aes,wincrypto]:x64-windows → 1.9.2
- minizip[core]:x64-windows → 1.2.13
- netcdf-c[core,dap,hdf5,nczarr,netcdf-4,platform-default-features]:x64-windows → 4.8.1#2
- nlohmann-json[core]:x64-windows → 3.11.2
nu-book-zxing-cpp[core]:x64-windows → 2.0.0 - opengl[core]:x64-windows → 2022-12-04
- opengl-registry[core]:x64-windows → 2022-09-29
- pcre2[core]:x64-windows → 10.40#1
- pkgconf[core]:x64-windows → 1.8.0#4
- poly2tri[core]:x64-windows → 2022-08-11 – D:/Home/Github/QField/vcpkg/overlay\poly2tri
- poppler[core,font-configuration,private-api,zlib]:x64-windows → 22.8.0#1
- proj[core,net,tiff]:x64-windows → 9.1.1
- protobuf[core]:x64-windows → 3.21.12
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-activeqt[core]:x64-windows → 5.15.8
- qt5-base[core]:x64-windows → 5.15.8
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-graphicaleffects[core]:x64-windows → 5.15.8
- qt5-imageformats[core]:x64-windows → 5.15.8
qt5-location[core]:x64-windows → 5.15.8
qt5-multimedia[core]:x64-windows → 5.15.8 - qt5-quickcontrols[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-svg[core]:x64-windows → 5.15.8
- qt5-tools[core]:x64-windows → 5.15.8
qt5-webview[core]:x64-windows → 5.15.8 - qt5-winextras[core]:x64-windows → 5.15.8
- qtkeychain[core,translations]:x64-windows → 0.13.2#1 – D:/Home/Github/QField/vcpkg/overlay\qtkeychain
sentry-native[core]:x64-windows → 0.5.3#1
spix[core]:x64-windows → dev – D:/Home/Github/QField/vcpkg/overlay\spix - szip[core]:x64-windows → 2.1.1#9
- uriparser[core]:x64-windows → 0.9.7
- vcpkg-pkgconfig-get-modules[core]:x64-windows → 2022-02-10#1
- vcpkg-tool-meson[core]:x64-windows → 0.63
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):
Failed to download file with error: 1
If you use a proxy, please check your proxy setting. Possible causes are:
1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
to `https://address:port`. This is not correct, because `https://` prefix
claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
, etc..) is an HTTP proxy. Try setting `http://address:port` to both
HTTP_PROXY and HTTPS_PROXY instead.
2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
Change `http=address:port;https=address:port` to `address`, and fill the port number.
3. Your proxy's remote server is out of service.
In future vcpkg releases, if you are using Windows, you no longer need to set
HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
and (https://github.com/microsoft/vcpkg-tool/pull/77)
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
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
and vcpkg update
.
Then check for known issues at:
GitHub · Where software is built
You can submit a new issue at:
Sign in to GitHub · GitHub
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.
Imported from GitHub discussion by @DrawQuick on 2023-03-29T20:26:33Z