help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Trouble building GLPK-Java-1.0.6 on a Mac


From: Kristian Brock
Subject: [Help-glpk] Trouble building GLPK-Java-1.0.6 on a Mac
Date: Thu, 3 Dec 2009 15:20:55 +0300

Hi,


I was directed here by http://glpk-java.sourceforge.net/




I am having trouble getting GLPK-Java to work on my Mac (Leopard).




So far I have:

- successfully fetched the MacPorts port of GLPK

- tried to run the make command in glpk-java-1.0.6, receiving errors like 
"unknown option character `-' in: --mode=compile"

- discovered that the Apple shipment of libtool is not up to the job

- successfully fetched the MacPorts port of libtool, called glibtool

- changed in makefile the calls to "libtool" to instead use "glibtool"

- tried to build again, this time receiving errors like "unable to infer tagged 
configuration"

- discovered that I might overcome these errors by including a dummy parameter 
like "--tag=junk"

- tried to build again, this time receiving the error "jni.h: No such file or 
directory"




I realise that JNI is the technology that lets Java call libraries, and I can 
find jni.h in the directories of versions 1.5 and 1.6 of my JavaVM.framework. 
But I can not work out where (g)libtool expects jni.h to be.




The output of make immediately leading to the error is:

"mkdir -p src/java

mkdir -p java/org/gnu/glpk

swig -I/usr/local/include -I/usr/include -I/opt/local/include -java -package 
org.gnu.glpk -o src/java/glpk_wrap.c -outdir java/org/gnu/glpk glpk.i 

glibtool --tag=junk --mode=compile gcc -c -fPIC src/java/glpk_wrap.c

glibtool: ignoring unknown tag junk

glibtool: compile:  gcc -c -fPIC src/java/glpk_wrap.c  -fno-common -DPIC -o 
.libs/glpk_wrap.o

src/java/glpk_wrap.c:121:17: error: jni.h: No such file or directory"




Any help greatly appreciated.

Thanks,

Kristian




Hi,

I was directed here by http://glpk-java.sourceforge.net/

I am having trouble getting GLPK-Java to work on my Mac (Leopard).

So far I have:
- successfully fetched the MacPorts port of GLPK
- tried to run the make command in glpk-java-1.0.6, receiving errors like "unknown option character `-' in: --mode=compile"
- discovered that the Apple shipment of libtool is not up to the job
- successfully fetched the MacPorts port of libtool, called glibtool
- changed in makefile the calls to "libtool" to instead use "glibtool"
- tried to build again, this time receiving errors like "unable to infer tagged configuration"
- discovered that I might overcome these errors by including a dummy parameter like "--tag=junk"
- tried to build again, this time receiving the error "jni.h: No such file or directory"

I realise that JNI is the technology that lets Java call libraries, and I can find jni.h in the directories of versions 1.5 and 1.6 of my JavaVM.framework. But I can not work out where (g)libtool expects jni.h to be.

The output of make immediately leading to the error is:
"mkdir -p src/java
mkdir -p java/org/gnu/glpk
swig -I/usr/local/include -I/usr/include -I/opt/local/include -java -package org.gnu.glpk -o src/java/glpk_wrap.c -outdir java/org/gnu/glpk glpk.i 
glibtool --tag=junk --mode=compile gcc -c -fPIC src/java/glpk_wrap.c
glibtool: ignoring unknown tag junk
glibtool: compile:  gcc -c -fPIC src/java/glpk_wrap.c  -fno-common -DPIC -o .libs/glpk_wrap.o
src/java/glpk_wrap.c:121:17: error: jni.h: No such file or directory"

Any help greatly appreciated.
Thanks,
Kristian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]