[Nexus] CMake build for NAPI

Eugen Wintersberger eugen.wintersberger at desy.de
Fri Aug 14 18:12:27 BST 2015


Hi Mark,

On 08/14/2015 11:59 AM, Koennecke Mark (PSI) wrote:
> I then proceeded to try and build it with  HDF4. The build could not pick up HDF4. I have it in a 
> non standard location and I tried to coerce cmake to locate it using two different paths:
> * by CFLAGS and LDFLAGS
> * by a CMAKE_LIBRARY_PATH in CMakeLists.txt
> 
> Both failed such that I assume there is something wrong  with the HDF4 detection code.

The problem seems to be that Pete (Peterson) has HDF4 by default in his
last commit. In order to enable it you have to run cmake with

$cmake -DENABLE_HDF4=1 -DHDF4_INCLUDE_DIRS=<path to hdf4 headers> <path
to sources>

As far as I know, cmake does not read CFLAGS during configuration (need
to look this up).

> 
> Another suggestion: the CMAKE_LIBRARY_PATH thing should be in the CMakeList.txt by 
> default. Commented out and accompanied with a explanation: change this if your stuff 
> lives elsewhere.

I rather prefer configuration via CMake variables. The problem with
changing the CMakeLists.txt file is that package maintainers would have
to create an explicit patch for this (at least for Debian).

regards
  Eugen

> 
> Regards,
> 
>      Mark
>  
> 
>> I am looking forward to your feedback.
>>
>> best regards
>> Eugen
>>
>> _______________________________________________
>> NeXus mailing list
>> NeXus at nexusformat.org
>> http://lists.nexusformat.org/mailman/listinfo/nexus
> 
> 
> _______________________________________________
> NeXus mailing list
> NeXus at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20150814/e7c2f602/attachment.sig>


More information about the NeXus mailing list