装了 deal.II 6.3.1,头和库分别链接到/usr/include和/usr/lib下面,但是遇到跟前面一样的问题是找不到 deal.II 的库。 ./configure 之后显示如下:
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
checking target system type... i386-apple-darwin10.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking whether ln -s works... yes
checking for ar... ar
checking for doxygen... no
checking for perl... perl
checking for sed... sed
checking for gmake... no
checking for make... make
checking if optimize support was requested... yes
checking how to run the C++ preprocessor... g++ -E
checking for dlfcn.h... yes
checking for deal.II header files... yes
checking if shared support was requested... yes
checking if thread support was requested... yes
checking for library -ldl... yes
checking for deal.II library... no
configure: error: deal.II library not found
但是我试了下,随便写了个 test.cc
然后 g++ test.cc -lbase -llac 是可以编译通过的,为啥AFEPack找不到呢?