print

Repository-GIT

Repository links

First time

$ cd /Users/afilhol/Development
$ git clonehttps://code.ill.fr/scientific-software/crysfml
$ cd /Users/afilhol/Development/Dev-FullProf
$ git clonehttps://code.ill.fr/scientific-software/progcfml

Then use

$ cd /Users/afilhol/Development
$ git pullhttps://code.ill.fr/scientific-software/crysfml
$ cd /Users/afilhol/Development/Dev-FullProf
$ git pullhttps://code.ill.fr/scientific-software/progcfml

Required configuration

Last check: 14 March 2022, macOS Big Sur

$ ifort --version
ifort (IFORT) 2021.5.0 20211109
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

$ cmake --version
cmake version 3.22.3
<https://cmake.org/download/>

$ /Applications/wint/showver
Winteracter version : 13.0g
      serial number : 40030
         licence id : 9443261

$ upx --version
upx 3.96
UCL data compression library 1.03
zlib data compression library 1.2.11
LZMA SDK version 4.43
Installed from <https://macappstore.org/upx/> or <https://ports.macports.org/port/upx/>

Environment variables (.bash_profile)

export CRYSFML=/Users/afilhol/Development/crysfml
export PROGCFML=/Users/afilhol/Development/Dev-FullProf/progcfml
export WINTER=/Applications/wint
export WINTERACTER=$WINTER
export WINT=$WINTER
export PATH="$PATH:/Applications/wint/bin"
export OPENMOTIF=/Applications/Darwin/openmotif-2.3.8
export PATH="$PATH:/Applications/Darwin/openmotif-2.3.8/lib"

simlinks

Winteracter requirement

$ sudo ln -s /Applications/Darwin/openmotif-2.3.8 /usr/local/OpenMotif64

Compiling

CRYSFML

$ cd $CRYSFML
$ mkdir build_cmake
$ cd build_cmake
$ mkdir ifort_release
$ cd /Users/afilhol/Development/crysfml/build_cmake/ifort_release

------- This is necessary only once -----------

$ cmake -G "Unix Makefiles" -D CMAKE_Fortran_COMPILER=ifort -D GUI=ON -D ARCH32=OFF -D CMAKE_INSTALL_PREFIX=$CRYSFML/ifort64 -D CRYSFML_PREFIX=LibC -D WCRYSFML_PREFIX=LibW ../../.

------- Command to be used afterwards ------

$ make install

PROGCFLM

$ cd $PROGCFML
$ Scripts/MacOS/make_fps_AF.sh

FPM (Fortran Package Manager)

<https://github.com/fortran-lang/fpm/releases/tag/v0.5.0>
Rename app to a mere "fpm"
Move "fpm" to a folder which is in the PATH, e.g. /usr/local/bin
Beware: do not use the same "build" folder for cmake and fpm
$ chmod +x /usr/local/bin/fpm
$ chmod +x /Users/afilhol/Development/crysfml/Src/tochange.sh

$ cd $CRYSFML/ build_cmake/ifort_release
$ /Users/afilhol/Development/crysfml/make_CrysFML_fpm.sh ifort
$ /Users/afilhol/Development/crysfml/make_CrysFML_fpm.sh ifort win<
/p>

Home - First - ​​​​​​​NextBack