0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

spglibのcmakeでErrorが出た

Posted at

問題

某スパコンでspglibのNov 6, 2022のverのコンパイルをするときにエラーが出た."cmake .."のところで,次のError文を得た.

ADD_LIBRARY called with SHARED option but the target platform does not support dynamic linking. Building a STATIC library instead. This may lead to problems.

解決方法

ここ(リンク)に載っていた.Crayコンパイラだとdynamicライブラリはどうやら無理?っぽい.cmakeのオプションでコンパイラをセッティングすることもできるっぽいけど(リンク)シンプルにIntelのコンパイラを設定すればいいやということで次のようにエイヤした.

export F90=ifort
export CC=icc
export CXX=icpc

別にF90とCXX必要ないはずだけど一応.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?