Compiling with emscripten

I’m trying to compile hdf5 using emscripten in order to read HDF5 files in a web browser without a server and am getting the error below.
/bin/sh: ./H5make_libsettings: Permission denied
make[2]: *** [H5lib_settings.c] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any ideas how to fix this?


Hello. First of all, thanks for alerting me to the existence of Emscripten for running C and C++ on the web:… very cool.

While I can’t help you with this particular error, I wanted to explore what you mean by “read HDF5 files in a web browser”. We have other ways of achieving this – e.g. Kita Lab ( – but it all depends on what you need.


– dave

Hello. Sorry for revoking the old topic, but I was also trying to compile hdf5 with emscripten and got stuck at the same spot. It seems that H5make_libsettings file would be a binary when compiling with clang, but with emscripten the file is wasm-binary. The permission error could be easily “fixed” by chmod +x the file, yet the compilation still halts at the same spot with make not knowing how to execute wasm-binary. I guess the Makefile has to be changed somehow.

Are using CMake or autotools?


CMake. But I will try autotools now, thanks for the hint.