<div dir="ltr"><div>Great, a <a href="https://github.com/SimonRit/RTK/commit/001e44072ea96e7d6e3e70643e1e847cce011471">fix</a> has been pushed that limits Julien's patch to windows. Thanks again for the report,<br></div>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 9:48 PM, P. Jin <span dir="ltr"><<a href="mailto:p.jin@amc.uva.nl" target="_blank">p.jin@amc.uva.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi Simon,
<div><br>
</div>
<div>Thanks for your fast response, it worked.</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Peng</div><div><div class="h5">
<div><br>
<div>
<blockquote type="cite">
<div>On 23 Jun 2015, at 13:23, Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi Jin,<br>
</div>
Thanks for the report and sorry you're facing difficulties. Point-by-point:<br>
</div>
- the gengetopt message has been removed, it was a trace of debugging,<br>
</div>
- nvidia forbids use of gcc with cuda 7.0 which I believe is new. This is now accounted for with
<a href="https://github.com/SimonRit/RTK/commit/1fc41da1e6bb7660bf7b86d430027045974e9009" target="_blank">
this fix</a>,<br>
</div>
- the last problem is due to <a href="https://github.com/SimonRit/RTK/commit/1539f8b4ce3ba654dccd18e5db1beed00887084d" target="_blank">
this fix</a> by Julien Jomier. Remove the lines he's added and that should compile (it does on my mac with cuda 7). Please confirm and I'll then check with Julien if / when this is required.<br>
</div>
Simon<br>
<div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jun 22, 2015 at 12:48 PM, P. Jin <span dir="ltr">
<<a href="mailto:p.jin@amc.uva.nl" target="_blank">p.jin@amc.uva.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Dear rtk-users/developers,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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     
                                      <u></u><u></u></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
                                          <u></u><u></u></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                                           <u></u><u></u></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   
                                        <u></u><u></u></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                                          <u></u><u></u></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                                           <u></u><u></u></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"">                                             <u></u><u></u></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                               <u></u><u></u></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"">                                             <u></u><u></u></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"">                                             <u></u><u></u></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"">                                             <u></u><u></u></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<u></u><u></u></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                   <u></u><u></u></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                   <u></u><u></u></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                                           <u></u><u></u></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                           <u></u><u></u></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                                            <u></u><u></u></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                          <u></u><u></u></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                           <u></u><u></u></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<u></u><u></u></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                                           <u></u><u></u></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                                          <u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><u></u> <u></u></span></p>
<p class="MsoNormal">when i specified DEFAULT_GCC is /usr/bin/gcc, the make process was stuck at <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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<u></u><u></u></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:<u></u><u></u></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:<u></u><u></u></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:<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#00f900">      undeclared identifier '__signbitd'; did you mean 'signbit'?<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">  if (__signbitd(a))<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34bd26">      ^~~~~~~~~~<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34bd26">      signbit<u></u><u></u></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">note: </span><span style="font-family:"Andale Mono","serif";color:#00f900"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">      'signbit' declared here<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">signbit(_A1 __x) _NOEXCEPT<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#34bd26">^<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">1 error generated.<u></u><u></u></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<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">make: *** [all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><u></u> <u></u></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 <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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<u></u><u></u></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.<u></u><u></u></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):<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">  Error generating<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914"><u></u> <u></u></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<u></u><u></u></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<u></u><u></u></span></p>
<p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono","serif";color:#29f914">make: *** [all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif""><u></u> <u></u></span></p>
<p class="MsoNormal">Does anyone have an idea about how to fix it?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">BTW, an warning message came up while I was configuring the cmake, which is "gengetopt not found”. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">best regards,<u></u><u></u></p>
<p class="MsoNormal">Peng<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="DE"><u></u> <u></u></span></p>
</div>
<div style="font-size:9pt;font-family:'Calibri',sans-serif">
<div style="font-size:8pt;line-height:4pt;font-family:Arial,'times roman',serif">
<br>
</div>
<hr>
<p style="text-align:center">AMC Disclaimer : <a href="http://www.amc.nl/disclaimer" target="_blank">
http://www.amc.nl/disclaimer</a></p>
<hr>
<div style="font-size:8pt;line-height:4pt;font-family:Arial,'times roman',serif">
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</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 : <a href="http://www.amc.nl/disclaimer" target="_blank">http://www.amc.nl/disclaimer</a></p>
<hr>
<p style="font-size:8pt;line-height:4pt;font-family:'Arial','times roman',serif">
</p>
</div>
</div></div></div>

</blockquote></div><br></div>