Skip to content

statically compiling program usign HighFive library #612

Answered by pramodk
punims asked this question in Questions
Discussion options

You must be logged in to vote

@punims : for the szip, you can see that there are options to build it statically:

$ ./configure --help
...
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
...

So --enable-shared=no --enable-static=yes should do the job.

By the way, szip is only needed if you want to enable szip-based compression. If that is not required, with cmake build system of hdf5, one can use options like:

-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=OFF -DONLY_SHARED_LIBS:BOOL=OFF

Hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alkino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants