Hi.
I am installing glpk-java on my computer (Ubuntu Karmic) and have downloaded the .tar file from your repository. I am strictly following your INSTALL - file, but I get compiling issues. I get the following error messages when doing the #39;make #39; operation: jar cf glpk-java-javadoc.jar -C ./target/apidocs . jar cf glpk-java-sources.jar -C ./src/main/java . javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \      -d ./target/classes *.java GlpkCallback.java:17: error: glp_tree cannot be resolved to a type glp_tree tree; ^^^^^^^^ GlpkCallback.java:18: error: GLPK cannot be resolved tree = GLPK.glp_java_get_tree_object(lTree);    ^^^^ GlpkCallbackListener.java:7: error: glp_tree cannot be resolved to a type public void callback(glp_tree tree);           ^^^^^^^^ 3 problems (3 errors) I have attached a .txt file with all the output previous to this. The path to the glpk.h file and the version of glpk should be right, I have GLPK version 4.44 installed. I am using Java 6. I hope you can help me, I have tried for several hours without succes..! Anders HelmarHi.
I am installing glpk-java on my computer (Ubuntu Karmic) and have downloaded the .tar file from your repository.
I am strictly following your INSTALL - file, but I get compiling issues. I get the following error messages when doing the 'make' operation:
jar cf glpk-java-javadoc.jar -C ./target/apidocs .
jar cf glpk-java-sources.jar -C ./src/main/java .
javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \
-d ./target/classes *.java
GlpkCallback.java:17: error: glp_tree cannot be resolved to a type
glp_tree tree;
^^^^^^^^
GlpkCallback.java:18: error: GLPK cannot be resolved
tree = GLPK.glp_java_get_tree_object(lTree);
^^^^
GlpkCallbackListener.java:7: error: glp_tree cannot be resolved to a type
public void callback(glp_tree tree);
^^^^^^^^
3 problems (3 errors)
I have attached a .txt file with all the output previous to this.
The path to the glpk.h file and the version of glpk should be right, I have GLPK version 4.44 installed. I am using Java 6.
I hope you can help me, I have tried for several hours without succes..!
Anders Helmar
and...@svumpukkel:/usr/local/lib/glpk-java/glpk-java-1.0.14$ sudo make cd swig; make all make[1]: Går til katalog '/usr/local/lib/glpk-java/glpk-java-1.0.14/swig' echo mkdir -p target/classes mkdir -p target/apidocs mkdir -p src/c mkdir -p src/main/java/org/gnu/glpk cp *.java src/main/java/org/gnu/glpk swig -I/usr/local/include -I/usr/include -java -package org.gnu.glpk -o src/c/glpk_wrap.c \ -outdir src/main/java/org/gnu/glpk glpk.i libtool --mode=compile gcc -I/usr/local/include -I/usr/include -c -fPIC src/c/glpk_wrap.c libtool: compile: gcc -I/usr/local/include -I/usr/include -c -fPIC src/c/glpk_wrap.c -fPIC -DPIC -o .libs/glpk_wrap.o src/c/glpk_wrap.c: In function ‘glp_java_get_tree_object’: src/c/glpk_wrap.c:207: warning: cast to pointer from integer of different size libtool: compile: gcc -I/usr/local/include -I/usr/include -c -fPIC src/c/glpk_wrap.c -o glpk_wrap.o >/dev/null 2>&1 libtool --mode=link \ gcc -version-info 29:0:29 -revision 4.44 \ -g -O -o libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo -lglpk libtool: link: gcc -shared .libs/glpk_wrap.o -lglpk -Wl,-soname -Wl,libglpk_java.so.0 -o .libs/libglpk_java.so.0.29.0 libtool: link: (cd ".libs" && rm -f "libglpk_java.so.0" && ln -s "libglpk_java.so.0.29.0" "libglpk_java.so.0") libtool: link: (cd ".libs" && rm -f "libglpk_java.so" && ln -s "libglpk_java.so.0.29.0" "libglpk_java.so") libtool: link: ar cru .libs/libglpk_java.a glpk_wrap.o libtool: link: ranlib .libs/libglpk_java.a libtool: link: ( cd ".libs" && rm -f "libglpk_java.la" && ln -s "../libglpk_java.la" "libglpk_java.la" ) javadoc -sourcepath ./src/main/java org.gnu.glpk -d ./target/apidocs Loading classes for package org.gnu.glpk... Constructing Javadoc information... WARNING: Cannot locate class java.lang.Object referenced in class org.gnu.glpk.glp_iocp WARNING: Cannot locate class RuntimeException referenced in class org.gnu.glpk.GlpkException WARNING: Error while loading class LinkedList Resolving references in comments... Resolving references in classes... Resolving references in packages... Resolving references in class comments... Resolving references in package comments... Running doclet... WARNING: Option -validhtml hasn't been specified. Generated HTML will not validate. Building cross-reference information... Writing overview files... Writing index... Writing HTML files for package org.gnu.glpk 4 warnings jar cf glpk-java-javadoc.jar -C ./target/apidocs . jar cf glpk-java-sources.jar -C ./src/main/java . javac -source 1.6 -target 1.6 -sourcepath ./src/main/java \ -d ./target/classes *.java GlpkCallback.java:17: error: glp_tree cannot be resolved to a type glp_tree tree; ^^^^^^^^ GlpkCallback.java:18: error: GLPK cannot be resolved tree = GLPK.glp_java_get_tree_object(lTree); ^^^^ GlpkCallbackListener.java:7: error: glp_tree cannot be resolved to a type public void callback(glp_tree tree); ^^^^^^^^ 3 problems (3 errors) make[1]: *** [all] Fejl 1 make[1]: Forlader katalog '/usr/local/lib/glpk-java/glpk-java-1.0.14/swig' make: *** [all] Fejl 2
_______________________________________________ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/listinfo/help-glpk