help-octave
[Top][All Lists]
Advanced

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

problem compiling octave package java on cygwin 1.7


From: Stefan Holst
Subject: problem compiling octave package java on cygwin 1.7
Date: Fri, 20 Nov 2009 14:44:45 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi Marco,

after working my way through all the packages that octave does not declare as being dependent on, but mkoctfile actually needs, I still get to the following problem: I'm curious to get jhandles to work. The first step is to get the java package installed. And there I'm getting stuck. I tried to do it inside octave using pkg install But this does not succeed. Now I try to perform ./configure and make manually and get to the following problem:
make[1]: Entering directory `/home/stefanh/java-1.2.6/src'
if [ "XX" = "XX" ]; then \
mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD -IC:"/home/stefanh /JVM/include" -IC:"/home/stefanh/JVM/include/win32" -o __java__.oct __java__.cc
-ladvapi32; \
       else \
mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD -DJAVA_ARCH=\\\"\\ \" -DJAVA_HOME=\\\"/home/stefanh/JVM\\\" -IC:"/home/stefanh/JVM/include" -IC:"/h
ome/stefanh/JVM/include/win32" -o __java__.oct __java__.cc -ladvapi32; \
       fi
g++-4 -c -I/usr/include/octave-3.2.3 -I/usr/include/octave-3.2.3/octave -mieee-f p -O2 -pipe -IC:/home/stefanh/JVM/include -IC:/home/stefanh/JVM/include/win32 -D
HAVE_OCTAVE_32 -DJAVAPKG_BUILD __java__.cc -o __java__.o
__java__.cc: In function `void initialize_jvm()':
__java__.cc:339: error: `JAVA_HOME' was not declared in this scope
__java__.cc:339: error: `JAVA_ARCH' was not declared in this scope

lots of warnings afterwards. From the little that I understand I think __java__.cc does not recognize the cygwin environment. At least __WIN32__ does not seem to be defined and there are no other pragmas that cater for cygwin. Can your or Michael have a look at this? Many many thanks in advance.

A strong m-file addict



reply via email to

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