help-octave
[Top][All Lists]
Advanced

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

Re: Octave 3.2.0 mingw jhandles


From: Karl M
Subject: Re: Octave 3.2.0 mingw jhandles
Date: Thu, 18 Jun 2009 22:30:31 -0700 (PDT)

Hi...

I tried to install the java package after installing jdk6u14 and jogl and
the following is the output.

To install JHandles, you'll need to have the required dependencies
installed, and make them available to the compiler. In practice:
- install octave-forge java package
- install Sun JDK (>= 1.6)
- install JOGL
- put JOGL DLL and jar files into your PATH environment variable
- define JAVA_INCS variable to include the JDK include directory,
that is something like (note that having spaces in the JDK install
dir will make things a little more complex, as you'll have to escape
the space with backslashes)

-IC:/where/java/is/installed/include
-IC:/where/java/is/installed/include/win32

- try to install JHandles with "pkg" command

Michael.

> pkg install java-1.2.6.tar.gz
__java__.cc: In member function 'void JVMArgs::read_java_opts(const
std::string&)':
__java__.cc:106: error: 'cerr' is not a member of 'std'
__java__.cc: In member function 'void JVMArgs::update()':
__java__.cc:137: error: 'cout' is not a member of 'std'
__java__.cc: In function 'void initialize_jvm()':
__java__.cc:384: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In function '_jobject* make_java_index(JNIEnv*, const
octave_value_list&)':
__java__.cc:587: error: 'class idx_vector' has no member named 'capacity'
__java__.cc:589: error: 'class idx_vector' has no member named 'capacity'
__java__.cc: In function 'octave_value get_array_elements(JNIEnv*,
_jobject*, const octave_value_list&)':
__java__.cc:611: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In function 'octave_value set_array_elements(JNIEnv*,
_jobject*, const octave_value_list&, const octave_value&)':
__java__.cc:633: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In function 'string_vector get_invoke_list(JNIEnv*,
_jobject*)':
__java__.cc:679: error: 'class string_vector' has no member named 'qsort'
__java__.cc: In function 'octave_value box(JNIEnv*, _jobject*, _jclass*)':
__java__.cc:782: warning: deprecated conversion from string constant to
'char*'
__java__.cc:847: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In function 'octave_value box_more(JNIEnv*, _jobject*,
_jclass*)':
__java__.cc:926: warning: unused variable 'cols'
__java__.cc: In function 'int unbox(JNIEnv*, const octave_value&,
jobject_ref&, jclass_ref&)':
__java__.cc:987: warning: deprecated conversion from string constant to
'char*'
__java__.cc:1051: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In function 'int java_event_hook()':
__java__.cc:1116: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In member function 'octave_value
octave_java::do_java_invoke(JNIEnv*, const std::string&, const
octave_value_list&)':
__java__.cc:1695: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In static member function 'static octave_value
octave_java::do_java_invoke(JNIEnv*, const std::string&, const std::string&,
const octave_
value_list&)':
__java__.cc:1720: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In static member function 'static octave_value
octave_java::do_java_create(JNIEnv*, const std::string&, const
octave_value_list&)':
__java__.cc:1745: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In member function 'octave_value
octave_java::do_java_get(JNIEnv*, const std::string&)':
__java__.cc:1766: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In static member function 'static octave_value
octave_java::do_java_get(JNIEnv*, const std::string&, const std::string&)':
__java__.cc:1786: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In member function 'octave_value
octave_java::do_java_set(JNIEnv*, const std::string&, const octave_value&)':
__java__.cc:1812: warning: deprecated conversion from string constant to
'char*'
__java__.cc: In static member function 'static octave_value
octave_java::do_java_set(JNIEnv*, const std::string&, const std::string&,
const octave_val
ue&)':
__java__.cc:1834: warning: deprecated conversion from string constant to
'char*'
mingw32-g++-4.3.0-dw2: __java__.o: No such file or directory
make: *** [__java__.oct] Error 1
'make' returned the following error: make: Entering directory
`/tmp/oct-2/java-1.2.6/src'
if [ "XX" = "XX" ]; then \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD -IC:/Program\
Files/java/include -IC:/Program\ Files/java/include/win32 -o __java__.oct
__java__.cc -ladvapi32; \
        else \
                mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD
-DJAVA_ARCH=\\\"\\\" -DJAVA_HOME=\\\"\\\" -IC:/Program\ Files/java/include
-IC:/Program\
 Files/java/include/win32 -o __java__.oct __java__.cc -ladvapi32; \
        fi
mingw32-g++-4.3.0-dw2 -c -march=i686 -mtune=generic -O2  
-Ic:\Octave\include\octave-3.2.0 -Ic:\Octave\include\octave-3.2.0\octave
-Ic:\Octave\include
 -mieee-fp  -D_DLL -Wall   "-IC:/Program Files/java/include" "-IC:/Program
Files/java/include/win32"  -DHAVE_OCTAVE_32 -DJAVAPKG_BUILD __java__.cc -o
__java__.o
mingw32-g++-4.3.0-dw2 -shared -Wl,--export-all-symbols
-Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -shared-libgcc
-Wl,--exclude-libs=-l
stdc++_s -Wl,--allow-multiple-definition  -o __java__.oct  __java__.o  
-ladvapi32 -Lc:\Octave\lib\octave-3.2.0 -Lc:\Octave\lib -loctinterp -loctave
-lcruft -shared-libgcc -Wl,--exclude-libs=-lstdc++_s
-Wl,--allow-multiple-definition -llapack -lblas -lfftw3 -lfftw3f -lreadline 
-lncurses -liberty -
lblas -lhdf5 -lz -lm  -lgdi32 -lws2_32 -luser32 -lkernel32 -lgfortran
-lstdc++_s
make: Leaving directory `/tmp/oct-2/java-1.2.6/src'
error: called from `pkg>configure_make' in file
C:\Octave\share\octave\3.2.0\m\pkg\pkg.m near line 1255, column 2
error: called from:
error:   C:\Octave\share\octave\3.2.0\m\pkg\pkg.m at line 714, column 5
error:   C:\Octave\share\octave\3.2.0\m\pkg\pkg.m at line 287, column 7
octave:1:C:\
>

Thanks,

...Karl
-- 
View this message in context: 
http://www.nabble.com/Octave-3.2.0-mingw-jhandles-tp24024734p24105740.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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