Fail building CGAL with cmake on windows - c++

the error code:
C:\dev\CGAL-4.8.1\build>cmake ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:12 (cmake_policy):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
== Setting paths ==
-- Build CGAL from release in directory CGAL-4.8.1
-- Packagenames: CGAL-4.8.1
== Setting paths (DONE) ==
== Generate version files ==
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=8
-- CGAL_BUGFIX_VERSION=1
-- CGAL_SONAME_VERSION=11
-- CGAL_SOVERSION =11.0.2
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Visual Leak Detector (VLD) is not found.
-- Targetting Visual Studio 16 2019
-- Target build enviroment supports auto-linking
-- Using VC14 compiler.
-- Generator uses intermediate configuration directory: $(Configuration)
-- USING CMake version: 3.24.0
-- System: Windows
== Generate version files (DONE) ==
== Set up flags ==
-- Build type: Release
-- USING CXXFLAGS = '/DWIN32 /D_WINDOWS /W3 /GR /EHsc -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS /fp:strict /fp:except- /wd4503 /bigobj /MD /O2 /Ob2 /DNDEBUG'
-- USING LDFLAGS = '/machine:x64 /INCREMENTAL:NO'
== Set up flags (DONE) ==
== Detect external libraries ==
-- External libraries supported: GMP;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
-- UseGMP-file:
-- GMP include: C:/dev/CGAL-4.8.1/auxiliary/gmp/include
-- GMP libraries: C:/dev/CGAL-4.8.1/auxiliary/gmp/lib/libgmp-10.lib
-- GMP definitions:
-- USING GMP_VERSION = '5.0.1'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
-- UseMPFR-file:
-- MPFR include: C:/dev/CGAL-4.8.1/auxiliary/gmp/include
-- MPFR libraries: C:/dev/CGAL-4.8.1/auxiliary/gmp/lib/libmpfr-4.lib
-- MPFR definitions:
-- USING MPFR_VERSION = '3.0.0'
-- Boost include: D:/geometry_lib/boost_1_61_0
-- Boost libraries:
-- Boost definitions:
-- USING BOOST_VERSION = '1.61.0'
== Detect external libraries (DONE) ==
== Write compiler_config.h ==
-- Performing Test CGAL_CFG_BOOST_VARIANT_SWAP_BUG - Failed
-- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success
-- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Failed
-- Performing Test CGAL_CFG_IEEE_754_BUG - Success
-- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_6 - Failed
-- Performing Test CGAL_CFG_MATCHING_BUG_7 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_8 - Success
-- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Success
-- Performing Test CGAL_CFG_NO_LIMITS - Success
-- Performing Test CGAL_CFG_NO_NEXTAFTER - Success
-- Performing Test CGAL_CFG_NO_STL - Success
-- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success
-- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success
-- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success
-- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success
-- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success
== Write compiler_config.h (DONE) ==
== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
libCGAL is configured
-- Sources for CGAL component library 'CGAL_Core' detected
Configuring libCGAL_Core
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Core is configured
-- Sources for CGAL component library 'CGAL_ImageIO' detected
Configuring libCGAL_ImageIO
-- OpenGL include:
-- OpenGL libraries: opengl32;glu32
-- WARNING: ZLIB found but could not compile print_ZLIB_version.cpp:
-- ZLIB_INCLUDE_DIR=C:/msys64/mingw64/include
-- ZLIB_LIBRARIES=C:/msys64/mingw64/lib/libz.dll.a
-- ZLIB_LIBRARIES_DIR=
-- Change Dir: C:/dev/CGAL-4.8.1/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe cmTC_88d6d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30145 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
print_ZLIB_version.cpp
cl /c /IC:\msys64\mingw64\include /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D
_SCL_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D _SCL_SECURE_NO_WARNINGS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:strict /fp:except- /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_88d6d.dir\Debug\\" /Fd"cmTC_88d6d.dir\Debug\vc142.pdb" /external:W3 /Gd /TP /wd4503 /errorReport:queue /bigobj "C:\dev\CGAL-4.8.1\config\support\print_ZLIB_version.cpp"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(61,26): warning C4083: expected ')'; found identifier '_VCRUNTIME_DISABLED_WARNINGS' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(111,1): warning C4005: '_CRT_STRINGIZE': macro redefinition [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\_mingw.h(293): message : see previous definition of '_CRT_STRINGIZE' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(114,1): warning C4005: '_CRT_WIDE': macro redefinition [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\_mingw.h(298): message : see previous definition of '_CRT_WIDE' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(155,1): warning C4005: '__CRTDECL': macro redefinition [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\_mingw.h(405): message : see previous definition of '__CRTDECL' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(310,1): warning C4005: '_CRT_DEPRECATE_TEXT': macro redefinition [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\_mingw.h(356): message : see previous definition of '_CRT_DEPRECATE_TEXT' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(351,51): error C2065: 'uintptr_t': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(351,61): error C2146: syntax error: missing ')' before identifier '_StackCookie' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(352,67): error C2065: 'uintptr_t': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(352,77): error C2146: syntax error: missing ')' before identifier '_StackCookie' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(356,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(356,18): error C2146: syntax error: missing ';' before identifier '__security_cookie' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\corecrt.h(75,53): error C2378: 'uintptr_t': redefinition; symbol cannot be overloaded with a typedef [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime.h(356): message : see declaration of 'uintptr_t' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\yvals.h(13,1): warning C4005: '_CPPLIB_VER': macro redefinition [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\yvals_core.h(556): message : see previous definition of '_CPPLIB_VER' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,5): error C2065: '__asm__': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,13): error C2146: syntax error: missing ';' before identifier '__volatile__' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,35): error C2143: syntax error: missing ')' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,13): error C3861: '__volatile__': identifier not found [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,35): error C2143: syntax error: missing ';' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,35): error C2059: syntax error: ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(209,57): error C2059: syntax error: ')' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,5): error C2065: '__asm__': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,13): error C2146: syntax error: missing ';' before identifier '__volatile__' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,35): error C2143: syntax error: missing ')' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,13): error C3861: '__volatile__': identifier not found [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,35): error C2143: syntax error: missing ';' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,35): error C2059: syntax error: ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(220,57): error C2059: syntax error: ')' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,5): error C2065: '__asm__': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,13): error C2146: syntax error: missing ';' before identifier '__volatile__' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,35): error C2143: syntax error: missing ')' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,13): error C3861: '__volatile__': identifier not found [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,35): error C2143: syntax error: missing ';' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,35): error C2059: syntax error: ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(231,57): error C2059: syntax error: ')' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1157,7): error C2065: '__asm__': undeclared identifier [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1157,15): error C2146: syntax error: missing ';' before identifier '__volatile__' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1158,11): error C2143: syntax error: missing ')' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1157,15): error C3861: '__volatile__': identifier not found [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1158,11): error C2143: syntax error: missing ';' before ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1158,11): error C2059: syntax error: ':' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\math.h(1158,45): error C2059: syntax error: ')' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(148,115): error C2061: syntax error: identifier 'uintptr_t' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(388,16): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(389,16): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(391,16): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(396,27): error C2144: syntax error: 'int' should be preceded by ';' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(396,50): warning C4091: '__declspec(noreturn)': ignored on left of 'int' when no variable is declared [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(398,54): error C2381: '_Exit': redefinition; 'noreturn' differs [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(396): message : see declaration of '_Exit' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(399,6): error C3861: '_exit': identifier not found [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(405,16): error C2059: syntax error: '__declspec(noreturn)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(499,18): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(500,17): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(502,23): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(505,25): error C2059: syntax error: '__declspec(nothrow)' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(683,70): error C2144: syntax error: 'int' should be preceded by ';' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(683,95): warning C4091: '': ignored on left of 'int' when no variable is declared [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(685,49): error C2144: syntax error: 'int' should be preceded by ';' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(685,74): warning C4091: '': ignored on left of 'int' when no variable is declared [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(686,56): error C2144: syntax error: 'int' should be preceded by ';' [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\stdlib.h(686,81): warning C4091: '': ignored on left of 'int' when no variable is declared [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
C:\msys64\mingw64\include\malloc.h(82,10): fatal error C1083: Cannot open include file: 'mm_malloc.h': No such file or directory [C:\dev\CGAL-4.8.1\CMakeFiles\CMakeTmp\cmTC_88d6d.vcxproj]
-- USING ZLIB_VERSION = 'unknown'
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_ImageIO is configured
-- Sources for CGAL component library 'CGAL_Qt5' detected
Configuring libCGAL_Qt5
CMake Deprecation Warning at src/CGAL_Qt5/CMakeLists.txt:4 (cmake_policy):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- libCGAL_Qt5 is missing the dependencies: Qt5OpenGL Qt5Svg Qt5 cannot be configured.
-- Sources for CGAL component libraries 'CGAL_Core;CGAL_ImageIO;CGAL_Qt5' detected
== Generating build files (DONE) ==
-- Configuring done
-- Generating done
-- Build files have been written to: C:/dev/CGAL-4.8.1
First, please forgive my poor English, thx guys.
I install the CGAL lib through using the CGAL-4.8.1-Setup.exe got from github and following the step on the CGAM manual
I want to install the lib and get the dynamic lib with suffix .dll, but something gets wrong when I use cmake .., and it seems like I could not solve them by myself.
I already install gmp and mpfr and boost, and also add their directory into PATH, or as system variable, so I don't know what wrong with it.I can't get a makefile through using cmake .. in the dir build.
My aim is to get the dynamic lib CGAL-vc140-mt-gd-4.8.1.dll

Related

DirectX CMake includes break Windows.h

When i try to include the DirectX SDK directory into my Project using CMake, the header files in windows.h throw errors when i try to #include <windows.h> (no directx header are included before).
commands i use to generate/compile:
cmake -S . -B build -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug
cd build
nmake
CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project( NisPaper )
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
IF( EXISTS "${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json" )
EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json
)
ENDIF()
ADD_LIBRARY(NisPaperLibs
gdimanager.cpp
gdirenderer.cpp
d3dmanager.cpp
winmanager.cpp
d3drenderer.cpp
)
add_executable( NisPaper main.cpp )
target_link_libraries(NisPaper NisPaperLibs)
target_link_libraries(NisPaper gdiplus.lib)
target_link_libraries(NisPaper gdi32.lib)
target_link_libraries(NisPaper user32.lib)
target_link_libraries(NisPaper Dwmapi.lib)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
target_link_libraries( NisPaper ${OpenCV_LIBS} )
#This line causes the errors
include_directories("C:/Program Files (x86)/Microsoft DirectX SDK (March 2008)/Include")
errors:
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6184): error C2061: syntax error: identifier '__RPC__out_xcount_part'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6188): error C2061: syntax error: identifier '__RPC__in_xcount_full'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6392): error C2061: syntax error: identifier '__RPC__out_xcount_part'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6396): error C2061: syntax error: identifier '__RPC__in_xcount_full'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6600): error C2061: syntax error: identifier '__RPC__out_xcount_part'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidlbase.h(6604): error C2061: syntax error: identifier '__RPC__in_xcount_full'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14536): error C2061: syntax error: identifier '__RPC__inout_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14537): error C2061: syntax error: identifier '__RPC__in_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14541): error C2061: syntax error: identifier '__RPC__inout_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14542): error C2061: syntax error: identifier '__RPC__in_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14546): error C2061: syntax error: identifier '__RPC__inout_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14547): error C2061: syntax error: identifier '__RPC__in_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14551): error C2061: syntax error: identifier '__RPC__inout_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14552): error C2061: syntax error: identifier '__RPC__in_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14556): error C2061: syntax error: identifier '__RPC__inout_xcount'
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\objidl.h(14557): error C2061: syntax error: identifier '__RPC__in_xcount'
And many more...
I thought this would happen because the DirectX includes override something when they are loaded in before and/or are prioritized over the windows headers, so i tried replacing the line with one of these:
include_directories(BEFORE "C:/Program Files (x86)/Microsoft DirectX SDK (March 2008)/Include")
include_directories(AFTER "C:/Program Files (x86)/Microsoft DirectX SDK (March 2008)/Include")
include_directories(BEFORE SYSTEM "C:/Program Files (x86)/Microsoft DirectX SDK (March 2008)/Include")
include_directories(AFTER SYSTEM "C:/Program Files (x86)/Microsoft DirectX SDK (March 2008)/Include")
but nothing changed.
I also tried including windows.h after some directX headers like d3d11.h d3dcompiler.h d3dcommon.h etc. hoping it would do something, but as expected nothing changed.
I would really appreciate some help, because i really don't know how i'm supposed to fix this...
The problem is that the legacy DirectX SDK contains a number of headers that are outdated, and conflict with the Windows SDK. In this case, when you included Windows.h it came from the Windows SDK, but then when that header looked for rcpsal.h it pulled the ancient copy out of the legacy DirectX SDK.
Header/library include order helps if you put the DXSDK at the end, but an even better solution is to (a) not use the legacy DirectX SDK at all per this blog post, or (b) if you must use it, trim down per this blog post.
See also Where is the DirectX SDK (2021 Edition)?.
The VCPkg version of the directxsdk port supports the 'trimmed-down' version. See this PR.

