File: README.dll

package info (click to toggle)
libpff 20120802-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,524 kB
  • ctags: 6,784
  • sloc: ansic: 214,206; sh: 11,485; makefile: 1,229; python: 138; java: 137; sed: 16
file content (68 lines) | stat: -rw-r--r-- 2,003 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Creating and using a DLL
* Creating a DLL
* Using the DLL


Creating a DLL
There are multiple methods of creating a DLL:
* using Cygwin
* using Microsoft Visual Studio C++
* using MingW


Creating a DLL using Cygwin
To create a DLL using Cygwin you'll need:
Cygwin with the following packages:
* binutils
* gcc-core
* autoconf
* automake
* make
* libtool
* gettext
* libiconv

Building the library:
./configure
make library

You should end up with the following DLL:
libpff-<version>/libpff/.libs/cygpff-0.dll

Older versions of Cygwin might require e2fsprogs for libuuid support
Install the e2fsprogs package and run the commands as following:
LDFLAGS=-L/usr/lib/e2fsprogs ./configure
make library


Creating a DLL using Microsoft Visual Studio C++
To create a DLL using Microsoft Visual Studio C++ you'll need:
* Microsoft Visual Studio C++
  The provided Visual Studio project files were created using
  the 2008 express version. The express verion is available on the
  Microsoft website

Make sure to check if your build environment defines the correct WINVER for your build.
The code uses WINAPI version specific functions based on WINVER.
You can define a custom WINVER in the Microsoft Visual Studio C++ project files or in libpff-<version>/common/config_msc.h

You should be able to build the DLL using the provided project files.
Note that the project files contain a Release and VSDebug configuration.

If you want to create your own Microsoft Visual Studio project files note that libpff needs
to be compiled with the parameter /MD, because stderr is passed from the executables.


Creating a DLL using MingW
To create a DLL using MingW see README.mingw

You should end up with the following DLL:
libpff/.libs/libpff-<version>.dll


Using the DLL
Make sure you use define LIBPFF_DLL_IMPORT before including <libpff.h>,

When the DLL was build with Microsoft Visual Studio, you'll also need the Microsoft Visual Studio redistributable DLLs
to run on other platforms than the build platform.