[Insight-users] ITK java wrapping - out of resources build failure

Darren Weber darren.weber.lists at gmail.com
Mon Feb 22 19:03:20 EST 2010


OK, here's the ITK bug report
0010322 <http://public.kitware.com/Bug/view.php?id=10322>
<http://public.kitware.com/Bug/view.php?id=10322>

2010/2/22 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>

>
>
>
>
> Le 22 févr. 10 à 18:12, Luis Ibanez a écrit :
>
>
>  Hi Darren,
>>
>>
>>          Thanks for tracking this problem.
>>
>> Gaetan:
>>
>>    Do you have any objection to this patch ?
>>
>
> Hi,
>
> The fix is good, but specific to that problem. I've seen some other reports
> where 1GB of RAM may be too much, or where other options may be passed to
> javac.
> So I think a more general fix would be better - I don't have enough time to
> code it now though.
>
> If the solution to apply the patch in macport build is good enough, I'd
> like to wait before fixing that problem in wrapitk.
>
> Darren, can you file a bug report in ITK's bugtraker?
>
> Thanks,
>
> Gaëtan
>
>
>
>>
>> Darren:
>>
>>     Would you like to get write access to ITK ?
>>     and commit these changes ?
>>
>>
>> Otherwise, I'll be happy to commit the patch.
>>
>>
>>    Please let me know,
>>
>>
>>            Thanks
>>
>>
>>                 Luis
>>
>>
>>
>> ----------------------------------------------------------------------------------------------------------
>> On Fri, Feb 19, 2010 at 8:17 PM, Darren Weber
>> <darren.weber.lists at gmail.com> wrote:
>>
>>>
>>> In the MacPorts build for InsightToolkit, we've noticed and replicated a
>>> build failure for the java wrapping at about 94% completion.
>>> A possible fix is to add "-J-mx1024m"  to
>>> patch Wrapping/WrapITK/Java/CMakeLists.txt
>>>
>>> --- Wrapping/WrapITK/Java/CMakeLists.txt.orig   2010-02-18
>>> 18:44:08.000000000 -0800
>>> +++ Wrapping/WrapITK/Java/CMakeLists.txt        2010-02-18
>>> 18:44:39.000000000 -0800
>>> @@ -74,7 +74,7 @@ FOREACH(Kit ${java_itk_modules})
>>>       OUTPUT ${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.class
>>>       DEPENDS ${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.java
>>> ${WRAP_ITK_JAVA_DIR}/InsightToolkit/JavaCWD.java ${ITK_BASE_JAVA_FILE}
>>> ${ORDERING_DEP}
>>>       COMMAND ${JAVA_COMPILE}
>>> -      ARGS -classpath "${ITK_JAVA_CLASSPATH}" -d "${ITK_JAVA_OUTPATH}"
>>> +      ARGS -classpath "${ITK_JAVA_CLASSPATH}" -d "${ITK_JAVA_OUTPATH}"
>>> -J-mx1024m
>>>
>>>
>>> ${WRAPPER_LIBRARY_OUTPUT_DIR}/${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.java
>>>       COMMENT "Compile ${File}.java")
>>>   ENDFOREACH(File)
>>> @@ -86,7 +86,7 @@ FOREACH(Kit ${java_itk_modules})
>>>     OUTPUT ${KIT_FILE_NAME}.class
>>>     DEPENDS ${KIT_FILE_NAME}.java ${FULL_JAVA_DEP_FILES}
>>> ${ITK_BASE_JAVA_FILE}
>>>
>>> ${WRAPPER_LIBRARY_OUTPUT_DIR}/${WRAP_ITK_JAVA_DIR}/InsightToolkit/JavaCWD.java
>>> ${ORD
>>> ERING_DEP}
>>>     COMMAND ${JAVA_COMPILE}
>>> -    ARGS -classpath "${ITK_JAVA_CLASSPATH}" -d "${ITK_JAVA_OUTPATH}"
>>> +    ARGS -classpath "${ITK_JAVA_CLASSPATH}" -d "${ITK_JAVA_OUTPATH}"
>>> -J-mx1024m
>>>     ${KIT_FILE_NAME}.java
>>>     COMMENT "Building ${KIT_FILE_NAME}.class")
>>>   SET(ITK_JAVA_KITS_FILES ${ITK_JAVA_KITS_FILES} ${KIT_FILE_NAME}.class)
>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr  http://www.itk.org
> http://www.mandriva.org  http://www.bepo.fr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100222/85f901c9/attachment.htm>


More information about the Insight-users mailing list