PCL_mingw64+msys2 setup

survey@SURVEY-C14 MINGW64 /c/pcl-trunk/build
$ cmake ..
— The C compiler identification is GNU 5.3.0
— The CXX compiler identification is GNU 5.3.0
— Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
— Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe — works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Detecting C compile features
— Detecting C compile features – done
— Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe
— Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe — works
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info – done
— Detecting CXX compile features
— Detecting CXX compile features – done
— Using CPU native flags for SSE optimization:  -march=native
— — GCC > 4.3 found, enabling -Wabi
— Found OpenMP
— Eigen found (include: C:/msys64/mingw64/include/eigen3, version: 3.2.8)
— Checking for module ‘flann>=1.7.0’
—   Package ‘flann>=1.7.0’ not found
— FLANN found (include: C:/flann, lib: optimized;C:/flann/lib/libflann_cpp.dll;debug;C:/flann/lib/lib                     flann_cpp.dll)
— Checking for module ‘metslib’
—   Package ‘metslib’ not found
— Could NOT find Qhull (missing:  QHULL_LIBRARY)
CMake Warning (dev) at C:/msys64/mingw64/lib/cmake/vtk-6.3/VTKTargets.cmake:28 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run “cmake –help-policy CMP0054” for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like “” will no longer be dereferenced when the policy is
set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
C:/msys64/mingw64/lib/cmake/vtk-6.3/VTKConfig.cmake:60 (include)
CMakeLists.txt:362 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/msys64/mingw64/lib/cmake/vtk-6.3/VTKTargets.cmake:33 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted.  Run “cmake –help-policy CMP0054” for policy
details.  Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like “” will no longer be dereferenced when the policy is
set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
C:/msys64/mingw64/lib/cmake/vtk-6.3/VTKConfig.cmake:60 (include)
CMakeLists.txt:362 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

