On Mon, 23 Jul 2007, Ulrich Dobramysl wrote:
>> I am having difficulty using the configure script to build meep. I have
>> built and installed all the dependent packages, and at the final step of
>> putting it all together in meep, but hte configure script cannot seem to
>> find the libctl location, even though I used the --with-libctl=<dir>
>> flag. The output of the configure script is below.
>>
>> I would be grateful if anyone can help tell me where I went wrong.
>>
>> Thanks in advance.
>
> It seems you do not have the libctl.a in /usr/lib or some other standard
> library path. With the config option --with-libctl you specify the
> location of the scheme files used by libctl whereas you need to have the
> library in a known lib path. Try to specify
> LIBDIR=${LIBDIR}:/directory/containing/libctl.a/ on your configure
> commandline.
This is not quite right. You also need to tell it where to find the
header files, and LIBDIR is not the documented way to tell it about
library directories in any case.
In general, suppose you have installed stuff in /my/dir, i.e. you have
libraries in /my/dir/lib and header files in /my/dir/include, etcetera.
(Here, I'm assuming you actually ran 'make install' like you are supposed
to.) Then, you always tell the configure scrip where to find libraries
by:
./configure CPPFLAGS=-I/my/dir/include LDFLAGS=-I/my/dir/lib
This is not specific to MPB; it is true for *all* software that uses
configure scripts and depends on libraries you installed in nonstandard
locations.
However, libctl needs some additional information, because it has some
additional files that it installs in /my/dir/share/libctl ...you tell it
where to find these with --with-libctl-dir=/my/dir/share/libctl
Steven
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss