Compilation errors on CGAL examples - c++
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.
Related
Fail building CGAL with cmake on windows
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
fatal error C1083: Cannot open include file: 'iostream'; Also getting error -> No such file or directory and 'stdlib.h'
I keep getting these issues when trying to compile this certain project : 1>------ Build started: Project: X, Configuration: Debug Win32 ------ 1>ESPWork.cpp 1>D:\X\test\ESPWork.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory 1>Source.cpp 1>D:\X\test\Source.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory 1>MemoryManager.cpp 1>D:\X\test\MemoryManager.cpp(1,9): fatal error C1083: Cannot open include file: 'iostream': No such file or directory 1>DirectXM.cpp 1>D:\MicrosoftDirectXSDK\Include\d3d9.h(37,10): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory 1>Generating Code... 1>Done building project "test.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I have include directories set to (D:\MicrosoftDirectXSDK\Include) and library directories set to (D:\MicrosoftDirectXSDK\Lib\x86) New issue: 1>------ Build started: Project: SAFU_IRAQ, Configuration: Debug Win32 ------ 1>DirectXM.cpp 1>D:\Eary\test\MemoryManager.h(7,32): error C2039: 'wstring': is not a member of 'std' 1>D:\Stufff\VC\Tools\MSVC\14.24.28314\include\list(24): message : see declaration of 'std' 1>D:\Eary\test\MemoryManager.h(7,39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>D:\Eary\test\MemoryManager.h(7,39): error C2143: syntax error: missing ',' before '&' 1>Done building project "test.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
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.
Static build of Qt 5.1.1 on windows 7 - nmake and cl error
I'm trying to build a static version of Qt 5.1.1 on Windows, but eventually receive a bunch of errors from nmake. Following that topic - standalone exe in Qt I did the following: Downloaded Qt source code (http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.zip) Configured executing the following: configure.bat -static -release -no-audio-backend -opengl desktop -opensource -confirm-license Ran nmake from MS Visual Studio command line. The compilation process runs for some while, and eventually throws the following: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(325) : err or C2556: 'bool signbit(double)' : overloaded function differs only by return ty pe from 'int signbit(double)' c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \win32-math.h(59) : see declaration of 'signbit' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(325) : err or C2371: 'signbit' : redefinition; different basic types c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \platform.h(74) : see declaration of 'lrint' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(506) : err or C2371: 'lrint' : redefinition; different basic types c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \platform.h(74) : see declaration of 'lrint' snapshot-empty.cc C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(325) : err or C2556: 'bool signbit(double)' : overloaded function differs only by return ty pe from 'int signbit(double)' c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \win32-math.h(59) : see declaration of 'signbit' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(325) : err or C2371: 'signbit' : redefinition; different basic types c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \win32-math.h(59) : see declaration of 'signbit' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(506) : err or C2556: 'long lrint(double)' : overloaded function differs only by return type from 'int lrint(double)' c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \platform.h(74) : see declaration of 'lrint' C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(506) : err or C2371: 'lrint' : redefinition; different basic types c:\qt\qt-everywhere-opensource-src-5.1.1\qtjsbackend\src\3rdparty\v8\src \platform.h(74) : see declaration of 'lrint' Generating Code... NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\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. Has anyone met such case? I'm not sure why it's complaining about the Qt sources. Thanks!
Solved. I was building it with VS 2013, which actually doesn't support V8 module properly, so I got to use VS 2012, that worked fine with the following configuration: configure.bat -static -release -no-audio-backend -opengl desktop -opensource -nomake examples -confirm-license
How to use Winsock 2?
How do I use Windows Sockets 2 in Visual Studio 2008. I'm using precompiled headers, so far what I have tried is: Included winsock2.h in my StdAfx.h file and entered WS2_32.LIB as an additional dependency in Project Settings I get these errors ------ Build started: Project: TestIVR, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(30) : error C2065: 'WSAEVENT' : undeclared identifier c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(30) : error C2146: syntax error : missing ';' before identifier 'socketEvent' c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(30) : error C2065: 'socketEvent' : undeclared identifier c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(35) : error C2039: 'S_addr' : is not a member of 'in_addr' c:\program files\microsoft sdks\windows\v6.0a\include\inaddr.h(22) : see declaration of 'in_addr' c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(40) : error C2065: 'socketEvent' : undeclared identifier c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(40) : error C3861: 'WSAEventSelect': identifier not found Build log was saved at "file://c:\Documents and Settings\Hussain\My Documents\Visual Studio 2008\Projects\TestIVR\TestIVR\Debug\BuildLog.htm" TestIVR - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== By the way, if I include the winsock2.h in my main.cpp (where my main() function resides) then I get different errors ------ Build started: Project: TestIVR, Configuration: Debug Win32 ------ Compiling... main.cpp c:\documents and settings\hussain\my documents\visual studio 2008\projects\testivr\testivr\main.cpp(36) : error C2039: 'S_addr' : is not a member of 'in_addr' c:\program files\microsoft sdks\windows\v6.0a\include\inaddr.h(22) : see declaration of 'in_addr' Build log was saved at "file://c:\Documents and Settings\Hussain\My Documents\Visual Studio 2008\Projects\TestIVR\TestIVR\Debug\BuildLog.htm" TestIVR - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Following is the content for my StdAfx.h header file #pragma once #include <stdio.h> #include <tchar.h> #include <windows.h> #include <winsock2.h>
Well your in_addr issue is caused byt he fact there IS no S_addr field in in_addr. There is an in_addr.s_addr which re-directs to in_addr.S_un.S_addr.
From memory I think windows.h includes the winsock.h (i.e. sockets v1), which conflicts with winsock2.h. You can prevent this by defining WIN32_LEAN_AND_MEAN : #include <stdio.h> #include <tchar.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <winsock2.h>
You need to include winsock2.h before windows.h
Try browsing http://www.sockets.com/ for examples