mcberk / wrapitk

Automatically exported from code.google.com/p/wrapitk
0 stars 0 forks source link

WrapITK 0.3.0 not building on Mac OS X Lion #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build ITK 3.20.1 and install it in /usr/local/.
2. Acquire CSWIG from macports (installed in /opt/local/)
3. Download wrapitk030 from wrapitk google site and attempt to build.

What is the expected output? What do you see instead?
Should build with  no issues if I have given the appropriate ITK_DIR in the 
CMake step. I get a problem with VXL. Please help!
...
[  1%] Built target ITKPyBasePython
Scanning dependencies of target VXLNumericsIdx
[  1%] Generating wrap_vcl_complex.xml
In file included from /usr/include/libkern/_OSByteOrder.h:66,
                 from /usr/include/sys/_endian.h:124,
                 from /usr/include/i386/endian.h:99,
                 from /usr/include/machine/endian.h:35,
                 from /usr/include/sys/wait.h:193,
                 from /usr/include/stdlib.h:65,
                 from /usr/include/c++/4.2.1/cstdlib:72,
                 from /usr/include/c++/4.2.1/bits/stl_algobase.h:68,
                 from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                 from /usr/include/c++/4.2.1/ios:45,
                 from /usr/include/c++/4.2.1/istream:44,
                 from /usr/include/c++/4.2.1/sstream:44,
                 from /usr/include/c++/4.2.1/complex:50,
                 from /Users/vraj004/sourcecodes/InsightToolkit/Utilities/vxl/vcl/iso/vcl_complex.h:6,
                 from /Users/vraj004/sourcecodes/InsightToolkit/Utilities/vxl/vcl/vcl_complex.h:62,
                 from /Users/vraj004/sourcecodes/wrapitkbuild/Libraries/VXLNumerics/wrap_vcl_complex.cxx:1:
/usr/include/libkern/i386/_OSByteOrder.h: In function '__uint32_t 
_OSSwapInt32(__uint32_t)':
/usr/include/libkern/i386/_OSByteOrder.h:60: error: '__builtin_bswap32' was not 
declared in this scope
/usr/include/libkern/i386/_OSByteOrder.h: In function '__uint64_t 
_OSSwapInt64(__uint64_t)':
/usr/include/libkern/i386/_OSByteOrder.h:74: error: '__builtin_bswap64' was not 
declared in this scope
In file included from /usr/include/c++/4.2.1/cstdlib:72,
                 from /usr/include/c++/4.2.1/bits/stl_algobase.h:68,
                 from /usr/include/c++/4.2.1/bits/char_traits.h:46,
                 from /usr/include/c++/4.2.1/ios:45,
                 from /usr/include/c++/4.2.1/istream:44,
                 from /usr/include/c++/4.2.1/sstream:44,
                 from /usr/include/c++/4.2.1/complex:50,
                 from /Users/vraj004/sourcecodes/InsightToolkit/Utilities/vxl/vcl/iso/vcl_complex.h:6,
                 from /Users/vraj004/sourcecodes/InsightToolkit/Utilities/vxl/vcl/vcl_complex.h:62,
                 from /Users/vraj004/sourcecodes/wrapitkbuild/Libraries/VXLNumerics/wrap_vcl_complex.cxx:1:
/usr/include/stdlib.h: At global scope:
/usr/include/stdlib.h:275: error: expected primary-expression before 'void'
/usr/include/stdlib.h:277: error: expected `)' before '^' token
/usr/include/stdlib.h:277: error: expected ',' or '...' before '^' token
/usr/include/stdlib.h:277: error: expected initializer before ')' token
/usr/include/stdlib.h:304: error: expected `)' before '^' token
/usr/include/stdlib.h:304: error: expected ',' or '...' before '^' token
/usr/include/stdlib.h:304: error: expected initializer before ')' token
/usr/include/stdlib.h:310: error: expected `)' before '^' token
/usr/include/stdlib.h:310: error: expected ',' or '...' before '^' token
/usr/include/stdlib.h:310: error: expected initializer before ')' token
/usr/include/stdlib.h:316: error: expected `)' before '^' token
/usr/include/stdlib.h:316: error: expected ',' or '...' before '^' token
/usr/include/stdlib.h:316: error: expected initializer before ')' token
/usr/include/stdlib.h:322: error: expected `)' before '^' token
/usr/include/stdlib.h:322: error: expected ',' or '...' before '^' token
/usr/include/stdlib.h:322: error: expected initializer before ')' token
make[2]: *** [Libraries/VXLNumerics/wrap_vcl_complex.xml] Error 1
make[1]: *** [Libraries/VXLNumerics/CMakeFiles/VXLNumericsIdx.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
I have a 64 bit OS Lion and am trying to install wrapITK 0.3.0. 

Please provide any additional information below.

Original issue reported on code.google.com by v.rajago...@auckland.ac.nz on 5 Dec 2011 at 12:07

GoogleCodeExporter commented 9 years ago
Another piece of information - I am trying to bind wrapITK with python2.7.

Original comment by v.rajago...@auckland.ac.nz on 5 Dec 2011 at 1:27

GoogleCodeExporter commented 9 years ago
ps: It seems to be the same unresolved issue as issue 37 - wrapitk build 
problems with python 2.7 on ubuntu.

Original comment by v.rajago...@auckland.ac.nz on 5 Dec 2011 at 3:20