libyal / libewf

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

write access currently not supported - compiled without zlib #157

Closed pipizhao-2020 closed 3 years ago

pipizhao-2020 commented 3 years ago

I don't know why this error: write access currently not supported - compiled without zlib appears. is there a problem with zlib?

joachimmetz commented 3 years ago

This means you did not compile the source with zlib, which it needs to support writing EWF files.

the output of configure should tell you something like:

Building:
   ...
   ADLER32 checksum support:                 zlib
   DEFLATE compression support:              zlib
   ...

Features:
   ...
   Write support:                            yes
   ...
pipizhao-2020 commented 3 years ago

but i have compiled the ewfacquire with zlib.lib

joachimmetz commented 3 years ago

@pipizhao-2020 can you then be more specific about what steps you took, build details, platform, etc. I cannot help you if you don't provide the necessary information to do so.

pipizhao-2020 commented 3 years ago

I build ewfacquire in visual studio 2017 in windows

joachimmetz commented 3 years ago

I built ewfacquire in visual studio 2017 in windows

Which version? directly from the git source or one of the experimental pre-releases ? https://github.com/libyal/libewf/releases

pipizhao-2020 commented 3 years ago

I use the command: git clone https://github.com/libyal/libewf.git to download the code , This should be the latest version.

joachimmetz commented 3 years ago

So that is the development version of the experimental version of libewf, which unless you're developing or testing libewf, I do not recommend using. Use this version https://github.com/libyal/libewf-legacy instead for "production purposes"

Regarding the issue you might be missing HAVE_WRITE_SUPPORT in the build process try adding it to https://github.com/libyal/libewf/blob/main/common/config_winapi.h

pipizhao-2020 commented 3 years ago

I want to use it for development,I should know how to create E01 file and parse E01 file. Do you have E01 relevant information or some related principles? i have try adding it to config_winapi.h and it works. but it create a lot of files like test.E01、test.E02、test.E03 and so on. is that normal? i just want to save the hardDisk data in one file like test.E01. thank you very much for your answer.

joachimmetz commented 3 years ago

I want to use it for development,I should know how to create E01 file and parse E01 file.

if that means you're not developing libewf itself, use the legacy version

but it create a lot of files like test.E01、test.E02、test.E03 and so on. is that normal?

yes

i just want to save the hardDisk data in one file like test.E01

change the format setting before writing the data

pipizhao-2020 commented 3 years ago

thank you for your answers, i should read your code in detail now.

joachimmetz commented 3 years ago

i should read your code in detail now.

start with the include header include/libewf.h and format documentation https://github.com/libyal/libewf/tree/main/documentation that should give you an idea abut the settings/features

joachimmetz commented 3 years ago

Question seems to have been answered, closing issue