メインコンテンツに移動

VTK

VTKは,流体力学や弾性力学などで用いられるスカラー・ベクトル・テンソル等のフィールド・データを,バイナリーファイルよりも高圧縮で保存するライブラリーです.VTKで保存したデータは,可視化ソフトParaViewでグラフ表示することが可能です.

パッケージの利用方法

まずlibPNGをインストールしておきます.NlohmanJSONのV3.12.0をインストール. あーもちろん,CMakeとかBoostも必要だと思うけど.ここのVTK-新しげをダウンロードして使います.これはMacOS用のVTKライブラリ, M1チップ対応universalバージョンです.

XCodeで使うやり方は、BOOSTと類似しているので省略

ライブラリーを使って,何をするかは,こちらを参照

ライブラリーで作成したデータをどうするかは,こちらを参照

 

配布パッケージ作成方法(9.4.2-1931-gaf06b855aa)臺灣積體電路製造股份有限公司

リリースバージョンがなかなか動かないので, NightlyBuildで代用しよう.2025年4月13日の夜バージョンである.

  • たぶんAppleがMacOSX15専用に色々変えたので,ついてこれないパッケージが多数あり,リリース版では間に合わなかったってことだろ

X86ビルド

X86ターミナルで実行する.

$ cd x86_64
$ git clone https://gitlab.kitware.com/vtk/vtk.git --recursive
$ cd vtk
$ mkdir build
$ cd build
$ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DVTK_MODULE_USE_EXTERNAL_VTK_nlohmannjson=ON ..
$ make
$ fswatch -x /usr/local >& files.log &
$ sudo make install
$ kill -9 %1
$ fswatch_analyze.sh -c _binary files.log

よっしゃ.

ARM64ビルド

ARM64ターミナルで実行する. ところでIntelっていつになったら復調するんだ?このまま滅亡するのか?

$ cd arm64
$ git clone https://gitlab.kitware.com/vtk/vtk.git --recursive
$ cd vtk
$ mkdir build
$ cd build
$ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DVTK_MODULE_USE_EXTERNAL_VTK_nlohmannjson=ON ..
$ make
$ fswatch -x /usr/local >& files.log &
$ sudo make install
$ kill -9 %1
$ fswatch_analyze.sh -c _binary files.log

で,ブタだ!

スーパー豚リンゴ

豚リンゴV2を使う.

$ cd arm64
$ fatty_apple.sh _binary ../../../x86_64/vtk/build/_binary
インストール先書き換えモードが発動しました
書き換え対象を特定
/usr/local/bin/vtkProbeOpenGLVersion-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkParseJava-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkWrapSerDes-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkWrapJava-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkWrapPythonInit-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkWrapHierarchy-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/bin/vtkWrapPython-9.4 を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonMath-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersGeometryPreview-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingStatistics-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCellGrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingContextOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkfreetype-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtklibxml2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersVerdict-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOMotionFX-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkViewsContext2D-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCityGML-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOInfovis-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOEngys-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersPoints-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonExecutionModel-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingAnnotation-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkInfovisCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkjpeg-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingStencil-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingLabel-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingContext2D-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingVolume-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtknetcdf-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkTestingCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOVideo-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOHDF-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersReduction-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingColor-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOOggTheora-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingGeneral-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonComputationalGeometry-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkdoubleconversion-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkDomainsChemistry-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersCellGrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersHybrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOLegacy-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkWrappingTools-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOExodus-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkogg-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingImage-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkDomainsChemistryOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOFDS-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonTransforms-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersTemporal-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingMath-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersSMP-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersGeneral-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtksys-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtktoken-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingUI-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingVtkJS-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkioss-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOERF-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersSelection-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersTopology-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtktiff-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkViewsInfovis-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkjsoncpp-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkloguru-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCesium3DTiles-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtklibharu-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkInfovisLayout-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersProgrammable-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingVolumeOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersTexture-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkParallelDIY-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersExtraction-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtklibproj-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingGL2PSOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCGNSReader-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersStatistics-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersSources-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOVeraOut-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkpng-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkgl2ps-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOXML-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtktheora-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingSceneGraph-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOLANLX3D-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOPLY-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersFlowPaths-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersParallelImaging-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkChartsCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersImaging-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkTestingRendering-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkexodusII-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersGeometry-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkexpat-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkpugixml-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkGeovisCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingSources-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOFLUENTCFF-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOMovie-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonMisc-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOChemistry-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonDataModel-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOAsynchronous-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOSegY-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingMorphological-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkfmt-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOIOSS-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkParallelCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOLSDyna-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOParallel-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOImport-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersHyperTree-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOParallelXML-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersAMR-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingCellGrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtklz4-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtksqlite-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkglad-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingLICOpenGL2-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtklzma-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersModeling-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingFourier-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOAMR-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingHyperTreeGrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkkissfft-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingFreeType-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOExportGL2PS-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkInteractionWidgets-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIONetCDF-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersGeneric-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOTecplotTable-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOImage-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkcgns-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkhdf5_hl-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOGeometry-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOExportPDF-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOXMLParser-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkverdict-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkmetaio-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonSystem-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersParallel-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkImagingHybrid-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkDICOMParser-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkInteractionStyle-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCONVERGECFD-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkzlib-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOEnSight-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkFiltersTensor-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkCommonColor-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkhdf5-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkRenderingLOD-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkInteractionImage-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOExport-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkViewsCore-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOSQL-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
/usr/local/lib/libvtkIOMINC-9.4.9.4.dylib を書き換えたいな. x86_64 arm64 を作成. 書き換え完了
_binaryを書き換えました $ pkgbuild --identifier VTK --root _binary VTK-9.4.2-1931-osx15.3.2.pkg

 できた! 

配布パッケージ作成方法(9.4.2)臺灣積體電路製造股份有限公司

ARM64ルド

ARM64ターミナルで実行する. 

$ cd arm64
$ tar zxf ../VTK-9.4.2.tar.gz
$ cd VTK-9.4.2
$ mkdir build
$ cd build
$ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/\
 -DBOOST_ROOT:PATHNAME=/usr/local/ -DCMAKE_VERBOSE_MAKEFILE=OFF -DVTK_USE_SYSTEM_PNG=ON ..
CMake Warning (dev) at CMake/vtkModule.cmake:4883 (install):
 Policy CMP0177 is not set: install() DESTINATION paths are normalized.  Run
 "cmake --help-policy CMP0177" for policy details.  Use the cmake_policy
 command to set the policy and suppress this warning.
CMake Warning (dev) at CMake/vtkObjectFactory.cmake:101 (cmake_parse_arguments):
 The INITIAL_CODE keyword was followed by an empty string or no value at
 all.  Policy CMP0174 is not set, so cmake_parse_arguments() will unset the
 _vtk_object_factory_configure_INITIAL_CODE variable rather than setting it
 to an empty string.
-- Build files have been written to: /Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/build 

おりょ.なんか文句があるらしい.でも深刻ではない感じみたいだな.

$ make
...
[  2%] Building CXX object Common/Core/CMakeFiles/CommonCore.dir/vtkIndexedArrayInstantiate_double.cxx.o
...
In file included from /Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/ThirdParty/nlohmannjson/vtknlohmannjson
/include/vtknlohmann/detail/input/binary_reader.hpp:17:
/Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann/de
tail/input/input_adapters.hpp:138:19: error: implicit instantiation of undefined template 'std::char_traits<unsigned char>'
 138 |     typename std::char_traits<char_type>::int_type get_character()

おりょう. ThirdParty/nlohmannjson/ 使ってるのかー.で,バグっとるやんけ. 困ってる奴もたくさんいるな. 今使っているのは ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann によるとV3.10.4だそうだ.じゃ,まんず, Nlohmanインストールして動くようにしてから,Externalだよっって言って回避しよう.うんにゃ,これはXCode16.3のバグだと主張する奴もいるな.React(FacebookのJavascript)で同じバグが起こっていて騒いでるんだな.まあ,いろいろ対策はありがちだな.nlohomanでバグったら,ブツが小さい分わかりやすくてXCode16.3で対応策が見つかるかもしれぬ.まんずNlohmannからやってみよう.

結論として nlohmanJSONのV3.10.2が新型MacOSと相性が悪かったってことでV3.12.0を使えば済むだけの話であった.で, NlohmanJSONのV3.12.0をインストールしたのでやり直しましょう.

$ cd arm64
$ tar zxf ../VTK-9.4.2.tar.gz
$ cd VTK-9.4.2
$ mkdir build
$ cd build
$ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/\
 -DVTK_MODULE_USE_EXTERNAL_VTK_nlohmannjson=ON ..
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
...
-- Found nlohmann_json: /usr/local/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.12.0")
...
-- Build files have been written to: /Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/build
$ make
 ...
