svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1235 / install / instalador-gvSIG-deb / README.txt @ 44116
History | View | Annotate | Download (2.72 KB)
1 | 29205 | jvhigon | OVERVIEW |
---|---|---|---|
2 | ========== |
||
3 | 30320 | jvhigon | This ANT script builds a gvSIG Debian package. |
4 | 29205 | jvhigon | |
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 | 30320 | jvhigon | The directory binaries/deb-etch must have the symbolic links to the native libraries |
17 | 29205 | jvhigon | |
18 | 30320 | jvhigon | 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 | 29205 | jvhigon | ========== |
24 | |||
25 | 1.- Building JNI gdal |
||
26 | Edit libjni-gdal/CMakeModules/FindGDAL.cmake and put the path where |
||
27 | gdal headers are placed. |
||
28 | 30320 | jvhigon | The easy way is install from repository (sudo aptitude install libgdal1-1.5.0-grass) and |
29 | 29205 | jvhigon | set the directory /usr/include/gdal |
30 | Define the enviroment JAVA_HOME |
||
31 | Finally, run the ant build script. |
||
32 | |||
33 | 30320 | jvhigon | 2.- Building JNI ECW (v3.3) |
34 | 30308 | jvhigon | 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 | 30320 | jvhigon | 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 | 29205 | jvhigon | 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 | 30320 | jvhigon | 5.- Building the package |
56 | 29205 | jvhigon | 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 | 31598 | jvhigon | Version number automatic |
76 | 29205 | jvhigon | |
77 | 29282 | jvhigon | KNOWN PROBLEMS |
78 | ============== |
||
79 | In the build.xml copy task doesn't preserve permission. Use task exec (with command cp) instead. |
||
80 | |||
81 | 31598 | jvhigon | 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 | 29205 | jvhigon | ANY DOUBT |
89 | ========== |
||
90 | 31598 | jvhigon | jvhigon@gvsig.org |