<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:\5B8B\4F53;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:\5B8B\4F53;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@\5B8B\4F53";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Andale Mono";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear rtk-users/developers,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In my installation I encountered some problems. I have installed itk properly, gcc-4.9 and cuda-7.0 on mac os x 10.10. We create the CUDA_BIN_PATH which is the directory of nvcc. The gcc-4.9 was installed in /usr/local/bin, and the default
gcc is in /usr/bin. In the cmake process, the options I made look like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_APPLICATIONS </span><span style="font-family:"Andale Mono","serif"">ON
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_DOXYGEN </span><span style="font-family:"Andale Mono","serif"">OFF
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_EXAMPLES
</span><span style="font-family:"Andale Mono","serif"">ON <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_SHARED_LIBS </span><span style="font-family:"Andale Mono","serif"">ON
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_SIMPLERTK
</span><span style="font-family:"Andale Mono","serif"">OFF <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> BUILD_TESTING
</span><span style="font-family:"Andale Mono","serif"">ON <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CMAKE_BUILD_TYPE
</span><span style="font-family:"Andale Mono","serif""> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CMAKE_INSTALL_PREFIX
</span><span style="font-family:"Andale Mono","serif"">/usr/local/rtk <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CMAKE_OSX_ARCHITECTURES
</span><span style="font-family:"Andale Mono","serif""> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CMAKE_OSX_DEPLOYMENT_TARGET
</span><span style="font-family:"Andale Mono","serif""> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CMAKE_OSX_SYSROOT
</span><span style="font-family:"Andale Mono","serif""> <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CUDA_HOST_COMPILER
</span><span style="font-family:"Andale Mono","serif"">/Applications/Xcode.app/Contents/Developer/To<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CUDA_SDK_ROOT_DIR
</span><span style="font-family:"Andale Mono","serif"">CUDA_SDK_ROOT_DIR-NOTFOUND <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CUDA_TOOLKIT_ROOT_DIR
</span><span style="font-family:"Andale Mono","serif"">/Developer/NVIDIA/CUDA-7.0 <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> CUDA_USE_STATIC_CUDA_RUNTIME
</span><span style="font-family:"Andale Mono","serif"">ON <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> DEFAULT_GCC
</span><span style="font-family:"Andale Mono","serif"">/usr/local/bin/gcc <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> EXACT_GCC
</span><span style="font-family:"Andale Mono","serif""> EXACT_GCC-NOTFOUND <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> EXACT_GCC2
</span><span style="font-family:"Andale Mono","serif"">EXACT_GCC2-NOTFOUND <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> GENGETOPT
</span><span style="font-family:"Andale Mono","serif"">GENGETOPT-NOTFOUND <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> ITK_DIR
</span><span style="font-family:"Andale Mono","serif"">/Users/pjin/Develop/InsightToolkit-4.7.2/ITKB<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> RTK_USE_CUDA
</span><span style="font-family:"Andale Mono","serif"">ON <o:p></o:p></span></p>
<p class="MsoNormal" style="background:#29F914"><span style="font-family:"Andale Mono","serif";color:#29F914;background:black"> RTK_USE_OPENCL
</span><span style="font-family:"Andale Mono","serif"">OFF <o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal">when i specified DEFAULT_GCC is /usr/bin/gcc, the make process was stuck at <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">[ 23%]
</span><span style="font-family:"Andale Mono","serif";color:#34BD26">Building CXX object code/CMakeFiles/rtkcuda.dir/rtkCudaCropImageFilter.cxx.o<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">In file included from /Users/pjin/Develop/RTK/code/rtkCudaCropImageFilter.cxx:20:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">In file included from /Users/pjin/Develop/RTK/code/rtkCudaUtilities.hcu:24:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">In file included from /Developer/NVIDIA/CUDA-7.0/include/math_functions.h:9822:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#00F900">/Developer/NVIDIA/CUDA-7.0/include/math_functions.hpp:3208:7:
</span><span style="font-family:"Andale Mono","serif";color:#C33720">error: </span>
<span style="font-family:"Andale Mono","serif";color:#00F900">use of<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#00F900"> undeclared identifier '__signbitd'; did you mean 'signbit'?<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"> if (__signbitd(a))<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34BD26"> ^~~~~~~~~~<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34BD26"> signbit<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#00F900">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:1:
</span><span style="font-family:"Andale Mono","serif";color:black">note: </span><span style="font-family:"Andale Mono","serif";color:#00F900"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"> 'signbit' declared here<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">signbit(_A1 __x) _NOEXCEPT<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34BD26">^<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">1 error generated.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make[2]: *** [code/CMakeFiles/rtkcuda.dir/rtkCudaCropImageFilter.cxx.o] Error 1<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make[1]: *** [code/CMakeFiles/rtkcuda.dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make: *** [all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal">when i specified DEFAULT_GCC to /usr/local/bin/gcc (where the gcc-4.9 was installed), the make process was stuck at <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">[ 20%]
</span><span style="font-family:"Andale Mono","serif";color:#5330E1">Building NVCC (Device) object code/CMakeFiles/cuda_compile.dir/cuda_compile_generated_rtkCudaAverageOutOfROIImageFilter.cu.o<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">nvcc fatal : GNU C/C++ compiler is no longer supported as a host compiler on Mac OS X.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">CMake Error at cuda_compile_generated_rtkCudaAverageOutOfROIImageFilter.cu.o.cmake:207 (message):<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"> Error generating<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"> /Users/pjin/Develop/RTK/RTK-bin/code/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_rtkCudaAverageOutOfROIImageFilter.cu.o<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make[2]: *** [code/CMakeFiles/cuda_compile.dir/cuda_compile_generated_rtkCudaAverageOutOfROIImageFilter.cu.o] Error 1<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make[1]: *** [code/CMakeFiles/rtkcuda.dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29F914">make: *** [all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal">Does anyone have an idea about how to fix it?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">BTW, an warning message came up while I was configuring the cmake, which is "gengetopt not found”. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">best regards,<o:p></o:p></p>
<p class="MsoNormal">Peng<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
</div>
<div style="font-size:9pt; font-family: 'Calibri',sans-serif;">
<p style="font-size:8pt; line-height:4pt; font-family: 'Arial','times roman',serif;">
</p>
<hr>
<p style="text-align: center;">AMC Disclaimer : http://www.amc.nl/disclaimer</p>
<hr>
<p style="font-size:8pt; line-height:4pt; font-family: 'Arial','times roman',serif;">
</p>
</div>
</body>
</html>