[vtk-developers] Java wrapping not working on Mac OS X 10.5?
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu May 10 11:28:45 EDT 2012
Oups, but the first patch should be enough unless, I've used some
Java6 stuff. Which I think was only those extra annotation that are
not really needed...
On Thu, May 10, 2012 at 11:25 AM, Sebastien Jourdain
<sebastien.jourdain at kitware.com> wrote:
> Ok, I guess we should simply apply the patch from Dominique...
>
> On Thu, May 10, 2012 at 11:20 AM, Sean McBride <sean at rogue-research.com> wrote:
>> On Wed, 9 May 2012 14:24:50 -0400, Sebastien Jourdain said:
>>
>>>I guess we should remove those @Override annotation or add the
>>>"-target 1.5" in the command line of javac.
>>>I just can't remember if the target argument will still be enough though.
>>>
>>>Can you first give a try by editing the CMake to use that extra
>>>argument and see if you manage to get through ?
>>
>> Adding "-target 1.5" didn't work... or I did it wrong. My change was:
>>
>> diff --git a/Wrapping/Java/CMakeLists.txt b/Wrapping/Java/CMakeLists.txt
>> index acf88bc..499050f 100644
>> --- a/Wrapping/Java/CMakeLists.txt
>> +++ b/Wrapping/Java/CMakeLists.txt
>> @@ -1,6 +1,6 @@
>> # javac runs out memory on Mac so increase heapsize
>> if(APPLE)
>> - set(JAVAC_OPTIONS -J-Xmx256m)
>> + set(JAVAC_OPTIONS -J-Xmx256m -target 1.5)
>> endif()
>>
>> foreach(module ${VTK_MODULES_ENABLED})
>>
>> Thanks,
>>
>> --
>> ____________________________________________________________
>> Sean McBride, B. Eng sean at rogue-research.com
>> Rogue Research www.rogue-research.com
>> Mac Software Developer Montréal, Québec, Canada
>>
>>
More information about the vtk-developers
mailing list