libyal / libewf

Libewf is a library to access the Expert Witness Compression Format (EWF)
GNU Lesser General Public License v3.0
263 stars 76 forks source link

Fix a linking error of bzip2 on libewf #202

Closed herosi closed 3 months ago

herosi commented 3 months ago

Although building bzip2 was successful when using build.ps1, the libewf compilation failed due to a linking error with like the message below.

LINK : fatal error LNK1104: cannot open file 'E:\devel\libyal\libewf_test\libewf\vs2022\Release\x64\bzip2.lib' [E:\devel\libyal\libewf_test\libewf\vs2022\libewf\libewf.vcxproj]

When I checked the cause, I found that the compiled bzip2.dll does not export any APIs. That's why bzip2.dll did not have bzip2.lib. bz2

To avoid that, I simply changed the vcproj file DynamicLibrary to StaticLibrary. Then the error above was resolved.

joachimmetz commented 3 months ago

Thanks for the suggested changes, but bzip2 support is experimental and not required. Will not merge these change.