How to Setup QT Creator for Qfield

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.”

:-1: error: CMake process exited with exit code 1.

:-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:

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

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.
Most developers use Linux for their day to day workflows, so it might be better to switch to Linux where there’s much more knowledge around.

For building for Android, I would recommend using the docker based script first: QField/doc/dev.md at master · opengisch/QField · GitHub 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.


Imported from GitHub comment by @m-kuhn on 2023-04-04T07:04:53Z

DrawQuick this looks like some packages for windows have outdated download links (in vcpkg).
You probably need Up vcpkg (gdal 3.6.3, sqlite 3.40.1, proj 9.2, etc.) by nirvn · Pull Request #4153 · opengisch/QField · GitHub


Imported from GitHub comment by @m-kuhn on 2023-04-12T07:05:25Z

I tried the CMakeLists.txt at #4153 and ended up with the following error

Build FAILED.

   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\install.vcxproj" (default target) (1) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\ALL_BUILD.vcxproj" (default target) (3) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\auth\awss3\authmethod_awss3.vcxproj" (default target) (4) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj" (default target) (7) ->
   (ClCompile target) -> 
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\providers\gdal\qgsgdalprovider.cpp(3265): warning C4701: potentially uninitialized local variable 'type' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\providers\ogr\qgsgeopackageproviderconnection.cpp(129,43): warning C4101: 'ex': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\qgsmaplayerutils.cpp(110,49): warning C4101: 'ex': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\qgstracer.cpp(568,26): warning C4101: 'e': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\browser\qgsfieldsitem.cpp(50,45): warning C4101: 'ex': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pal\labelposition.cpp(576,30): warning C4101: 'e': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pal\labelposition.cpp(304): warning C4702: unreachable code [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\raster\qgsrasterblock.cpp(228): warning C4701: potentially uninitialized local variable 'newDataType' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgspointcloudlayerexporter.cpp(120,33): warning C4101: 'cse': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgspointcloudlayerexporter.cpp(213,35): warning C4101: 'cse': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgspointcloudlayerexporter.cpp(411,37): warning C4101: 'cse': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\vectortile\qgsvectortilemvtdecoder.cpp(222,45): warning C4146: unary minus operator applied to unsigned type, result still unsigned [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\vectortile\qgsvectortilemvtdecoder.cpp(223,45): warning C4146: unary minus operator applied to unsigned type, result still unsigned [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\vectortile\qgsvectortilemvtdecoder.cpp(261,45): warning C4146: unary minus operator applied to unsigned type, result still unsigned [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\vectortile\qgsvectortilemvtdecoder.cpp(262,45): warning C4146: unary minus operator applied to unsigned type, result still unsigned [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\vlr.cpp(188,1): warning C4245: 'initializing': conversion from 'int' to 'uint64_t', signed/unsigned mismatch [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_nir14.cpp(85,43): warning C4805: '|': unsafe mix of type 'bool' and type 'int' in operation [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(216,9): warning C4068: unknown pragma 'GCC' [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(217,9): warning C4068: unknown pragma 'GCC' [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(219,9): warning C4068: unknown pragma 'GCC' [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(279,62): warning C4805: '|': unsafe mix of type 'int' and type 'bool' in operation [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(337,23): warning C4805: '|': unsafe mix of type 'bool' and type 'int' in operation [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(696,58): warning C4805: '|': unsafe mix of type 'int' and type 'bool' in operation [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\external\lazperf\detail\field_point14.cpp(757,52): warning C4805: '|': unsafe mix of type 'bool' and type 'int' in operation [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgseptdecoder.cpp(123): warning C4701: potentially uninitialized local variable 'xAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgseptdecoder.cpp(124): warning C4701: potentially uninitialized local variable 'yAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(576,27): warning C4101: 'e': unreferenced local variable [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(662): warning C4701: potentially uninitialized local variable 'xAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(550): warning C4701: potentially uninitialized local variable 'xAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(550): warning C4701: potentially uninitialized local variable 'xAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(551): warning C4701: potentially uninitialized local variable 'yAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(551): warning C4701: potentially uninitialized local variable 'yAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\pointcloud\qgslazdecoder.cpp(663): warning C4701: potentially uninitialized local variable 'yAttributeOffset' used [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]


   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\install.vcxproj" (default target) (1) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\ALL_BUILD.vcxproj" (default target) (3) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\auth\awss3\authmethod_awss3.vcxproj" (default target) (4) ->
   "D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj" (default target) (7) ->
   (ClCompile target) -> 
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\qgstessellator.cpp(25,10): fatal  error C1083: Cannot open include file: 'poly2tri.h': No such file or directory [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\mesh\qgsmesheditor.cpp(26,10): fatal  error C1083: Cannot open include file: 'poly2tri.h': No such file or directory [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\mesh\qgstopologicalmesh.cpp(23,10): fatal  error C1083: Cannot open include file: 'poly2tri.h': No such file or directory [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\mesh\qgsmeshadvancedediting.cpp(20,10): fatal  error C1083: Cannot open include file: 'poly2tri.h': No such file or directory [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]
     D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\src\nal-3_30_1-727f9eba21.clean\src\core\mesh\qgsmeshforcebypolylines.cpp(20,10): fatal  error C1083: Cannot open include file: 'poly2tri.h': No such file or directory [D:\Home\Github\bQF64bitR\_deps\vcpkg-src\buildtrees\qgis\x64-windows-rel\src\core\qgis_core.vcxproj]

33 Warning(s)
5 Error(s)

Imported from GitHub comment by @DrawQuick on 2023-04-18T04:08:43Z

Hi m-kuhn
I have setup development on Linux Mint. I successfully compiled QGIS based on the documentation but I cannot do the same for Qfield. I get the following errors
/home/mark/dev/build-QField-Desktop_Qt_6_6_2_GCC_64bit-Debug/.qtc/package-manager/auto-setup.cmake:153:
1.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. /home/mark/dev/build-QField-Desktop_Qt_6_6_2_GCC_64bit-Debug/.qtc/package-manager/auto-setup.cmake:208 (qtc_auto_setup_vcpkg) CMakeLists.txt:32 (project)

/home/mark/Qt/Tools/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230:
2. error: Could NOT find QGIS (missing: QGIS_INCLUDE_DIR) /home/mark/Qt/Tools/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) cmake/FindQGIS.cmake:110 (find_package_handle_standard_args) CMakeLists.txt:146 (find_package)

: error: CMake process exited with exit code 1.

  1. : error: CMake project configuration failed. No CMake configuration for build type “Debug” found.

For 2. above
I tried adding a variable “QGIS_INCLUDE_DIR /home/mark/dev/cpp/QGIS/src/core” in the Build Environment. That didn’t work
It worked for previous error messages and I set a variable “QGIS_Analysis_LIBRARY /home/mark/dev/cpp/QGIS/build-master/output/lib”
and “QGIS_Core_LIBRARY /home/mark/dev/cpp/QGIS/build-master/output/lib”
Any ideas how to fix this? Thanks


Imported from GitHub comment by @DrawQuick on 2024-03-01T19:28:21Z

I’m encountering the same issue. There does not appear to be Debug build type in CMakeLists.txt