summaryrefslogtreecommitdiff
path: root/xsane-WIN32-compilation.txt
blob: 0373dc9f3dadf10a0f6b1326bd1a027b5706076a (plain)
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
To compile xsane on WIN32/CYGWIN

- install cygwin with several packages like gcc...
  donĀ“t ask me what packages exactly are needed, I
  simply installed the complete thing.

- install gtk+-2.2.x with all necessary libraries:
  - atk
  - glib
  - gmodules
  - gobject
  - gthread
  - gdk
  - gdk-pixbuf
  - pango, pangowin32

- install libiconv-1.8-w32-1 (or may be newer)

- mkdir c:/sane
- mkdir c:/sane/bin
- mkdir c:/sane/etc

- cp /bin/cygwin-1.dll   c:/sane/bin
- cp /bin/cygiconv-2.dll c:/sane/bin
- cp /bin/cygintl-2.dll  c:/sane/bin
- cp /bin/cygjpeg-62.dll c:/sane/bin
- cp /bin/cygjpeg6b.dll  c:/sane/bin
- cp /bin/cygpng2.dll    c:/sane/bin
- cp /bin/cygpng10.dll   c:/sane/bin
- cp /bin/cygpng12.dll   c:/sane/bin
- cp /bin/cygtiff4.dll   c:/sane/bin
- cp /bin/cygz.dll       c:/sane/bin
- cp /bin/libintl-1.dll  c:/sane/bin

- cp -a /etc/pango       c:/sane/etc/
- cp -a /etc/gtk-2.0     c:/sane/etc/

May be with different source path:
- cp /libiconv-1.8-w32-1/iconv.dll c:/sane/bin

- compile and install sane backends-1.0.15 or later
  - ./configure --prefix=c:/sane
  - make
  - make install

- compile and install xsane:
  - export SANE_CONFIG=c:/sane/bin/sane-config
  - ./configure --prefix=c:/sane
  - edit src/Makefile and replace
	-DLOCALEDIR=$(datadir)/locale
    by
	-DLOCALEDIR=/cygdrive/c/sane/share/locale
    comment: some libraries and programs need the directories as c:\...,
             some libraries work with c:\... and /cygdrive/c/...,
             libintl only works with /cygdrive/c/...
  - cp po/UTF8/* po	(may be this is not necessary any more)
  - make
  - make install

- setup sane:
  - edit c:/sane/etc/sane.d/dll.conf
    and make sure the backend you want to use is enabled
  - edit c:/sane/etc/sane.d/net.conf
    and enter the IP address or the NetBEUI name of the
    server where the scanner is connected
  - edit c:/sane/etc/sane.d/"backendname".conf
    to configure the backend "backendname"