— VTK_MAJOR_VERSION 6, rendering backend: OpenGL
— VTK found (include: C:/msys64/mingw64/include/vtk-6.3;C:/building/msys64/mingw64/include;C:/buildin                     g/msys64/mingw64/include/freetype2;C:/building/msys64/mingw64/include/python2.7;C:/building/msys64/min                     gw64/include/libxml2, lib: vtkalglib;vtkChartsCore;vtkCommonColor;vtkCommonDataModel;vtkCommonMath;vtk                     CommonCore;vtksys;vtkCommonMisc;vtkCommonSystem;vtkCommonTransforms;vtkInfovisCore;vtkFiltersExtractio                     n;vtkCommonExecutionModel;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;vtkFiltersSt                     atistics;vtkImagingFourier;vtkImagingCore;vtkRenderingContext2D;vtkRenderingCore;vtkFiltersGeometry;vt                     kFiltersSources;vtkRenderingFreeType;C:/building/msys64/mingw64/lib/libfreetype.dll.a;C:/building/msys                     64/mingw64/lib/libz.dll.a;vtkftgl;vtkDICOMParser;vtkDomainsChemistry;vtkIOXML;vtkIOGeometry;vtkIOCore;                     vtkIOXMLParser;C:/building/msys64/mingw64/lib/libexpat.dll.a;vtkexoIIc;vtkNetCDF;vtkNetCDF_cxx;C:/buil                     ding/msys64/mingw64/lib/libhdf5.dll.a;C:/building/msys64/mingw64/lib/libhdf5_hl.dll.a;vtkFiltersAMR;vt                     kParallelCore;vtkIOLegacy;vtkFiltersFlowPaths;vtkFiltersGeneric;vtkFiltersHybrid;vtkImagingSources;vtk                     FiltersHyperTree;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersModeling;vtkFiltersParallel;vtkFiltersP                     arallelImaging;vtkFiltersProgrammable;vtkFiltersPython;C:/building/msys64/mingw64/lib/libpython2.7.dll                     .a;vtkWrappingPythonCore;vtkWrappingTools;vtkFiltersReebGraph;vtkFiltersSelection;vtkFiltersSMP;vtkFil                     tersTexture;vtkFiltersVerdict;verdict;vtkGeovisCore;vtkInfovisLayout;vtkImagingHybrid;vtkIOImage;vtkme                     taio;C:/building/msys64/mingw64/lib/libjpeg.dll.a;C:/building/msys64/mingw64/lib/libpng.dll.a;C:/build                     ing/msys64/mingw64/lib/libtiff.dll.a;vtkInteractionStyle;vtkInteractionWidgets;vtkRenderingAnnotation;                     vtkImagingColor;vtkRenderingVolume;vtkViewsCore;vtkproj4;vtkgl2ps;vtkGUISupportQt;vtkRenderingOpenGL;v                     tkGUISupportQtOpenGL;vtkGUISupportQtSQL;vtkIOSQL;vtksqlite;vtkGUISupportQtWebkit;vtkViewsQt;vtkViewsIn                     fovis;vtkRenderingLabel;vtkImagingMath;vtkImagingMorphological;vtkImagingStatistics;vtkImagingStencil;                     vtkInfovisBoostGraphAlgorithms;vtkInteractionImage;vtkIOAMR;vtkIOEnSight;vtkIOExodus;vtkIOExport;vtkRe                     nderingGL2PS;vtkRenderingContextOpenGL;vtkIOFFMPEG;vtkIOMovie;C:/building/msys64/mingw64/lib/libtheora                     enc.dll.a;C:/building/msys64/mingw64/lib/libtheoradec.dll.a;C:/building/msys64/mingw64/lib/libogg.dll.                     a;vtkIOImport;vtkIOInfovis;C:/building/msys64/mingw64/lib/libxml2.dll.a;vtkIOLSDyna;vtkIOMINC;vtkIOMyS                     QL;vtkIONetCDF;vtkIOParallel;C:/building/msys64/mingw64/lib/libjsoncpp.a;vtkIOParallelXML;vtkIOPLY;vtk                     IOPostgreSQL;vtkIOVideo;vtkPythonInterpreter;vtkRenderingFreeTypeFontConfig;vtkRenderingImage;vtkRende                     ringLIC;vtkRenderingLOD;vtkRenderingMatplotlib;vtkRenderingQt;vtkRenderingVolumeOpenGL;vtkViewsContext                     2D;vtkViewsGeovis
— Could NOT find PCAP (missing:  PCAP_LIBRARIES PCAP_INCLUDE_DIRS)
— Boost version: 1.60.0
— Found the following Boost libraries:
—   system
—   filesystem
—   thread
—   date_time
—   iostreams
— PCL_EXAMPLES_SUBDIRS C:/pcl-trunk/examples/common/;C:/pcl-trunk/examples/features/;C:/pcl-trunk/exa                     mples/filters/;C:/pcl-trunk/examples/geometry/;C:/pcl-trunk/examples/keypoints/;C:/pcl-trunk/examples/                     outofcore/;C:/pcl-trunk/examples/segmentation/;C:/pcl-trunk/examples/stereo/;C:/pcl-trunk/examples/sur                     face/
— GTest found (include: C:/msys64/mingw64/include, src: C:/msys64/mingw64/include/gtest)
— DOXYGEN_FOUND
— HTML_HELP_COMPILER
— Found CPack generators: NSIS
— The following subsystems will be built:
—   common
—   octree
—   io
—   kdtree
—   search
—   sample_consensus
—   filters
—   2d
—   geometry
—   features
—   ml
—   segmentation
—   visualization
—   surface
—   registration
—   keypoints
—   tracking
—   recognition
—   stereo
—   apps
not building:
|_ 3d_rec_framework: OpenNI was not found or was disabled by the user.
|_ cloud_composer: No reason
|_ in_hand_scanner: OpenNI was not found or was disabled by the user.
|_ modeler: No reason
|_ optronic_viewer: FZAPI was not found.
|_ point_cloud_editor: No reason
—   outofcore
—   examples
—   people
—   global_tests
—   tools
— The following subsystems will not be built:
—   simulation: Disabled by default.
— Configuring done
CMake Error at test/CMakeLists.txt:22 (add_library):
Cannot find source file:

C:/msys64/mingw64/include/gtest/src/gtest-all.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error: Cannot determine link language for target “pcl_gtest”.
CMake Error: CMake can not determine linker language for target: pcl_gtest
— Generating done
— Build files have been written to: C:/pcl-trunk/build

 

# metslib
if (PKG_CONFIG_FOUND)
pkg_check_modules(METSLIB metslib)
if (METSLIB_FOUND)
set (HAVE_METSLIB ON)
include_directories(${METSLIB_INCLUDE_DIRS})
else()
include_directories(“${PCL_SOURCE_DIR}/recognition/include/pcl/recognition/3rdparty/”)
endif()
else()
include_directories(${PCL_SOURCE_DIR}/recognition/include/pcl/recognition/3rdparty/)
endif()