[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compiling java package on linux
From: |
nikorey |
Subject: |
compiling java package on linux |
Date: |
Sun, 8 Nov 2009 20:11:13 -0800 (PST) |
Just install 3.2.2 from the package manager on ubuntu 9.10 and had not
problems. Now I am trying to install the java package and I get the
following error:
octave:2> pkg -verbose install java-1.2.6.tar.gz
mkdir (/tmp/oct-22PbG9)
untar (java-1.2.6.tar.gz, /tmp/oct-22PbG9)
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for mkoctfile... mkoctfile
retrieving compile and link flags from mkoctfile
checking for F77_FUNC... yes
checking for octave... octave
checking for OCTAVE_VERSION in Octave... 3.2.2
checking for octave_config_info('canonical_host_type') in Octave...
x86_64-pc-linux-gnu
checking for octave_config_info('SHLEXT') in Octave... so
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for strip... strip
checking for java... java
checking for javac... javac
checking for jar... jar
checking for Java version... 1.6.0_0
configure: creating ./config.status
config.status: creating Makeconf
"$prefix" is /usr/share/octave/packages/3.2/java-1.2.6
"$exec_prefix" is ${prefix}
octave commands will install into the following directories:
m-files: /usr/share/octave/3.2.2/site/m/octave-forge
oct-files:
/usr/lib/octave/3.2.2/site/oct/x86_64-pc-linux-gnu/octave-forge
binaries: /usr/lib/octave/3.2.2/site/exec/x86_64-pc-linux-gnu
alternatives:
m-files: /usr/share/octave/3.2.2/site/octave-forge-alternatives/m
oct-files:
/usr/lib/octave/3.2.2/site/octave-forge-alternatives/oct/x86_64-pc-linux-gnu
shell commands will install into the following directories:
binaries: ${exec_prefix}/bin
man pages: ${datarootdir}/man
libraries: ${exec_prefix}/lib
headers: ${prefix}/include
octave-forge is configured with
octave: octave (version 3.2.2)
mkoctfile: mkoctfile for Octave 2
java: yes
find . -name NOINSTALL -print # shows which toolboxes won't be installed
__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 ‘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_value&)’:
__java__.cc:1834: warning: deprecated conversion from string constant to
‘char*’
make: *** [__java__.oct] Error 1
'make' returned the following error: make: Entering directory
`/tmp/oct-22PbG9/java-1.2.6/src'
if [ "Xamd64X" = "XX" ]; then \
mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD
-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -o
__java__.oct __java__.cc ; \
else \
mkoctfile -DHAVE_OCTAVE_32 -v -DJAVAPKG_BUILD
-DJAVA_ARCH=\\\"amd64\\\"
-DJAVA_HOME=\\\"/usr/lib/jvm/java-6-sun\\\"
-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -o
__java__.oct __java__.cc ; \
fi
g++ -c -fPIC -I/usr/include/octave-3.2.2 -I/usr/include/octave-3.2.2/octave
-I/usr/include/freetype2 -O2 -g -I/usr/lib/jvm/java-6-sun/include
-I/usr/lib/jvm/java-6-sun/include/linux -DHAVE_OCTAVE_32 -DJAVAPKG_BUILD
-DJAVA_ARCH=\"amd64\" -DJAVA_HOME=\"/usr/lib/jvm/java-6-sun\" __java__.cc -o
__java__.o
make: Leaving directory `/tmp/oct-22PbG9/java-1.2.6/src'
error: called from `pkg>configure_make' in file
/usr/share/octave/3.2.2/m/pkg/pkg.m near line 1253, column 2
error: called from:
error: /usr/share/octave/3.2.2/m/pkg/pkg.m at line 714, column 5
error: /usr/share/octave/3.2.2/m/pkg/pkg.m at line 287, column 7
Any ideas?
thanks
--
View this message in context:
http://old.nabble.com/compiling-java-package-on-linux-tp26261041p26261041.html
Sent from the Octave - General mailing list archive at Nabble.com.
- compiling java package on linux,
nikorey <=