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.
To avoid that, I simply changed the vcproj file DynamicLibrary to StaticLibrary. Then the error above was resolved.
Although building bzip2 was successful when using build.ps1, the libewf compilation failed due to a linking error with like the message below.
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](https://github.com/libyal/libewf/assets/20717881/b7bd94b8-333d-42bc-8b11-3bc12e5536f2)
To avoid that, I simply changed the vcproj file DynamicLibrary to StaticLibrary. Then the error above was resolved.