On May 13, 2008, at 12:54 PM, Robert Rehammar wrote:
> Just want to check with you all. I find the --with-libctl-flag a bit
> strange. Why should you point to the .../share/libctl-directory with
> this? Is this documented somewhere? I don't think it is the usual  
> way --
> with-foo works. I expected that it should point to just the base path.

Yes, it is documented in the installation manual.

There is no standard behavior for the arguments of --with flags in  
autoconf ... it's all ad hoc, because different programs use --with  
flags for quite different kinds of options.

If by the "base path" you mean /usr/local, that is not sufficient  
because it is perfectly possible to install libctl (or any other  
program) with completely different directories for executables,  
libraries, header files, and data by using the standard --bindir, -- 
libdir, --includedir, and --datadir installation-prefix options to  
configure.

The standard in configure scripts is to specify include directories  
with CPPFLAGS and library directories with LDFLAGS.  Hence, only the  
data installtion directory of libctl need be specified.

>
> L/scratch/lib -L/usr/lib" CFLAGS="-I/scratch/include -I/usr/include"

Note that you shouldn't be putting -I flags in CFLAGS; they only  
belong in CPPFLAGS (the preprocessor flags, which are used for both C  
and C++ compilation in addition to the compiler flags CFLAGS and  
CXXFLAGS, respectively).

> h5file.cpp: In function `bool dataset_exists(hid_t, const char*)':
> h5file.cpp:97: error: invalid conversion from `herr_t (**)(hid_t,
> void*)' to `hid_t'
> h5file.cpp:97: error: invalid conversion from `void**' to `herr_t
> (**)(hid_t, void*)'

This has been noted on the list before.  The problem is that HDF5  
changed their API in version 1.8 in a way that breaks programs using  
the old API.

The workaround is, when you are compiling Meep, include - 
DH5_USE_16_API=1 in the CPPFLAGS.

I've added a note about this to the Meep manual.

Steven


_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to