Hi Ray,

Le 2015-08-07 11:43, Raymond Wan a écrit :
Hi Franck,


On Fri, Aug 7, 2015 at 5:18 PM, houssen <[email protected]> wrote:
Ray, It seems you are correct. I have :
~> locate H5pubconf.h

/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/include/H5pubconf.h
/usr/include/H5pubconf.h


As a sanity check, one thing you can try is to add:

MESSAGE (STATUS "HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIRS}")

Already tried this, I get a blank message, HDF5_INCLUDE_DIRS is empty.


to see what it's being set to.

Also, you said you had CMake 2.8 lying around?  Perhaps you should
uninstall it from your system, in case you have an issue with one
version of CMake loading the other version's FindHDF5.  Likewise, you
should remove one of the two hdf5's -- the second one is the older
version installed via apt-get? As I guess you don't want to use that,
perhaps you should uninstall that, too.

The hdf5 installed by apt-get is convenient as there is no need to module load, and, this is the one mostly used. Anyway, either I will stick to build HDF5 with autotools, or, I will remove HDF5 from the system and built 2 versions of HDF5 with CMake.

I still have to make a decision about this.

I understand you need both HDF5's but maybe you should check you can
get one right with CMake first?

Your CMake output before had this:

...
HDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5cc

HDF5_C_LIBRARY:PATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/lib/libhdf5.a
...

Isn't the first one installed by apt-get and the second manually in
your home directory?  If so, this can't be a good sign...

Perhaps you can ask over at the CMake mailing list -- maybe somewhere
there can suggest how you can have two co-existing HDF5's...

Ray

PS:  Just read your recent posting -- seems like you got it figured
out?  About this:

~> sudo apt-get install h5utils hdf5-tools libhdf5-dev libhdf5-serial-dev
Here, I don't think I have a choice for CMake or Autotools.

Yes, you are correct.  You don't have a "choice" because when you
install packages via apt-get, they've already been compiled for you.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]

http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to