]> pd.if.org Git - liblfds/blob - liblfds/liblfds6.1.0/test/building.txt
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds6.1.0 / test / building.txt
1 building test
2 =============
3
4 Windows (user-mode)
5 ===================
6 1. Use Microsoft Visual Studio 2008 or Visual C++ 2008 Express Edition (or
7    later versions) to load "liblfds.sln".  The "Win32" platform is x86,
8    the "x64" platform is x64.  The test programme provides the "Release"
9    and "Debug" targets.  The other targets ("Release DLL", "Release Lib",
10    "Debug DLL" and "Debug Lib") are carried over will-nilly from the liblds
11    library.
12
13    All builds will work, but DLL builds will require the DLL from liblfds
14    to be placed into a location where the test executable can find it (e.g.
15    the same directory).
16
17 2. Use Microsoft Windows SDK and GNUmake to run makefile.windows (obviously
18    you'll need to have run setenv.bat or the appropriate vcvars*.bat first;
19    you can build for x64/64-bit and x86/32-bit - just run the correct batch
20    file).
21
22    If liblfds has been built as a DLL, the DLL from liblfds needs to be
23    placed into a location where the test executable can find it (e.g. the
24    same directory).
25
26    Targets are "rel", "dbg" and "clean".  You need to clean between switching
27    targets.
28
29 Windows (kernel)
30 ================
31 No build supported, since this is a command line utility.
32
33 Linux
34 =====
35 Use GNUmake to run "makefile.linux".  Targets are "rel", "dbg" and
36 "clean".  You need to clean between switching targets.
37
38 If liblfds has been built as a shared object, the shared object file from
39 liblfds will need to be placed somewhere the text executable can find it.
40
41 A convenient solution is to place the shared object file in the same
42 directory as the text executable and set the environment variable
43 "LD_LIBRARY_PATH" to ".", e.g. in bash;
44
45 export LD_LIBRARY_PATH=.
46
47 Remember to unset after finishing testing, or your system will continue
48 to scan the current directory for shared object files.
49
50 unset LD_LIBRARY_PATH
51