计算化学公社

标题: Multiwfn macOS M1 chip [打印本页]

作者
Author:
abin    时间: 2022-6-15 17:49
标题: Multiwfn macOS M1 chip
https://github.com/kjelljorner/multiwfn-mac-build

转载。

有兴趣自己动手哦……

作者
Author:
mizu-bai    时间: 2022-6-17 15:39
已经编译成功并正常运行,但没有图形界面支持,确实是个遗憾。
作者
Author:
M107    时间: 2024-9-27 13:29
您好,想问一下编译过程中出现这个报错是怎么回事:
-- The Fortran compiler identification is GNU 11.3.0
arm64-apple-darwin20.0.0-gfortran: warning: could not understand version ‘14.00.00’
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: /opt/anaconda3/bin/arm64-apple-darwin20.0.0-gfortran
-- Check for working Fortran compiler: /opt/anaconda3/bin/arm64-apple-darwin20.0.0-gfortran - broken
CMake Error at /opt/anaconda3/share/cmake-3.26/Modules/CMakeTestFortranCompiler.cmake:59 (message):
  The Fortran compiler

    "/opt/anaconda3/bin/arm64-apple-darwin20.0.0-gfortran"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/m/multiwfn-mac-build/build/CMakeFiles/CMakeScratch/TryCompile-4ICsm5
   
    Run Build Command(s):/opt/anaconda3/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_80490/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_80490.dir/build.make CMakeFiles/cmTC_80490.dir/build
    Building Fortran object CMakeFiles/cmTC_80490.dir/testFortranCompiler.f.o
    /opt/anaconda3/bin/arm64-apple-darwin20.0.0-gfortran   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -mmacosx-version-min=14.3 -c /Users/m/multiwfn-mac-build/build/CMakeFiles/CMakeScratch/TryCompile-4ICsm5/testFortranCompiler.f -o CMakeFiles/cmTC_80490.dir/testFortranCompiler.f.o
    arm64-apple-darwin20.0.0-gfortran: warning: ‘14.3’ is not valid for ‘-mmacosx-version-min’
    Linking Fortran executable cmTC_80490
    /opt/anaconda3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_80490.dir/link.txt --verbose=1
    /opt/anaconda3/bin/arm64-apple-darwin20.0.0-gfortran  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -mmacosx-version-min=14.3 CMakeFiles/cmTC_80490.dir/testFortranCompiler.f.o -o cmTC_80490
    arm64-apple-darwin20.0.0-gfortran: warning: ‘14.3’ is not valid for ‘-mmacosx-version-min’
    ld: -rpath can only be used when targeting Mac OS X 10.5 or later
    collect2: error: ld returned 1 exit status
    make[1]: *** [cmTC_80490] Error 1
    make: *** [cmTC_80490/fast] Error 2
   
   

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


作者
Author:
abin    时间: 2024-9-27 16:33
M107 发表于 2024-9-27 13:29
您好,想问一下编译过程中出现这个报错是怎么回事:
-- The Fortran compiler identification is GNU 11.3 ...

   ld: -rpath can only be used when targeting Mac OS X 10.5 or later
作者
Author:
M107    时间: 2024-9-27 16:36
abin 发表于 2024-9-27 16:33
ld: -rpath can only be used when targeting Mac OS X 10.5 or later

您好,礼貌问一下这个情况要怎么解决呢?我的macOS是14.3
作者
Author:
abin    时间: 2024-9-27 16:37
M107 发表于 2024-9-27 16:36
您好,礼貌问一下这个情况要怎么解决呢?我的macOS是14.3

Please read it word by word

ld: -rpath can only be used when targeting Mac OS X 10.5 or later




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3