| 1 |
## |
| 2 |
## $Id: README.cygwin 62 2003-09-26 06:16:12Z troth $ |
| 3 |
## |
| 4 |
## Contributed by Eric Weddington. |
| 5 |
## |
| 6 |
|
| 7 |
To build avarice for Windows requires the use of Cygwin |
| 8 |
<http://www.cygwin.com/> Specifically, this was built using the Previous |
| 9 |
package of Cygwin. In the Cygwin installer, select the Prev radio button up |
| 10 |
top when installing the packages. This should install cygwin 1.3.22-1, from |
| 11 |
the Base tree in the Cygwin setup. |
| 12 |
|
| 13 |
Get avarice from anonymous CVS as explained on the avarice project web |
| 14 |
page. Then, in the avarice project directory: |
| 15 |
|
| 16 |
$ export $PREFIX=<your installation directory here> |
| 17 |
$ ./Bootstrap |
| 18 |
$ mkdir build |
| 19 |
$ cd build |
| 20 |
$ ../configure --prefix=$PREFIX |
| 21 |
$ make |
| 22 |
$ make install |
| 23 |
|
| 24 |
If there are errors like: "undefined reference to `_htab_create_alloc'" |
| 25 |
then re-install binutils (and not GCC) from Cygwin and re-run! This error |
| 26 |
means that the libiberty functions that are needed in avarice need to come |
| 27 |
from a binutils version of libiberty and not from a GCC version of libiberty. |
| 28 |
|
| 29 |
This will create avarice.exe, which requires the following DLLs to execute: |
| 30 |
- cygwin1.dll |
| 31 |
- cygintl-2.dll |
| 32 |
- cygiconv-2.dll |
| 33 |
|
| 34 |
In Cygwin, you can check to see what, if any, DLLs are required of an |
| 35 |
executable by using the program cygcheck.exe that comes with Cygwin. For |
| 36 |
example if you cd to the $PREFIX/bin directory after building the project, |
| 37 |
and execute |
| 38 |
|
| 39 |
$ cygcheck ./avarice.exe |
| 40 |
|
| 41 |
You should get something like (depending on your OS and it's installation |
| 42 |
location): |
| 43 |
|
| 44 |
.\avarice.exe |
| 45 |
.\cygwin1.dll |
| 46 |
C:\WINNT\System32\KERNEL32.dll |
| 47 |
C:\WINNT\System32\NTDLL.DLL |
| 48 |
.\cygintl-2.dll |
| 49 |
.\cygiconv-2.dll |
| 50 |
|
| 51 |
|
| 52 |
If you want to build avarice with less DLL dependencies, then, in the avarice |
| 53 |
project directory: |
| 54 |
|
| 55 |
$ export $PREFIX=<your installation directory here> |
| 56 |
$ ./Bootstrap |
| 57 |
$ mkdir build |
| 58 |
$ cd build |
| 59 |
$ ../configure --prefix=$PREFIX |
| 60 |
$ make LDFLAGS='-static' LIBS='-lbfd -liberty -lintl -liconv' |
| 61 |
$ make install |
| 62 |
|
| 63 |
When you build avarice this way, you can verify what DLLs are required with |
| 64 |
cygcheck in the $PREFIX/bin directory: |
| 65 |
|
| 66 |
$ cygcheck ./avarice.exe |
| 67 |
|
| 68 |
.\avarice.exe |
| 69 |
.\cygwin1.dll |
| 70 |
C:\WINNT\System32\KERNEL32.dll |
| 71 |
C:\WINNT\System32\NTDLL.DLL |