[Rtk-users] IRTK compiling problems

Simon Rit simon.rit at creatis.insa-lyon.fr
Fri Oct 12 05:19:16 EDT 2012


Hi Marta,
Thanks for the feedback. Yes, we would be interested in knowing what
are the problems with getopt.h. Could you send us more information
(logs, Windows version, compiler, ...)?
Regarding Cuda, this is a bit of a weird problem. I have tried to
merge the latest version of Plastimatch cmake files with rtk. Could
you update your RTK repository and give it another try?
A simple Shepp Logan reconstruction example is available here
http://wiki.openrtk.org/index.php/RTK/Scripts/FDK, code examples are
available here http://wiki.openrtk.org/index.php/RTK/Users.
Good luck,
Simon

On Fri, Oct 12, 2012 at 1:42 AM, Marta Peroni
<marta.peroni at mail.polimi.it> wrote:
> Dear Simon and David,
> was a pleasure to meet you at MICCAI. As I mentioned, we are looking into
> acquiring CBCT on robotic C-arm at CNAO and as you suggested, we had a look
> at IRTK.
>
> Now, problem is that we were not able to compile it neither on windows nor
> linux (arch distrib).
>
> For windows, main issues were related to the windows version of getopt which
> generate syntax error (Marco can provide you a log file, if you'd like).
>
> For linux, I had cuda problem. In particular, although correctly configured,
> I am stuck with this:
> [  7%] Building NVCC (Device) object
> code/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.o
> /usr/include/surface_functions.h: In function 'void surf1Dread(T*,
> surface<void, 1>, int, int, cudaSurfaceBoundaryMode)':
> /usr/include/surface_functions.h:100: error: there are no arguments to
> '__surf1Dreadc1' that depend on a template parameter, so a declaration of
> '__surf1Dreadc1' must be available
> /usr/include/surface_functions.h:100: error: (if you use '-fpermissive', G++
> will accept your code, but allowing the use of an undeclared name is
> deprecated)
> /usr/include/surface_functions.h:101: error: there are no arguments to
> '__surf1Dreads1' that depend on a template parameter, so a declaration of
> '__surf1Dreads1' must be available
> /usr/include/surface_functions.h:102: error: there are no arguments to
> '__surf1Dreadu1' that depend on a template parameter, so a declaration of
> '__surf1Dreadu1' must be available
> /usr/include/surface_functions.h:103: error: there are no arguments to
> '__surf1Dreadu2' that depend on a template parameter, so a declaration of
> '__surf1Dreadu2' must be available
> /usr/include/surface_functions.h:104: error: there are no arguments to
> '__surf1Dreadu4' that depend on a template parameter, so a declaration of
> '__surf1Dreadu4' must be available
> /usr/include/surface_functions.h: In function 'void surf2Dread(T*,
> surface<void, 2>, int, int, int, cudaSurfaceBoundaryMode)':
> /usr/include/surface_functions.h:460: error: there are no arguments to
> '__surf2Dreadc1' that depend on a template parameter, so a declaration of
> '__surf2Dreadc1' must be available
> /usr/include/surface_functions.h:461: error: there are no arguments to
> '__surf2Dreads1' that depend on a template parameter, so a declaration of
> '__surf2Dreads1' must be available
> /usr/include/surface_functions.h:462: error: there are no arguments to
> '__surf2Dreadu1' that depend on a template parameter, so a declaration of
> '__surf2Dreadu1' must be available
> /usr/include/surface_functions.h:463: error: there are no arguments to
> '__surf2Dreadu2' that depend on a template parameter, so a declaration of
> '__surf2Dreadu2' must be available
> /usr/include/surface_functions.h:464: error: there are no arguments to
> '__surf2Dreadu4' that depend on a template parameter, so a declaration of
> '__surf2Dreadu4' must be available
> CMake Error at
> cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.o.cmake:252 (message):
>   Error generating file
>
> /home/marta/provaIRTK/build/code/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.o
>
>
> make[2]: ***
> [code/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_rtkCudaFFTRampImageFilter.cu.o]
> Error 1
> make[1]: *** [code/CMakeFiles/rtkcuda.dir/all] Error 2
> make: *** [all] Error 2
>
> I remember having the same issue in plastimatch some time ago (it is due to
> cuda version) and James added some -fpermissive to fix the issue.
>
> But anyhow, can you please guide us through a compilation to make it work
> and test it on the new projections?
>
> thanks a lot
> Best Regards,
> Marta Peroni
>
>
> --
> *******************************************************************
> Marta Peroni, PhD
> Bioengineering department - Politecnico di Milano (IT)
>
> contacts:
> mail: marta.peroni at mail.polimi.it , m.peroni at gmail.com
> mobile: +393488202136 (IT)
> office: +39 02 2399 9022
>
> ********************************************************************
>



More information about the Rtk-users mailing list