Linux Ubuntu 20.04 LTSでファイルを生成できません。

Linux Ubuntu 20.04 LTSでファイルを生成できません。

流体シミュレーションソフトウェアをインストールしようとしています(https://github.com/cwrowley/ibpm)。すべての依存関係がインストールされており、makeコマンドを実行する準備が整いました。これは端末から受け取ったエラーです。

(base) hell@hell-Precision-T1600:~/Desktop/temp/von_karman/ibpm-master/ibpm$ make
cd build && make
make[1]: Entering directory '/home/hell/Desktop/temp/von_karman/ibpm-master/ibpm/build'
../config/make.inc:1: *** missing separator. Stop.
make[1]: Leaving directory '/home/hell/Desktop/temp/von_karman/ibpm-master/ibpm/build'
make: *** [Makefile:15: ibpm] Error 2

また、親ディレクトリのMakefileも確認しました。 Makefileの内容は次のとおりです。

# Main makefile for IBPM code
#
# Clancy Rowley
# Princeton University
#
# $Date$
# $Revision$
# $Author$
# $HeadURL$

.PHONY: ibpm test doc clean distclean
DIRS = build test doc

ibpm:
    cd build && $(MAKE)

test:
    cd test && $(MAKE)

doc:
    cd doc && $(MAKE)

all: ibpm test doc

clean:
    for dir in $(DIRS); do ( cd $$dir && $(MAKE) clean; ) done

distclean: clean
    for dir in $(DIRS); do \
      ( cd $$dir && $(MAKE) distclean; )\
    done

不足している区切り文字が何であるかわかりません。

make.inc ファイルは make.inc.gcc に関連付けられます。 make.inc.gccの内容は次のとおりです。

# standard config file, using gcc compiler

CXX = g++

# flags for compiling with optimization
CXXFLAGS = -Wall -g -Ofast -funroll-loops -DNDEBUG

# for debugging, uncomment the following line
# CXXFLAGS = -Wall -g

# Specify directories for libraries and header files here
# lib_dirs = -L/path/to/lib

# include_dirs = -I/path/to/include

また、実行すると、次のようなcat -A config/make.inc結果が得られます。make.inc.gcc

ベストアンサー1

提案されたソリューションスチールドライバー実際に働く。 make.inc ファイルにエラーがあります。makeコマンドを使用してmake.inc.gccファイルをmake.incにリンクすると、コマンドは機能しますln -sf make.inc.gcc config/make.inc

おすすめ記事