File: INSTALL

package info (click to toggle)
glpk-java 1.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 3,580 kB
  • sloc: sh: 3,609; java: 1,794; xml: 259; makefile: 154; ansic: 35
file content (125 lines) | stat: -rw-r--r-- 2,549 bytes parent folder | download | duplicates (4)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Installing glpk-java on your computer
*************************************

POSIX
=====

Requirements
------------

To install glpk-java you will need the following
- gcc
- libtool
- SWIG
- GLPK
- Java JDK

For Debian and Ubuntu the following packages should be installed
- build-essential
- glpk
- openjdk-7-jdk or openjdk-6-jdk 
- libtool
- swig

For Fedora the following packages should be installed
- gcc
- glpk-devel
- java-1.7.0-openjdk-devel or java-1.6.0-openjdk-devel
- libtool
- swig

Environment variable JAVA_HOME must be set.

Unpacking the distribution file
-------------------------------

Copy the distribution file to a working directory.
Check the checksums with the following commands:

        md5sum glpk-java-X.Y.tar.gz
        sha1sum glpk-java-X.Y.tar.gz

Unpack the archive with the following command:

        tar -xzf glpk-java-X.Y.tar.gz

Now change to the new direcotry glpk-java-X.Y

Configuring the package
-----------------------

To configure the package use command

       ./configure

The GLPK for Java dynamic link library is loaded from the path specified by
java.library.path. If you want the GLPK dynamic link library also to be loaded
from this path use

       ./configure --enable-libpath


OS X has jni.h in a special path. You may want to specify this path in the
parameters CPPFLAGS and SWIGFLAGS for the configure script, e.g.

        ./configure \
        CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers \
        SWIGFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers 

If libglpk.so is in a special path you may specify this path using parameter
LDFLAGS, e.g.

        ./configure LDFLAGS=-L/opt/lib

Compiling the package
---------------------

The package is compiled with the command 

       make

Check the package
-----------------

To check if everything is built correctly use the command

       make check

Install the package
-------------------

To install the package you must be root or a suodoer. As
sudoer use the command

       sudo make install

Windows
=======

Requirements
------------

GLPK
Swig
Windows SDK
Visual c++
Java JDK

Configure the package
---------------------

Change to directory w32 or w64 depending on whether you use
a 32 or 64 bit version of Windows.

Adjust the pathes specified in the batchfile (e.g. Build_JNI_with_VC10_DLL.bat).

Compile the package
-------------------

Execute the batchfile (e.g. Build_JNI_with_VC10_DLL.bat).

Install the package
-------------------

Copy the jar file and the dll to your preferred pathes.