[vtk-developers] Java wrapping not working on Mac OS X 10.5?
David Cole
david.cole at kitware.com
Thu May 10 11:27:36 EDT 2012
According to the debian patch, they added "-source 1.6" to the flags
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
>
>
> _______________________________________________
> 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
>
More information about the vtk-developers
mailing list