NanoComp / libctl

Guile-based library implementing flexible control files for scientific simulations
GNU General Public License v2.0
18 stars 23 forks source link

After installing libctl, when configuring MEEP couldn't find libctl library #65

Closed haohe0417 closed 1 year ago

haohe0417 commented 1 year ago

Hi,

I am trying to install the parallel version of MEEP-v1.25.0 from source and have already install libctl-v4.5.1 by ./configure --prefix=$ins --enable-shared --without-guile

make

make install

When I then go to configure MEEP with ./configure --enable-shared --with-libctl=$ins/share/libctl --with-mpi --with-openmp PYTHON=python MPICC=$ins/bin/mpicc MPICXX=$ins/bin/mpic++ LDFLAGS="-L$ins/lib -Wl,-rpath,$ins/lib" CPPFLAGS="-I$ins/include -I$ins/include/openmpi"

it says: configure: error: Couldn't find the required libctl library.

I have check the lib path where I installed libctl, there are 5 related files named as libctlgeom.a, libctlgeom.la, libctlgeom.so, libctlgeom.so.7, libctlgeom.so.7.3.1. However, there is no file named as libctl.a, which is what I was expecting.

Is there anything wrong with my command? I have been trying for a long time and now I have no clue how to deal with it..

Thanks in advance.

haohe0417 commented 1 year ago

Ok now I have completed this issuse..

It seems to me that .a files are only created when guile is enabled for libctl. By default MEEP is configuring with scheme( and implicitly with guile). I just added --without-scheme when configuring MEEP and it won't look for libctl library any more.

Sorry to be that stupid.. Hope my experience would help others in similar situation.