[Insight-developers] Building ITK + Java Bindings on OS X

Blair Cruz blair.cruz at gmail.com
Sun Jan 21 22:54:19 EST 2007


Hello All,
I sent this to the insight-users list with no resolution, so I want to run
it past this list before I submit a bug report.

I have not successfully build ITK with the Java Bindings on OS X.  I have
done the following for ITK/Cable Swig CVS head, 3.0 and 2.8.

When I build ITK with CableSwig in the Utilities directory, I get the
following error from Xcode:
-----------------------------
2007-01-21 17:23:41.107 xcodebuild[27300] CFLog (0):
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
semicolon in dictionary.
2007-01-21 17:23:41.140 xcodebuild[27300] CFLog (0):
CFPropertyListCreateFromXMLData(): The file name for this data might
be (or it might not):
/Users/jannettdean/Desktop/JC_Stuff/testBuild2/ITK.xcodeproj/project.pbxproj
2007-01-21 17:23:41.238 xcodebuild[27300] XML parser error:
       Unexpected character / at line 1
Old-style plist parser error:
       Missing ';' on line 643
xcodebuild: Error: couldn't load project
/Users/jannettdean/Desktop/JC_Stuff/testBuild2/ITK.xcodeproj
-----------------------------


If I build ITK + CableSwig 3.0 together with make, I get the following
error from make:
-----------------
/Users/jannettdean/Desktop/JC_Stuff/test2/InsightToolkit-3.0.0
/Utilities/CableSwig/Cable/Expat/xmlparse.c:1311:
error: for each function it appears in.)
make[2]: ***
[Utilities/CableSwig/Cable/Expat/CMakeFiles/CableExpat.dir/xmlparse.o]
Error 1
make[1]: *** [Utilities/CableSwig/Cable/Expat/CMakeFiles/CableExpat.dir/all]
Error 2
make: *** [all] Error 2
-----------------


If I build CableSwig 3.0 alone with Xcode, I get the following error from
Xcode:
-----------------
2007-01-21 17:47:16.789 xcodebuild[14100] CFLog (0):
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
semicolon in dictionary.
2007-01-21 17:47:16.825 xcodebuild[14100] CFLog (0):
CFPropertyListCreateFromXMLData(): The file name for this data might
be (or it might not):
/Users/jannettdean/Desktop/JC_Stuff/testBuild2/CableSwig.xcodeproj/project.pbxproj
2007-01-21 17:47:16.929 xcodebuild[14100] XML parser error:
       Unexpected character / at line 1
Old-style plist parser error:
       Missing ';' on line 531
xcodebuild: Error: couldn't load project
/Users/jannettdean/Desktop/JC_Stuff/testBuild2/CableSwig.xcodeproj
-----------------


If I build CableSwig alone for make, I get the following error from make:
-----------------
/Users/jannettdean/Desktop/JC_Stuff/CableSwig-ITK-3.0.0
/Cable/Expat/xmlparse.c:6:25:
error: expatConfig.h: No such file or directory
/Users/jannettdean/Desktop/JC_Stuff/CableSwig-ITK-3.0.0
/Cable/Expat/xmlparse.c:
In function 'XML_ExpatVersion':
/Users/jannettdean/Desktop/JC_Stuff/CableSwig-ITK-3.0.0
/Cable/Expat/xmlparse.c:1311:
error: 'VERSION' undeclared (first use in this function)
/Users/jannettdean/Desktop/JC_Stuff/CableSwig-ITK-3.0.0
/Cable/Expat/xmlparse.c:1311:
error: (Each undeclared identifier is reported only once
/Users/jannettdean/Desktop/JC_Stuff/CableSwig-ITK-3.0.0
/Cable/Expat/xmlparse.c:1311:
error: for each function it appears in.)
make[2]: *** [Cable/Expat/CMakeFiles/CableExpat.dir/xmlparse.o] Error 1
make[1]: *** [Cable/Expat/CMakeFiles/CableExpat.dir/all] Error 2
make: *** [all] Error 2
-----------------


So thats ITK with CableSwig on Make and Xcode, and CableSwig alone
with Make and Xcode, none of those combos work.

I have successfully build ITK + Java bindings on Windows XP with Visual
Studio 8.  I have also built ITK on OS X.

Here is my environment:
OS: OS X 10.4.6
CMake:  2.4 patch 6
Xcode: DevToolsCore-762.0; DevToolsSupport-764.0

I will go ahead and submit a bug if I don't hear any responses in the next
few days.  If nothing else, there should be a known issue regarding this and
the Java Bindings should not be advertised for use with OS X.

Please let me know if you need any more information.

Thanks,
Blair Cruz
blair.cruz at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20070121/3eeaa599/attachment.htm


More information about the Insight-developers mailing list