nexusformat / HDF5-External-Filter-Plugins

Provides dynamically loadable (compression) filters for HDF5 that are popular for photon or neutron science
16 stars 10 forks source link

Packaging on Windows #9

Open woutdenolf opened 6 years ago

woutdenolf commented 6 years ago

I'm trying to create a WiX installer with these tools:

Dependencies:

Create the Package:

git clone https://github.com/nexusformat/HDF5-External-Filter-Plugins.git mkdir build cd build cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_SYSTEM_VERSION=10.0 -DENABLE_LZ4_PLUGIN=true -DENABLE_BITSHUFFLE_PLUGIN=true -DLZ4_ROOT="%programfiles%\LZ4" msbuild hdf5_filter_plugins.sln /p:Configuration=Release msbuild PACKAGE.vcxproj /p:Configuration=Release

Error log after the last command:

CMake Error at cmake_install.cmake:48 (file): file INSTALL cannot find "C:/projects/hdf5plugins/HDF5-External-Filter-Plugins/build/bin/lz4.dll".

This goes for every file that is added to EXTERNAL_LIBRARIES in the master CMakeLists.txt

What is responsible for moving the DLL's in the /bin directory? This directory is not created so I must be missing something.

newville commented 6 years ago

@eugenwintersberger @woutdenolf has anyone been able to build these plugins on Windows?
If so, what compiler/settings work to build this?

I'd like to have a DLL that I could use with h5py and Anaconda Python to be able to read LZ4-compressed HDF5 files (as from Eiger detector).

Debugging the cmake build process is slightly beyond "easy" for me.