[vtk-developers] error: 'jvariant::jvariant(jbyte)' cannot be overloaded
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Jul 21 03:21:22 EDT 2009
Just FYI, this has been acknowledge as a bug in gcj:
Ref:
http://gcc.gnu.org/ml/java/2009-07/msg00046.html
On Wed, Jun 24, 2009 at 6:25 PM, Mathieu
Malaterre<mathieu.malaterre at gmail.com> wrote:
> I was using:
>
> sudo apt-get install openjdk-6-jdk ; export
> JAVA_HOME=/usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/
>
> It looks like official debian package are actually using Eclipse Java
> Compiler 0.894_R34x which does not exhibit this behavior.
>
> So please discard issue for now.
>
> Thanks
>
> On Wed, Jun 24, 2009 at 5:43 PM, Jeff Baumes<jeff.baumes at kitware.com> wrote:
>> My guess is that jboolean and jbyte are typedef'd to the same type on your
>> system. What version of Java are you using? Can you search for the typedefs
>> in jni.h (or other dependent header) to verify this?
>> I have compiled with Java wrapping with no problem on Ubuntu with gcc 4.3.3
>> and Java 1.6.0_13.
>>
>> Jeff
>>
>> On Wed, Jun 24, 2009 at 8:37 AM, Mathieu Malaterre
>> <mathieu.malaterre at gmail.com> wrote:
>>>
>>> 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
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>>
>>
>>
>>
>> --
>> Jeff Baumes, Ph.D.
>> R&D Engineer, Kitware Inc.
>> (518) 881-4932
>> jeff.baumes at kitware.com
>>
>
>
>
> --
> Mathieu
>
--
Mathieu
More information about the vtk-developers
mailing list