Home > libewf

libewf

Libewf is a project mainly written in C and SHELL, based on the LGPL-3.0 license.

A github repository for libewf source

Dependencies Libewf requires:

  • zlib
  • lybcrypto (OpenSSL) or Windows Crypto API from the Windows Platform SDK

Static compilation Creating a static library ./configure --enable-shared=no

Creating static executables CFLAGS=-static ./configure

Creating a libewf DLL Currently 2 methods of creating a libewf DLL are supported:

  • using libtool
  • using Microsoft Visual Studio C++

Creating a libewf DLL using libtool You'll need Cygwin of MingW with a libtool version that supports building DLLs.

By building the library: ./configure make libewf

You should end up with a DLL something like: libewf-/libewf/.libs/cygewf-0.dll

Creating a libewf DLL using Microsoft Visual Studio C++ You'll need:

  • Microsoft Visual Studio C++ The provided Visual Studio project files were created using the 2005 express version. The express verion is available on the Microsoft website
  • Microsoft Platform API for the Windows Crypto API The platform API verion is available on the Microsoft website
  • The zlib DLL package including the .lib file available from the zlib project site: http://www.gzip.org/zlib/

Extract the contents of the zlib DLL package to: libewf-/msvscpp/zlib

You should be able to build the libewf DLL using the provided project files. Note that the project files contain a debug and release configuration.

Using libewf DLL Make sure you use define LIBEWF_DLL_IMPORT before including , i.e. CFLAGS=-DLIBEWF_DLL_IMPORT

When the libewf DLL was build with Microsoft Visual Studio you'll need the zlib DLL. To run the executables on other platforms than the build platform, you'll need the Microsoft Visual Studio redistributable DLLs. If you want to create your own Microsoft Visual Studio project files note that libewf needs to be compiled with the paramete /MD, because stderr is passed from the executables.

Mac OS X

  • missing libtoolize
  • building multiple architure binaries

Missing libtoolize Use glibtoolize instead

Building multiple architecture binaries I.e. on Mac OS X 10.4 run the following commands: CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" ./configure --disable-dependency-tracking --prefix=$PWD/macosx/tmp/ make make install

The binaries are installed in $PWD/macosx/tmp/

Cygwin

  • libuuid support

libuuid support Install the e2fsprogs package and run the following commands: LDFLAGS=-L/usr/lib/e2fsprogs ./configure make make install

Previous:demadatter