Curl static compilation problem (X509_NAME) on Windows with BoringSSL 1.1.0

I have a recent problem when I try to compile Curl static lib on windows with BoringSSL. The above commands where working fine 6 months ago, but with latest versions of Curl and BoringSSL I came into an issue in the nmake command.
What I'm doing:
call buildconf.bat
cd "winbuild"
set RTLIBCFG=static
set _CL_=-MTd -Ob0 -Od -Zi -FS
call nmake /NOLOGO /X - /F MakeFile.vc VC=16 mode=static MACHINE=x64 DEBUG=yes WITH_PREFIX="C:/cpplibs/Curl" WITH_SSL=static SSL_PATH="C:/cpplibs/BoringSSL" ENABLE_SSPI=yes ENABLE_IPV6=yes ENABLE_IDN=yes ENABLE_WINSSL=no
What I face with in console output:
Generating prerequisite files
* C:\cpplibs\Sources\Curl\latest\Makefile
* C:\cpplibs\Sources\Curl\latest\src\tool_hugehelp.c
configuration name: libcurl-vc16-x64-release-static-ssl-static-ipv6-sspi
cl /O2 /DNDEBUG /MT /DCURL_STATICLIB /I. /I ../lib /I../include /nologo /W4 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL /DUSE_OPENSSL /I"C:/cpplibs/BoringSSL" /DUSE_WIN32_IDN /DWANT_IDN_PROTOTYPES /DUSE_IPV6 /DUSE_WINDOWS_SSPI /Fo"..\builds\libcurl-vc16-x64-release-static-ssl-static-ipv6-sspi-obj-lib/altsvc.obj" ..\lib\altsvc.c
altsvc.c
... 100+ successfull calls
cl /O2 /DNDEBUG /MT /DCURL_STATICLIB /I. /I ../lib /I../include /nologo /W4 /EHsc /DWIN32 /FD /c /DBUILDING_LIBCURL /DUSE_OPENSSL /I"C:/cpplibs/BoringSSL" /DUSE_WIN32_IDN /DWANT_IDN_PROTOTYPES /DUSE_IPV6 /DUSE_WINDOWS_SSPI /Fo"..\builds\libcurl-vc16-x64-release-static-ssl-static-ipv6-sspi-obj-lib/vtls/openssl.obj" ..\lib\vtls\openssl.c
openssl.c
C:/cpplibs/BoringSSL/openssl/base.h(362): error C2059: syntax error: '<parameter-list>'
C:/cpplibs/BoringSSL/openssl/x509.h(154): error C2059: syntax error: '<parameter-list>'
C:/cpplibs/BoringSSL/openssl/x509.h(154): error C2143: syntax error: missing ')' before '('
C:/cpplibs/BoringSSL/openssl/x509.h(154): error C2059: syntax error: ')'
C:/cpplibs/BoringSSL/openssl/x509.h(154): error C2143: syntax error: missing ')' before 'constant'
C:/cpplibs/BoringSSL/openssl/x509.h(154): error C2091: function returns function
...
C:/cpplibs/BoringSSL/openssl/x509_vfy.h(508): error C2061: syntax error: identifier 'X509_STORE_get_lookup_crls'
C:/cpplibs/BoringSSL/openssl/x509_vfy.h(508): error C2059: syntax error: ';'
C:/cpplibs/BoringSSL/openssl/x509_vfy.h(508): error C2059: syntax error: '<parameter-list>'
C:/cpplibs/BoringSSL/openssl/x509_vfy.h(508): fatal error C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
So I've investigated, and all the errors at the indicated lines seems to have in common the X509_NAME typedef usage, but the definition is correct in openssl/base.h:
typedef struct X509_name_st X509_NAME;
And in openssl/x509.h:
struct X509_name_st {
STACK_OF(X509_NAME_ENTRY) * entries;
int modified; // true if 'bytes' needs to be built
BUF_MEM *bytes;
// unsigned long hash; Keep the hash around for lookups
unsigned char *canon_enc;
int canon_enclen;
} /* X509_NAME */;
Furthermore the file ..\lib\vtls\openssl.c in Curl lib includes <openssl/x509v3.h> that includes <openssl/x509.h> that includes <openssl/base.h> ... So everything should be OK, but it's not.
Is there something missing in my commands ?

