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:
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:
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-
Creating a libewf DLL using Microsoft Visual Studio C++ You'll need:
Extract the contents of the zlib DLL package to:
libewf-
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
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 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 Install the e2fsprogs package and run the following commands: LDFLAGS=-L/usr/lib/e2fsprogs ./configure make make install