trelau / SMESH

Mesh module from the Salome Platform
GNU Lesser General Public License v2.1
50 stars 31 forks source link

is support mingw officially? #66

Open ihmin opened 2 years ago

ihmin commented 2 years ago

I am using mingw on msys2. I create a makefile with cmake, and there are too many errors during build. I can build it by modifying it one by one, but I don't know if this is correct. smesh is officially support mingw?

gcc.exe (Rev1, Built by MSYS2 project) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
trelau commented 2 years ago

Can you elaborate on the errors?

ihmin commented 2 years ago

Can you elaborate on the errors?

sorry for late response.

I have installed vtk 8.2 like below in msys2.

$ pacman -Q --info mingw-w64-x86_64-vtk

Name            : mingw-w64-x86_64-vtk
Version         : 8.2.0-12
Description     : A software system for 3D computer graphics, image processing
                  and visualization (mingw-w64)
Architecture    : any
URL             : https://www.vtk.org/
Licenses        : BSD
Groups          : None
Provides        : None
Depends On      : mingw-w64-x86_64-gcc-libs  mingw-w64-x86_64-double-conversion
                  mingw-w64-x86_64-expat  mingw-w64-x86_64-ffmpeg
                  mingw-w64-x86_64-fontconfig  mingw-w64-x86_64-freetype
                  mingw-w64-x86_64-glew  mingw-w64-x86_64-gl2ps
                  mingw-w64-x86_64-hdf5  mingw-w64-x86_64-intel-tbb
                  mingw-w64-x86_64-jsoncpp  mingw-w64-x86_64-libjpeg
                  mingw-w64-x86_64-libpng  mingw-w64-x86_64-libogg
                  mingw-w64-x86_64-libtheora  mingw-w64-x86_64-libtiff
                  mingw-w64-x86_64-libxml2  mingw-w64-x86_64-lz4
                  mingw-w64-x86_64-netcdf  mingw-w64-x86_64-pugixml
                  mingw-w64-x86_64-sqlite3  mingw-w64-x86_64-xz
                  mingw-w64-x86_64-zlib
Optional Deps   : mingw-w64-x86_64-boost: InfovisBoost and
                  InfovisBoostGraphAlgorithms modules [installed]
                  mingw-w64-x86_64-gdal [installed]
                  mingw-w64-x86_64-libmariadbclient: interface to MariaDB
                  [installed]
                  mingw-w64-x86_64-postgresql: interface to PostgreSQL
                  [installed]
                  mingw-w64-x86_64-python: Python bindings [installed]
                  mingw-w64-x86_64-python-matplotlib: Matplotlib renderer
                  mingw-w64-x86_64-tk: TCL bindings, Python Tk widgets
                  [installed]
                  mingw-w64-x86_64-qt-base
                  mingw-w64-x86_64-qt-winextras
Required By     : mingw-w64-x86_64-opencascade
Optional For    : mingw-w64-x86_64-opencv
Conflicts With  : None
Replaces        : None
Installed Size  : 178.27 MiB
Packager        : CI (msys2/msys2-autobuild/7d84a7e0/2485926606)
Build Date      : Mon Jun 13 13:02:08 2022
Install Date    : Sat Jun 18 00:30:26 2022
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

but I got error when cmake configure.

Searching for OpenCASCADE...
Searching for VTK...
CMake Error at D:/MSYS2/mingw64/lib/cmake/vtk-8.2/vtkModuleAPI.cmake:140 (message):
  Requested modules not available:

    CommonCore
    CommonDataModel
    FiltersVerdict
Call Stack (most recent call first):
  D:/MSYS2/mingw64/lib/cmake/vtk-8.2/VTKConfig.cmake:143 (vtk_module_config)
  CMakeLists.txt:79 (find_package)

Configuring incomplete, errors occurred!
See also "C:/Temp/SMESH/build/CMakeFiles/CMakeOutput.log".
See also "C:/Temp/SMESH/build/CMakeFiles/CMakeError.log".

How can I fix?

Thanks.