In file included from /Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/ThirdParty/diy2/
vtkdiy2/include/vtkdiy2/fmt/format.h:48: /Users/sugimoto/Documents/Source/Free/arm64/VTK-9.4.2/
ThirdParty/diy2/vtkdiy2/include/vtkdiy2/fmt/core.h:272:30: error: implicit instantiation of
 undefined template 'std::char_traits<fmt::char8_t>'
 272 |       : data_(s), size_(std::char_traits<Char>::length(s)) {}
     |                              ^

 こんどはDIY2パッケージでエラー.なんやこれ. どうやらMPIを使って並列化しかする時につかうとか. え, でも, ノートパソコンではガチでいらねえんですが. cmake に -DVTK_GROUP_ENABLE_MPI=NOをつけてみたが, 結果は変わらねえ. MPIライブラリーが,ノートパソコンだし使わないからっつうて放置してるのがダメなのかなあ?MPIとは何の関係もなさそうである. 

この辺を見ると, gitで最新バージョン使ったら少しマシかも?らしいので, そっちの方がいいかもな・・・

配布パッケージ作成方法(8.2.0)臺灣積體電路製造股份有限公司

X86ビルド

X86ターミナルで実行する.

cd x86_64
tar zxf ../VTK-8.2.0.tar.bz2
cd VTK-8.2.0/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ ..
make
lipo -info lib/*dylib
Non-fat file: lib/libvtkChartsCore-8.2.1.dylib is architecture: x86_64
Non-fat file: lib/libvtkChartsCore-8.2.dylib is architecture: x86_64
.
.
.
Non-fat file: lib/libvtkzlib-8.2.1.dylib is architecture: x86_64
Non-fat file: lib/libvtkzlib-8.2.dylib is architecture: x86_64

ARM64ビルド

ARM64ターミナルで実行する

cd arm64
tar zxf ../VTK-8.2.0.tar.bz2
cd VTK-8.2.0/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=/usr/local/\
 -DCMAKE_VERBOSE_MAKEFILE=OFF -DVTK_USE_SYSTEM_PNG=ON ..
make
lipo -info lib/*dylib
Non-fat file: lib/libvtkChartsCore-8.2.1.dylib is architecture: arm64
Non-fat file: lib/libvtkChartsCore-8.2.dylib is architecture: arm64
Non-fat file: lib/libvtkCommonColor-8.2.1.dylib is architecture: arm64
.
.
.
Non-fat file: lib/libvtkzlib-8.2.1.dylib is architecture: arm64
Non-fat file: lib/libvtkzlib-8.2.dylib is architecture: arm64
fswatch -x /usr/local/ > files.log &
sudo make install

豚ビルド

豚リンゴを使う.

mkdir ../universal
fatty_apple.sh . ../../../x86_64/VTK-8.2.0/build ../universal lib/*dylib
sudo cp ../universal/lib/libvtk* /usr/local/lib/
kill %1
fswatch_analyze.sh -c _binary files.log
pkgbuild --identifier VTK --root _binary VTK-8.2.0-osx11.2.pkg

いいのかな?

lipo -info /usr/local/lib/libvtk*dylib
Architectures in the fat file: /usr/local/lib/libvtkChartsCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkChartsCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonColor-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonColor-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonComputationalGeometry-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonComputationalGeometry-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonDataModel-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonDataModel-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonExecutionModel-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonExecutionModel-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonMath-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonMath-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonMisc-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonMisc-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonSystem-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonSystem-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonTransforms-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkCommonTransforms-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDICOMParser-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDICOMParser-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDomainsChemistry-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDomainsChemistry-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDomainsChemistryOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkDomainsChemistryOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersAMR-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersAMR-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersExtraction-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersExtraction-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersFlowPaths-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersFlowPaths-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeneral-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeneral-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeneric-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeneric-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeometry-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersGeometry-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersHybrid-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersHybrid-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersHyperTree-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersHyperTree-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersImaging-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersImaging-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersModeling-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersModeling-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersParallel-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersParallel-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersParallelImaging-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersParallelImaging-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersPoints-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersPoints-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersProgrammable-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersProgrammable-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSMP-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSMP-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSelection-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSelection-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSources-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersSources-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersStatistics-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersStatistics-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersTexture-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersTexture-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersTopology-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersTopology-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersVerdict-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkFiltersVerdict-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkGeovisCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkGeovisCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOAMR-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOAMR-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOAsynchronous-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOAsynchronous-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOCityGML-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOCityGML-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOEnSight-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOEnSight-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExodus-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExodus-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExport-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExport-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExportOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExportOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExportPDF-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOExportPDF-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOGeometry-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOGeometry-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOImage-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOImage-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOImport-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOImport-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOInfovis-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOInfovis-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOLSDyna-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOLSDyna-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOLegacy-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOLegacy-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOMINC-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOMINC-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOMovie-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOMovie-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIONetCDF-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIONetCDF-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOPLY-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOPLY-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOParallel-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOParallel-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOParallelXML-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOParallelXML-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOSQL-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOSQL-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOSegY-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOSegY-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOTecplotTable-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOTecplotTable-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOVeraOut-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOVeraOut-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOVideo-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOVideo-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOXML-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOXML-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOXMLParser-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkIOXMLParser-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingColor-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingColor-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingFourier-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingFourier-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingGeneral-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingGeneral-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingHybrid-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingHybrid-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingMath-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingMath-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingMorphological-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingMorphological-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingSources-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingSources-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingStatistics-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingStatistics-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingStencil-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkImagingStencil-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInfovisCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInfovisCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInfovisLayout-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInfovisLayout-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionImage-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionImage-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionStyle-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionStyle-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionWidgets-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkInteractionWidgets-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkNetCDF-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkNetCDF-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkParallelCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkParallelCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingAnnotation-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingAnnotation-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingContext2D-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingContext2D-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingContextOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingContextOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingFreeType-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingFreeType-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingGL2PSOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingGL2PSOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingImage-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingImage-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingLOD-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingLOD-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingLabel-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingLabel-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingVolume-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingVolume-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingVolumeOpenGL2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkRenderingVolumeOpenGL2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsContext2D-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsContext2D-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsCore-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsCore-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsInfovis-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkViewsInfovis-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkdoubleconversion-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkdoubleconversion-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkexodusII-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkexodusII-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkexpat-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkexpat-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkfreetype-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkfreetype-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkgl2ps-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkgl2ps-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkglew-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkglew-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkhdf5-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkhdf5-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkhdf5_hl-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkhdf5_hl-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkjpeg-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkjpeg-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkjsoncpp-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkjsoncpp-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklibharu-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklibharu-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklibxml2-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklibxml2-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklz4-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklz4-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklzma-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtklzma-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkmetaio-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkmetaio-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkogg-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkogg-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkproj-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkproj-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkpugixml-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkpugixml-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtksqlite-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtksqlite-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtksys-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtksys-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtktheora-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtktheora-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtktiff-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtktiff-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkverdict-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkverdict-8.2.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkzlib-8.2.1.dylib are: x86_64 arm64
Architectures in the fat file: /usr/local/lib/libvtkzlib-8.2.dylib are: x86_64 arm64

いいんじゃね?

配布パッケージ作成方法(8.2.0)じたばた編

 

X86ビルド

X86ターミナルで実行する.

cd x86_64
tar zxf ../VTK-8.2.0.tar.bz2
cd VTK-8.2.0/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=/usr/local/\
-DCMAKE_VERBOSE_MAKEFILE=ON .. make lipo -info lib/*dylib Non-fat file: lib/libvtkChartsCore-8.2.1.dylib is architecture: x86_64 Non-fat file: lib/libvtkChartsCore-8.2.dylib is architecture: x86_64 . . . Non-fat file: lib/libvtkzlib-8.2.1.dylib is architecture: x86_64 Non-fat file: lib/libvtkzlib-8.2.dylib is architecture: x86_64

ARM64ビルド

ARM64ターミナルで実行する

cd arm64
tar zxf ../VTK-8.2.0.tar.bz2
cd VTK-8.2.0/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=\
/usr/local/ -DCMAKE_VERBOSE_MAKEFILE=ON .. make [ 52%] Linking C shared library ../../../lib/libvtkpng-8.2.dylib cd /Users/sugimoto/Documents/Source/Free/arm64/VTK-8.2.0/build/ThirdParty/png/vtkpng && /Applications/\
CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/vtkpng.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/clang -w -w -g -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 1.0.0 -current_version 1.0.0 -o ../../../lib/libvtkpng-8.2.1.dylib -install_name @rpath/libvtkpng-8.2.1.dylib CMakeFiles/vtkpng.dir/png.c.o CMakeFiles/vtkpng.dir/pngerror.c.o CMakeFiles/vtkpng.dir/pngget.c.o CMakeFiles/vtkpng.dir/pngmem.c.o CMakeFiles/vtkpng.dir/pngpread.c.o CMakeFiles/vtkpng.dir/pngread.c.o CMakeFiles/vtkpng.dir/pngrio.c.o CMakeFiles/vtkpng.dir/pngrtran.c.o CMakeFiles/vtkpng.dir/pngrutil.c.o CMakeFiles/vtkpng.dir/pngset.c.o CMakeFiles/vtkpng.dir/pngtrans.c.o CMakeFiles/vtkpng.dir/pngwio.c.o CMakeFiles/vtkpng.dir/pngwrite.c.o CMakeFiles/vtkpng.dir/pngwtran.c.o CMakeFiles/vtkpng.dir/pngwutil.c.o  -Wl,-rpath,/Users/sugimoto/Documents/Source/Free/arm64/VTK-8.2.0/build/lib ../../../lib/libvtkzlib-8.2.1.dylib -lm Undefined symbols for architecture arm64:"_png_init_filter_functions_neon", referenced from:  _png_init_filter_functions in pngrutil.c.o

だとさ.なにこれ?ではこれでどうだ

cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=/usr/local/\
-DCMAKE_VERBOSE_MAKEFILE=OFF -DVTK_USE_SYSTEM_LIBRARIES=ON -D EIGEN3_INCLUDE_DIR=/usr/local/include ..

こんどは

  Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)

てゆうかこいつ,見つからなかったら同梱のを使うとかの知恵はないのか.

で, 調べてみると, そもそも_png_init_filter_functions_neonというののneonってのは,

  • ARMにおけるマシン語命令

なのだそうだ.で,libpngの該当部分を読むと,「GCCは4.4くらいまで壊れてたけど今は大丈夫」「clangの連中は,いったいサポートする気があるのか?」といった感じで書いてある.

clangでビルドするからNEONでこけるのではないか.ううん,それではだめだなあ.いろいろ見ているうちに,面白いものを見つけた.VTK_USE_SYSTEM_PNG 変数である.

ARM64ターミナルで実行する

cd arm64
tar zxf ../VTK-8.2.0.tar.bz2
cd VTK-8.2.0/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=/usr/local/\
-DCMAKE_VERBOSE_MAKEFILE=OFF -DVTK_USE_SYSTEM_PNG=ON .. make

配布パッケージ作成方法(9.0.1)臺灣積體電路製造股份有限公司

 

どうもVTK8をM1でビルドするのが大変なので,9.0.1で試してみる.

ARM64ビルド

ARM64ターミナルで実行する

cd arm64
tar zxf ../VTK-9.0.1.tar.bz2
cd VTK-9.0.1/
export CXX=clang++; export CC=clang;
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOO\
ST_ROOT:PATHNAME=/usr/local/ -DCMAKE_VERBOSE_MAKEFILE=OFF .. make [ 64%] Building C object ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5_src.dir/H5Fsuper.c.o VTK-9.0.1/ThirdParty/hdf5/vtkhdf5/src/H5Fsuper.c:1397:16: error: implicit declaration of function 'vtk\
hdf5_H5O__fsinfo_set_version' is invalid in C99 [-Werror,-Wimplicit-function-declaration]             if(H5O__fsinfo_set_version(f, &fsinfo) < 0)            ^ VTK-9.0.1/ThirdParty/hdf5/vtkhdf5/src/vtk_hdf5_mangle.h:1882:33: note: expanded from macro   'H5O__fsinfo_set_version' #define H5O__fsinfo_set_version vtkhdf5_H5O__fsinfo_set_version

ますます変なエラーだな・・・これはそのうち治ると言う話なのだが・・・

まだ使えないな.

 

配布パッケージ作成方法(7.1.1)

いうまでもないが BOOSTとCMAKEの後です

tar zxf VTK-7.1.1.tar.gz
cd VTK-7.1.1
export CXX=clang++; export CC=clang;
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBOOST_ROOT:PATHNAME=/usr/local/ -DCMAKE_VERBOSE_MAKEFILE=ON .
make
fswatch -x /usr/local > files.log &
sudo make install
kill %1
fswatch_analyze.sh -c _binary files.logpkgbuild --identifier VTK --root _binary VTK-7.1.1-osx10.12.pkg