File: INSTALL

package info (click to toggle)
minidjvu 0.8.svn.2010.05.06+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,372 kB
  • ctags: 1,082
  • sloc: sh: 9,230; ansic: 5,788; cpp: 2,400; makefile: 259; python: 42
file content (88 lines) | stat: -rw-r--r-- 2,170 bytes parent folder | download
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
USUAL AUTOTOOLS-BASED INSTALLATION
__________________

Check that development package of libtiff is installed.
Run:
 autoreconf --install
 ./configure
 make
 make install
Will install minidjvu executable into /usr/local/bin/, as well as
various support files, documentation, development files, etc.



BLOODSHED DEV-C++
_________________

In case if you want to compile it for Windows, there's a project
file for Bloodshed Dev-C++. You will also need Libtiff for Windows,
which may be found here:
    http://gnuwin32.sourceforge.net/packages/tiff.htm



CUSTOM COMPILATION
__________________

If you want to compile it all manually, read this.

The release directory should be treated as an include directory
(usually -I or /I option). That applies both to the library and the program.

The library is built from sources in `minidjvu' subdirectory.
The program is built from sources in `src' subdirectory.

To enable TIFF support, define HAVE_LIBTIFF to 1, add libtiff include directory
to the include path, then link against libtiff.



OTHERWISE
_________

Under Linux, you can always try something like

    g++ -I. `find -name "*.c*"` -O2 -o bin/minidjvu
    
or, if you want TIFF support,

    g++ -DHAVE_LIBTIFF=1 -I. `find -name "*.c*"` -O2 -ltiff -o bin/minidjvu

Under MSVC, watch for those __declspec directives in
`minidjvu/base/0porting/0porting.h' - if you wish a DLL, turn them on.



COMPILING ON MAC
________________

That instruction was useful when there were configure scripts (are they
really useful if they can't handle the Mac stuff?).

/* This instructions were kindly sent to me by Alejandro David Weil.
 * Apparently, there are some problems with Macs, but I don't know why.
 */

After some tries I got minidjvu built and running on mac os X panther.
I had to make this:

1. setup:
export MACOSX_DEPLOYMENT_TARGET=10.3

2. run configure in this way:
LDFLAGS="-L/sw/lib" ./configure

3.before compile, modify file libtool changing the allow_undefined_flag to:
allow_undefined_flag="-undefined dynamic_lookup"

4. now run:
make 



PORTING
_______

Browse through `minidjvu/base/0porting.h' to see if it needs changing.
What next, I don't know :)