Statistics
| Revision:

svn-gvsig-desktop / tags / v1_10_0_Build_1257 / install / instalador-gvSIG-deb / README.txt @ 42158

History | View | Annotate | Download (2.72 KB)

1
OVERVIEW
2
==========
3
This ANT script builds a gvSIG Debian package. 
4

    
5
PRECONDITIONS
6
==========
7
- operative system with a GLIBC compatible version for all platforms
8
Ex: If it's built on a Ubuntu 9.04 it won't run in a Debian etch 
9

    
10
- external commands cp, ln, dpck 
11
- external command make and cmake to build natives
12

    
13
- a workspace in built without errors and the directory _fwAndami/gvSIG contains
14
all the extensions
15

    
16
The directory binaries/deb-etch must have the symbolic links to the native libraries
17

    
18
The main dependencies are:
19
libgdal1.5.0 for raster support (conflicts with v1.6 in order to support grass format)
20
libstdc++5 for mrsid support
21

    
22
BUILD
23
==========
24

    
25
1.- Building JNI gdal
26
Edit libjni-gdal/CMakeModules/FindGDAL.cmake and put the path where 
27
gdal headers are placed.
28
The easy way is install from repository (sudo aptitude install libgdal1-1.5.0-grass) and
29
set the directory /usr/include/gdal
30
Define the enviroment JAVA_HOME
31
Finally, run the ant build script.
32

    
33
2.- Building JNI ECW (v3.3)
34
Edit libjni-ecw/CMakeModules/FindECW.cmake and put the path where 
35
ECW headers are placed (ie. /usr/local/include)
36
Define the enviroment JAVA_HOME 
37
Finally, run the ant build script.
38

    
39
3.- Building JNI MrSID  (v7.0.0)
40
Edit libjni-mrsid/CMakeModules/FindMRSID.cmake and put the path where 
41
MrSID headers are placed (ie /usr/local/Geo_DSDK-7.0.6.2167)
42
NOTE: each group of lines has a different include directory!!
43
Set gcc-3.4 as the default gcc compiler
44
Set g++-3.4 as the default g++ compiler
45
Change libstdc++ in the compiler ( /usr/lib/gcc/i486-linux-gnu/3.4.6). Its needed to point libstdc++.so.5
46
Define the enviroment JAVA_HOME
47
Finally, run the ant build script 
48

    
49
4.- Building JNI proj
50
Edit libjni-proj4/Makefile to set the directory where is placed the JNI headers
51
For example:
52
"default_PROJECT_INCS= -Iinclude -I/usr/lib/jvm/java-1.5.0-sun/include -I/usr/lib/jvm/java-1.5.0-sun/include/linux" 
53
In a shell execute make
54

    
55
5.- Building the package
56
Run the ant script and the binary will be placed in the directory "dist"
57

    
58

    
59
POSTCONDITIONS
60
==============
61

    
62
-gvSIG Files:
63
/opt/gvSIG/bin  --> script to run gvSIG and extensions
64
/opt/gvSIG/lib  --> java binaries (jars) 
65
/opt/gvSIG/libs --> native libraries (so)
66

    
67
-System files:
68
/usr/share/mime/packages/gvsig.xml --> gvSIG mime type definition 
69
/usr/share/applications/gvsig.desktop --> desktop shortcut definition
70
/usr/share/icons/ico-gvSIG.png --> shortcut icon
71

    
72
TODO
73
=====
74
check /usr/share/mime/packages/gvsig.xml
75
Version number automatic
76

    
77
KNOWN PROBLEMS
78
==============
79
In the build.xml copy task doesn't preserve permission. Use task exec (with command cp) instead.
80

    
81
HOWTO INSTALL
82
==============
83
aptitude install libgdal1-1.5.0-grass sun-java5-jre
84
aptitude remove libgdal1-1.6.0
85
dpkg -i *.deb
86

    
87

    
88
ANY DOUBT
89
==========
90
jvhigon@gvsig.org