thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
413 stars 146 forks source link

Fix the error, while building hdf5 #96

Closed l1berat0r closed 1 year ago

l1berat0r commented 1 year ago

Hello Thorsten. I encountered an issue on my system, which caused the "hdf5" build fail. It turned out, I had other library installed on my ubuntu, that contained a file with the simmilar name.

The find /usr/include -name hdf5.h | sort -r | head -1 result, as funny as it sounds, was: /usr/include/opencv4/opencv2/flann/hdf5.h

Replacing the line with find /usr/include -name hdf5.h | grep "hdf5/serial" | head -1 seems to be working better.

Kind Regards.

thliebig commented 1 year ago

This does not work, on my machine this is just "/usr/include/hdf5.h". But I can into the same issue and I just use an inverse grep to exclude opencv

If this is not good enough in the future we have to create a funtion to open every *.h and check it...