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

Darren Weber darren.weber.lists at gmail.com
Fri Feb 19 20:17:30 EST 2010


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100219/acc8b342/attachment-0001.htm>


More information about the Insight-users mailing list