Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDF5 target issue in CMake #124

Open
saitta-s opened this issue Feb 19, 2019 · 1 comment
Open

HDF5 target issue in CMake #124

saitta-s opened this issue Feb 19, 2019 · 1 comment

Comments

@saitta-s
Copy link

Hi @sigurdstorve,

I've been trying to compile the program in CMake, but no matter how I install HDF5, I keep getting the same warning which causes cmake to not generate the file pyrfsim.so.

CMake Warning at CMakelists.txt:41 (message):
Could not find imported HDF5 targets. Using module-mode instead.

I tried installing different versions of HDF5 on different versions of Ubuntu but nothing.
I'm doing some research which involves simulating echocardiography and COLE seems to be the only feasible solution.

Please, any kind of help could save me.

Thanks.

@Doul00
Copy link

Doul00 commented May 21, 2021

I know the issue is old, but in case it might help someone in the future

Build with shared libraries:
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=ON")

Build C++ libraries
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=ON"

  • Run the build script provided in the downloaded package.
  • Once the build is finished:
    • On Windows, open HDF5.sln and run the INSTALL target
    • Then go to the build directory. In resp. ZLIB-prefix and SZIP-prefix, find the .sln files and run the INSTALL targets

The link should work from there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants