[vtk-developers] error: 'jvariant::jvariant(jbyte)' cannot be overloaded
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Jun 24 08:37:35 EDT 2009
Hello there,
I am trying to compile VTK CVS on debian/Linux system with gcc 4.5
and I am getting the following error:
cd /home/mathieu/Projects/VTK-snap/Graphics &&
/usr/lib/gcc-snapshot/bin/g++ -DVTK_IN_VTK -DvtkGraphicsJava_EXPORTS
-Wno-deprecated -g -fPIC -I/home/mathieu/Projects/VTK-snap
-I/home/mathieu/Projects/VTK-snap/Common
-I/home/mathieu/Projects/VTK-snap/Utilities
-I/home/mathieu/Projects/VTK-snap/VolumeRendering
-I/home/mathieu/Projects/VTK-snap/Rendering
-I/home/mathieu/Projects/VTK-snap/Utilities/vtkalglib
-I/home/mathieu/Projects/VTK/Infovis
-I/home/mathieu/Projects/VTK/Geovis -I/home/mathieu/Projects/VTK/Views
-I/home/mathieu/Projects/VTK/VolumeRendering
-I/home/mathieu/Projects/VTK/Hybrid
-I/home/mathieu/Projects/VTK/Widgets
-I/home/mathieu/Projects/VTK/Rendering
-I/home/mathieu/Projects/VTK/Rendering/Testing/Cxx
-I/home/mathieu/Projects/VTK/IO -I/home/mathieu/Projects/VTK/Imaging
-I/home/mathieu/Projects/VTK/Graphics
-I/home/mathieu/Projects/VTK/GenericFiltering
-I/home/mathieu/Projects/VTK/Filtering
-I/home/mathieu/Projects/VTK/Common
-I/home/mathieu/Projects/VTK/Utilities
-I/home/mathieu/Projects/VTK/Common/Testing/Cxx
-I/home/mathieu/Projects/VTK-snap/Utilities/vtklibproj4
-I/home/mathieu/Projects/VTK/Utilities/vtklibproj4
-I/home/mathieu/Projects/VTK-snap/Utilities/DICOMParser
-I/home/mathieu/Projects/VTK/Utilities/DICOMParser
-I/home/mathieu/Projects/VTK-snap/Utilities/vtkfreetype/include
-I/home/mathieu/Projects/VTK/Utilities/vtkfreetype/include
-I/home/mathieu/Projects/VTK-snap/Utilities/vtknetcdf
-I/home/mathieu/Projects/VTK/Utilities/vtknetcdf
-I/home/mathieu/Projects/VTK-snap/Utilities/vtkexodus2/include
-I/home/mathieu/Projects/VTK/Utilities/vtkexodus2/include
-I/home/mathieu/Projects/VTK-snap/Utilities/MaterialLibrary
-I/home/mathieu/Projects/VTK/Utilities/MaterialLibrary
-I/home/mathieu/Projects/VTK-snap/Utilities/verdict
-I/home/mathieu/Projects/VTK/Utilities/verdict
-I/home/mathieu/Projects/VTK/Utilities/utf8/source
-I/home/mathieu/Projects/VTK/Utilities/vtkalglib
-I/home/mathieu/Projects/VTK/Utilities/ftgl/src
-I/home/mathieu/Projects/VTK-snap/Utilities/ftgl
-I/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/include -o
CMakeFiles/vtkGraphicsJava.dir/vtkJavaProgrammableFilter.o -c
/home/mathieu/Projects/VTK/Graphics/vtkJavaProgrammableFilter.cxx
In file included from
/home/mathieu/Projects/VTK/Graphics/vtkJavaProgrammableFilter.cxx:25:0:
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:34:3: error:
'jvariant::jvariant(jbyte)' cannot be overloaded
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:33:3: error: with
'jvariant::jvariant(jboolean)'
/home/mathieu/Projects/VTK/Graphics/vtkJavaProgrammableFilter.cxx: In
member function 'virtual int
vtkJavaProgrammableFilter::FillInputPortInformation(int,
vtkInformation*)':
/home/mathieu/Projects/VTK/Graphics/vtkJavaProgrammableFilter.cxx:157:159:
error: conversion from 'jvariant' to 'jboolean' is ambiguous
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:52:3: note:
candidates are: jvariant::operator __jstring*() <near match>
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:51:3: note:
jvariant::operator __jobject*() <near match>
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:50:3: note:
jvariant::operator jdouble()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:49:3: note:
jvariant::operator jfloat()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:48:3: note:
jvariant::operator jlong()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:47:3: note:
jvariant::operator jint()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:46:3: note:
jvariant::operator jshort()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:45:3: note:
jvariant::operator jchar()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:44:3: note:
jvariant::operator jbyte()
/home/mathieu/Projects/VTK/Graphics/vtkJVMManager.h:43:3: note:
jvariant::operator jboolean()
Could some java guru look into this compilation problem ?
thanks,
--
Mathieu
More information about the vtk-developers
mailing list