Compilation errors on CGAL examples

I'm trying to install CGAL on my computer following the official guide:
After having installed CGAL and Qt5 with vcpkg, I've generated the VS solution via CMake as described. But now I'm facing the following errors when trying to build the solution in VS:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
2>------ Build started: Project: CGAL_Qt5_moc_and_resources, Configuration: Debug x64 ------
3>------ Build started: Project: adding_handles, Configuration: Debug x64 ------
4>------ Build started: Project: colored_face, Configuration: Debug x64 ------
5>------ Build started: Project: constrained, Configuration: Debug x64 ------
6>------ Build started: Project: constrained_hierarchy_plus, Configuration: Debug x64 ------
7>------ Build started: Project: constrained_plus, Configuration: Debug x64 ------
8>------ Build started: Project: copy_triangulation_2, Configuration: Debug x64 ------
9>------ Build started: Project: for_loop_2, Configuration: Debug x64 ------
2>Automatic MOC for target CGAL_Qt5_moc_and_resources
4>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
3>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
6>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
7>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
8>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
5>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
3>adding_handles.cpp
9>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
4>colored_face.cpp
7>constrained_plus.cpp
8>copy_triangulation_2.cpp
6>constrained_hierarchy_plus.cpp
9>for_loop_2.cpp
5>constrained.cpp
2>Generating ui_ImageInterface.h
2>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
2>mocs_compilation.cpp
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(23,46): error C2039: 'finite_face_handles': is not a member of 'CGAL::Triangulation_2<K,Tds>'
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(11): message : see declaration of 'CGAL::Triangulation_2<K,Tds>'
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(24,5): error C2065: 'f': undeclared identifier
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(24,23): error C2039: 'blue': is not a member of 'CGAL'
4>C:\vcpkg\installed\x64-windows\include\CGAL/Triangulation_face_base_with_info_2.h(32): message : see declaration of 'CGAL'
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(24,27): error C3861: 'blue': identifier not found
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(28,22): error C2039: 'red': is not a member of 'CGAL'
4>C:\vcpkg\installed\x64-windows\include\CGAL/Triangulation_face_base_with_info_2.h(32): message : see declaration of 'CGAL'
4>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\colored_face.cpp(28,25): error C3861: 'red': identifier not found
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,24): error C2039: 'Finite_vertex_handles': is not a member of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,24): error C2039: with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,24): error C2039: [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,24): error C2039: Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,24): error C2039: ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : see declaration of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(10,49): error C2146: syntax error: missing ';' before identifier 'Finite_vertex_handles'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(16,49): error C2825: 'Finite_vertex_handles': must be a class or namespace when followed by '::'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(16,32): error C2510: 'Finite_vertex_handles': left of '::' must be a class/struct/union
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(16,79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(16,49): error C2146: syntax error: missing ';' before identifier 'Finite_vertex_handles_iterator'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(34,35): error C2825: 'Finite_vertex_handles': must be a class or namespace when followed by '::'
4>Done building project "colored_face.vcxproj" -- FAILED.
10>------ Build started: Project: hierarchy, Configuration: Debug x64 ------
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(34,26): error C2510: 'Finite_vertex_handles': left of '::' must be a class/struct/union
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(35,42): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(35,42): error C2039: with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(35,42): error C2039: [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(35,42): error C2039: Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(35,42): error C2039: ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : see declaration of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2100: illegal indirection
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: 'initializing': cannot convert from 'iterator' to 'CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_2<GT,CGAL::Triangulation_ds_vertex_base_2<TDS2>>,CGAL::Default,CGAL::Default,CGAL::Default>,false>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: GT=K,
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: TDS2=CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<K,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<K,CGAL::Triangulation_ds_face_base_2<void>>>
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): error C2440: ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(37,26): message : No constructor could take the source type, or constructor overload resolution was ambiguous
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(42,51): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(42,51): error C2039: with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(42,51): error C2039: [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(42,51): error C2039: Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(42,51): error C2039: ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : see declaration of 'CGAL::Triangulation_2<K,CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<Gt,CGAL::Triangulation_ds_vertex_base_2<void>>,CGAL::Triangulation_face_base_2<Gt,CGAL::Triangulation_ds_face_base_2<void>>>>'
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : with
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : [
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : Gt=K
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(7): message : ]
9>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\for_loop_2.cpp(43,18): error C2065: 'vh': undeclared identifier
9>Done building project "for_loop_2.vcxproj" -- FAILED.
11>------ Build started: Project: info_insert_with_pair_iterator_2, Configuration: Debug x64 ------
11>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
10>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
5>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\constrained.cpp(25,42): error C2039: 'finite_edges': is not a member of 'CGAL::Constrained_Delaunay_triangulation_2<K,CGAL::Default,Itag>'
5>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\constrained.cpp(10): message : see declaration of 'CGAL::Constrained_Delaunay_triangulation_2<K,CGAL::Default,Itag>'
5>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\constrained.cpp(26,28): error C2065: 'e': undeclared identifier
11>info_insert_with_pair_iterator_2.cpp
10>hierarchy.cpp
5>Done building project "constrained.vcxproj" -- FAILED.
12>------ Build started: Project: info_insert_with_pair_iterator_regular_2, Configuration: Debug x64 ------
12>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
12>info_insert_with_pair_iterator_regular_2.cpp
8>copy_triangulation_2.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\copy_triangulation_2.exe
6>constrained_hierarchy_plus.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\constrained_hierarchy_plus.exe
11>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_2.cpp(31,51): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Delaunay_triangulation_2<K,Tds>'
11>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_2.cpp(9): message : see declaration of 'CGAL::Delaunay_triangulation_2<K,Tds>'
11>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_2.cpp(32,17): error C2065: 'v': undeclared identifier
11>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_2.cpp(32,38): error C2065: 'v': undeclared identifier
11>Done building project "info_insert_with_pair_iterator_2.vcxproj" -- FAILED.
13>------ Build started: Project: info_insert_with_transform_iterator_2, Configuration: Debug x64 ------
12>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_regular_2.cpp(34,52): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Regular_triangulation_2<K,Tds>'
12>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_regular_2.cpp(13): message : see declaration of 'CGAL::Regular_triangulation_2<K,Tds>'
12>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_regular_2.cpp(35,17): error C2065: 'v': undeclared identifier
13>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
12>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_pair_iterator_regular_2.cpp(35,38): error C2065: 'v': undeclared identifier
12>Done building project "info_insert_with_pair_iterator_regular_2.vcxproj" -- FAILED.
14>------ Build started: Project: info_insert_with_zip_iterator_2, Configuration: Debug x64 ------
15>------ Build started: Project: polygon_triangulation, Configuration: Debug x64 ------
13>info_insert_with_transform_iterator_2.cpp
2>qrc_CGAL.cpp
14>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
2>c1xx: fatal error C1083: Cannot open source file: 'C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\qrc_CGAL.cpp': No such file or directory
2>qrc_Input.cpp
2>c1xx: fatal error C1083: Cannot open source file: 'C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\qrc_Input.cpp': No such file or directory
2>qrc_File.cpp
2>c1xx: fatal error C1083: Cannot open source file: 'C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\qrc_File.cpp': No such file or directory
2>qrc_Triangulation_2.cpp
2>c1xx: fatal error C1083: Cannot open source file: 'C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\qrc_Triangulation_2.cpp': No such file or directory
2>Generating Code...
15>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
14>info_insert_with_zip_iterator_2.cpp
15>polygon_triangulation.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6006: "CL.exe" exited with code 2.
2>Done building project "CGAL_Qt5_moc_and_resources.vcxproj" -- FAILED.
16>------ Build started: Project: draw_triangulation_2, Configuration: Debug x64 ------
17>------ Build started: Project: polylines_triangulation, Configuration: Debug x64 ------
16>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
3>adding_handles.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\adding_handles.exe
17>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
16>draw_triangulation_2.cpp
17>polylines_triangulation.cpp
18>------ Build started: Project: print_cropped_voronoi, Configuration: Debug x64 ------
18>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
18>print_cropped_voronoi.cpp
10>hierarchy.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\hierarchy.exe
13>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_transform_iterator_2.cpp(44,51): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Delaunay_triangulation_2<K,Tds>'
13>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_transform_iterator_2.cpp(10): message : see declaration of 'CGAL::Delaunay_triangulation_2<K,Tds>'
13>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_transform_iterator_2.cpp(45,17): error C2065: 'v': undeclared identifier
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(67,50): error C2039: 'all_face_handles': is not a member of 'CGAL::Constrained_Delaunay_triangulation_2<K,TDS,Itag>'
14>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_zip_iterator_2.cpp(44,51): error C2039: 'finite_vertex_handles': is not a member of 'CGAL::Delaunay_triangulation_2<K,Tds>'
14>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_zip_iterator_2.cpp(10): message : see declaration of 'CGAL::Delaunay_triangulation_2<K,Tds>'
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(24): message : see declaration of 'CGAL::Constrained_Delaunay_triangulation_2<K,TDS,Itag>'
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(68,5): error C2065: 'f': undeclared identifier
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(108,49): error C2039: 'finite_face_handles': is not a member of 'CGAL::Constrained_Delaunay_triangulation_2<K,TDS,Itag>'
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(24): message : see declaration of 'CGAL::Constrained_Delaunay_triangulation_2<K,TDS,Itag>'
14>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_zip_iterator_2.cpp(45,17): error C2065: 'v': undeclared identifier
15>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polygon_triangulation.cpp(110,10): error C2065: 'f': undeclared identifier
14>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_zip_iterator_2.cpp(45,32): error C2065: 'v': undeclared identifier
15>Done building project "polygon_triangulation.vcxproj" -- FAILED.
19>------ Build started: Project: regular, Configuration: Debug x64 ------
7>constrained_plus.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\constrained_plus.exe
14>Done building project "info_insert_with_zip_iterator_2.vcxproj" -- FAILED.
20>------ Build started: Project: terrain, Configuration: Debug x64 ------
19>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
20>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
19>regular.cpp
20>terrain.cpp
21>------ Build started: Project: terrain_with_info, Configuration: Debug x64 ------
21>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
21>terrain_with_info.cpp
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(22,58): error C2039: 'vertices_in_constraint': is not a member of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(12): message : see declaration of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(23,18): error C2065: 'vh': undeclared identifier
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(31,38): error C2039: 'subconstraints': is not a member of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(12): message : see declaration of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(32,24): error C2065: 'sc': undeclared identifier
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(32,45): error C2065: 'sc': undeclared identifier
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(37,56): error C2039: 'contexts': is not a member of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(12): message : see declaration of 'CGAL::Constrained_triangulation_plus_2<CDT>'
17>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\polylines_triangulation.cpp(38,25): error C2065: 'c': undeclared identifier
22>------ Build started: Project: triangulation_prog1, Configuration: Debug x64 ------
13>C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\info_insert_with_transform_iterator_2.cpp(45,32): error C2065: 'v': undeclared identifier
22>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
13>Done building project "info_insert_with_transform_iterator_2.vcxproj" -- FAILED.
23>------ Build started: Project: voronoi, Configuration: Debug x64 ------
23>Building Custom Rule C:/Users/alexa/CGAL-5.0/examples/Triangulation_2/CMakeLists.txt
22>triangulation_prog1.cpp
23>voronoi.cpp
18>print_cropped_voronoi.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\print_cropped_voronoi.exe
17>Done building project "polylines_triangulation.vcxproj" -- FAILED.
20>terrain.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\terrain.exe
19>regular.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\regular.exe
21>terrain_with_info.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\terrain_with_info.exe
16>LINK : fatal error LNK1104: cannot open file 'Debug\CGAL_Qt5_moc_and_resources.lib'
16>Done building project "draw_triangulation_2.vcxproj" -- FAILED.
22>triangulation_prog1.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\triangulation_prog1.exe
23>voronoi.vcxproj -> C:\Users\alexa\CGAL-5.0\examples\Triangulation_2\build\Debug\voronoi.exe
24>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
24>Project not selected to build for this solution configuration
========== Build: 12 succeeded, 11 failed, 0 up-to-date, 1 skipped ==========
I've noticed that vcpkg installs CGAL 4.14 but the examples I'm trying to compile are already 5.0. I've checked the 4.14 manual that states 4.14 should have the examples shipped with it. Sadly, the vcpkg version doesn't contain any examples and I can't find any online.
My question is: Am I missing something when installing CGAL with vcpkg? Am I doing something wrong in the compilation process in Visual Studio? Or where do I get the examples for 4.14 to compile and test? Or when do they update the vcpkg version of CGAL to 5.0?
You have two solutions :
either you download the full CGAL 4.14 source code from github, the examples are in it
or you can upgrade your vcpkg so it downloads CGAL 5.0, by pulling master through git.

Visual Studio 15 migrate from X86 to X64 Error in Resource compile

When I want do Compile my Resources have the following error
error C2039: 'SetDefaultDllDirectories': is not a member of '`global namespace''
Writing STRING:2788, lang:0x410, size 34
cl /nologo /W4 /GR /EHsc /GF /Gy /DWINVER=0x0501 /D"_MBCS" /D"_AFXDLL" /U"_UNICODE" /Fo"Debug/" /Fd"Debug/" /FD /MDd /Od /D"WIN32" /I"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\NmsBuild\Include" /I"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Ms\Include" /I"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include" /I"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\PlatformSDK\Include" /D"_DEBUG" "Debug\NmsLib_LANG.cpp" /link /NOLOGO /SUBSYSTEM:WINDOWS /MACHINE:I386 /base:0x13600000 /version:1.1 /incremental:no /map:"Debug\NmsLib_LANG.map" /dll /out:"D:\Home\Atiras\V77Ma_64Bit_Branch001\Bin\Debug\.\NmsLib_LANG.dll" /libpath:"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Lib" /libpath:"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Ms\Lib" /libpath:"D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\PlatformSDK\Lib" "Debug\NmsLib_LANG.res"
NmsLib_LANG.cpp
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include\afx.h(38): warning C4996: 'MBCS_Support_Deprecated_In_MFC': MBCS support in MFC is deprecated and may be removed in a future version of MFC.
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include\afx.h(33): note: see declaration of 'MBCS_Support_Deprecated_In_MFC'
d:\home\atiras\v77ma_64bit_branch001\bindll\ms\include\sal_supp.h(57): warning C4005: '__useHeader': macro redefinition
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Ms\Include\sal.h(2866): note: see previous definition of '__useHeader'
d:\home\atiras\v77ma_64bit_branch001\bindll\ms\include\specstrings_supp.h(77): warning C4005: '__on_failure': macro redefinition
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Ms\Include\sal.h(2876): note: see previous definition of '__on_failure'
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include\atlcore.h(644): error C2039: 'SetDefaultDllDirectories': is not a member of '`global namespace''
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include\atlcore.h(644): error C2065: 'SetDefaultDllDirectories': undeclared identifier
D:\Home\Atiras\V77Ma_64Bit_Branch001\BinDll\Mf\Include\atlcore.h(646): error C2065: 'LOAD_LIBRARY_SEARCH_SYSTEM32': undeclared identifier
I have defined _USING_V110_SDK71_ but that does not seams to work on Resource Compiling

Error when building Qt with Desktop OpenGL

I built Qt5.5.1 successfully with default configuration:
configure -debug-and-release -opensource -platform win32-msvc2015
and then
nmake
Because QtANGLE support by default in this version, I rebuild Qt 5.5.1 to target Desktop OpenGL using this configuration:
configure -debug-and-release -opensource -opengl desktop -platform win32-msvc2015
and then
nmake
but I got Many Errors, this is the output:
Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fp.pch\debug\Qt5Guid_pch.pch -nol
ogo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -D_HAS_EXCEPTIONS
=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 /Fd..\..\lib\
Qt5Guid.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_NO_USING_NAMESPACE -DQT_BUILD_GUI_LIB
-DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_
ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPR
ECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_USE_BUNDLED_LIBPNG
-DPNG_ARM_NEON_OPT=0 -DQT_ENABLE_HARFBUZZ_NG -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_A
NGLE -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -I. -I..\..\include -I..\..\include\QtGui
-I..\..\include\QtANGLE -I..\..\include\QtGui\5.5.1 -I..\..\include\QtGui\5.5.1\
QtGui -Itmp -I..\3rdparty\libpng -I..\3rdparty\zlib -I..\3rdparty\harfbuzz-ng\in
clude -I..\3rdparty\zlib -I..\..\include\QtCore\5.5.1 -I..\..\include\QtCore\5.5
.1\QtCore -I..\..\include\QtCore -I.moc\debug -I..\..\mkspecs\win32-msvc2015 -Fo
.obj\debug\ #C:\Users\User\AppData\Local\Temp\nm8A5A.tmp
qopenglcontext.cpp
kernel\qopenglcontext.cpp(364): error C2065: 'GL_PROXY_TEXTURE_2D': undeclared i
dentifier
kernel\qopenglcontext.cpp(370): error C2065: 'QOpenGLFunctions_1_0': undeclared
identifier
kernel\qopenglcontext.cpp(370): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(371): error C2065: 'QOpenGLFunctions_3_2_Core': undecl
ared identifier
kernel\qopenglcontext.cpp(371): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(374): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(374): error C2065: 'QOpenGLFunctions_3_2_Core': undecl
ared identifier
kernel\qopenglcontext.cpp(374): error C2672: 'QOpenGLContext::versionFunctions':
no matching overloaded function found
kernel\qopenglcontext.cpp(374): error C2974: 'QOpenGLContext::versionFunctions':
invalid template argument for 'TYPE', type expected
e:\blind_sys_v02\libs\qt\5.5.1\qt-everywhere-opensource-src-5.5.1\qtbase\include
\qtgui\../../src/gui/kernel/qopenglcontext.h(181): note: see declaration of 'QOp
enGLContext::versionFunctions'
kernel\qopenglcontext.cpp(376): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(376): error C2065: 'QOpenGLFunctions_1_0': undeclared
identifier
kernel\qopenglcontext.cpp(376): error C2672: 'QOpenGLContext::versionFunctions':
no matching overloaded function found
kernel\qopenglcontext.cpp(376): error C2974: 'QOpenGLContext::versionFunctions':
invalid template argument for 'TYPE', type expected
e:\blind_sys_v02\libs\qt\5.5.1\qt-everywhere-opensource-src-5.5.1\qtbase\include
\qtgui\../../src/gui/kernel/qopenglcontext.h(181): note: see declaration of 'QOp
enGLContext::versionFunctions'
kernel\qopenglcontext.cpp(378): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(378): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(380): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(381): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(381): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(381): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(381): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(383): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(383): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(383): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(383): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(395): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(396): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(396): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(396): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(396): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(398): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(398): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(398): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(398): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Have you an idea about the possible solution?
Please delete the whole Qt folder. Extract it again from Qt archive (to a brand new folder), configure with your new options and build. It should work.
Incremental build when changing configuration option is risky and is not guaranteed to work at all.