Menu

Problem releasing an executable with the new version (2.15.0.149)

smXplorer
2024-01-08
2024-07-12
  • smXplorer

    smXplorer - 2024-01-08

    As previously reported regarding 2.14 - when the binaries were supposedly included with the package, obviating the need to install the actual HDF5 library from the HDF5 website, I am still unable to release an exe using the library.
    The build works fine (and needless to say, the app works fine when in development mode), with the two HDF5-related DLLs neatly copied in the data folder of the released app, but when running the code, as soon as h5labview2 code is called, the exe returns an error 7 (generic error):
    Source: Call Library Function Node in H5F.lvlib:H5Fis_hdf.vi

    I am wondering whether I am missing something trivial or this is deeper than I can fathom. A generic error is not particularly helpful to pinpoint the problem, and debugging an executable does not appear trivial.
    Thanks for any suggestions.

     
  • smXplorer

    smXplorer - 2024-01-08

    OK, I think I just answered my own question: it seems that not only does one need to include all DLLs in the vi.lib/addons/h5labview2/lib/winXX folder, but also the .ext and .lib files.
    At least that fixes the error I was encountering.

     
  • Martijn Jasperse

    Hi,
    It should not be necessary to include the EXT and LIB files - those are build artifacts and are not used by LabVIEW. However when you say "the two HDF5-related DLLs" that is not correct; you require ALL the distributed DLLs for the target architecture. They are required to be separate files per their licensing conditions, which is why there are several of them.

    Unfortunately Windows itself does not provide any diagnostic information when failing to load a DLL - it just reports "failed" and does not give a reason why. This is a longstanding problem with library development on Windows so unfortunately there is nothing I can do about the generic error message.

    Cheers,
    Martijn

     
    👍
    1
  • smXplorer

    smXplorer - 2024-01-08

    You are correct. I had made sure I had all the DLLs I could find in vi.lib/addons/h5labview2/lib/win64 included in the data folder but this did not work for me, so I believe I may have dragged everything from that folder into my data folder and this worked. I thought therefore that the only two new files I had added were those two.
    Looking closer at my project, I realized that the hdf5.dll I was including was the one in LabVIEW/resource, which was a different version (2016) than the one included with your new release (2018).

     
  • vtnoah

    vtnoah - 2024-07-12

    Thank you for this discussion! I was able to get my executable working in no time!

     

Log in to post a comment.