make for CSXCAD failed

Install support for openEMS

Moderators: thorsten, sebastian

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: make for CSXCAD failed

Post by thorsten » Wed 05 Oct 2016, 20:04

Hi,

thanks for reporting this. As it seems cmake 3.6 is has removed HDF5_LIBRARY_DIRS. Which is kind of bad for a tool like this to do in my opinion...
Are you sure that the "CXX" component is necessary? I will have a look, maybe "HL" is enough...

regards
Thorsten

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: make for CSXCAD failed

Post by thorsten » Wed 05 Oct 2016, 20:11

I checked, it should be the C and HL components, I'm not using the CXX interface...

Can you check if the following works for you?

Code: Select all

find_package(HDF5 1.8 COMPONENTS C HL REQUIRED)
INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIR})
link_directories(${HDF5_LIBRARIES})
regards
Thorsten

inname
Posts: 3
Joined: Tue 04 Oct 2016, 13:43

Re: make for CSXCAD failed

Post by inname » Mon 07 Nov 2016, 10:51

Hi
Tried, the error is the same.
It does not pass the test:

Code: Select all

CMake Error at /usr/share/cmake-3.6/Modules/FindHDF5.cmake:201 (try_compile):
   Unknown extension ".c" for fillet
Perhaps this is connected with the new version HDF5. (1.8.16)

Pay attention to the search syntax headers and libraries:

Code: Select all

INCLUDE_DIRECTORIES ($ {HDF5_INCLUDE_DIRS})
* DIRS

inname
Posts: 3
Joined: Tue 04 Oct 2016, 13:43

Re: make for CSXCAD failed

Post by inname » Mon 07 Nov 2016, 11:13

Hurry up with the first message.
Check now in the mute module C \ CXX.
Build successful.

Code: Select all

find_package(HDF5 1.8 COMPONENTS  HL REQUIRED)

Post Reply