[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] glpk java
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] glpk java |
Date: |
Tue, 02 Mar 2010 23:44:35 +0100 |
Hello Fabrizio,
a package libglpk-java is available for Ubuntu lucid,
unfortunately it is the glpk-java 1.0.1 version.
When I compile glpk-java on Debian Squeeze
<jni.h> is taken from:
/usr/lib/gcc/i486-linux-gnu/4.4/include/jni.h
This file is included in package libgcj10-dev which is
part of package java-gcj-compat-dev.
Hence I suggest you install the following packages:
sudo apt-get install java-gcj-compat-dev
sudo apt-get install swig
sudo apt-get install libtool
With these packages installed glpk-java should
compile without changes to the Makefile.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Tue, 2 Mar 2010 18:10:11 +0300
> Von: Fabrizio Caruso <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] glpk java
> I am trying to install a java interface
> for glpk.
>
> I first found the one at http://bjoern.dapnet.de/glpk/
> which does not really work: it loads
> the problem and correctly reports the number of rows
> but when asked to solve the problem it says
> the problem has no rows.
>
> I later found out about the newer interface
> at http://glpk-java.sourceforge.net/ which
> requires compilation but fails to compile:
>
> I followed the instructions found in the file INSTALL
> (Makefile in the swig directory seemed ok to me and
> therefore I only run makefile in the main directoryB)
>
>
> The problem is that "make" produces the following error:
> "
> src/java/glpk_wrap.c:133:17: error: jni.h: No such file or directory
> "
> (despite the fact that jni.h is in my system)
>
> I have:
> Ubuntu 9.10
> latest glpk (4.43) installed and working
> java version "1.6.0_0"
> gcc 4.4.1
>
>
> I have also tried to include in Makefile
> the directory where jni.h
> is found (/usr/lib/jvm/java-6-sun/include):
>
> # installation path of the include files
> SWIG_FLAGS := -I/usr/local/include -I/usr/include
> -I/usr/lib/jvm/java-6-sun/include
> # copy version-info from glpk package: src/Makefile.am
> VERSION_INFO := 28:0:28
> # copy revision from glpk package: configure.ac
> REVISION := 4.43
> # installation path for package
> prefix = /usr/local
> ...
>
> but with the same result.
>
>
> Thanks a lot for any help!
>
>
> Fabrizio
>
>
>
>
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
--
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02