[Insight-users] Problem with VS 10 and itk 3.18.0
John Drescher
drescherjm at gmail.com
Wed Apr 21 15:38:24 EDT 2010
On Wed, Apr 21, 2010 at 3:28 PM, Md Rahman <rahman at sfu.ca> wrote:
> Hi Luis,
>
> Thanks for your kind reply.
>
> Now I'm trying to use ITK version 3.16 and VS 9 (Visual C++ Express Edition 2008). And this time I'm successful with the 'Hello World' program.
>
> But when I'm trying to configure the myProject.cxx program of
>
> http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf with CMake it shows me
>
> "Error in configuration process, project files may be invalid" in a pop-up message and shows me the following error in CMake---
>
> "CMake Error in CMakeLists.txt:
> Cannot find source file "myProject.cpp". Tried extensions .c .C .c++ .cc
> .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
>
>
> "
>
>
> To tell in brief what I'm doing is--- creating a file in VC++ for myProject.cpp with the code in the getting started document and creating a CMakeLists.txt file from the same document. Then creating a new folder with only the myProject.cpp and CMakeLists.txt files and then trying to configure it with CMAKE.
>
> I'm attaching these two files.
>
>
> Any help to get rid of this tangle will be greatly appreciated.
>
In your CMakeLists.txt you put the source file ase myProject.cxx but
you posted a file myProject.cpp
make the extensions match and you shouuld get by that error.
John
More information about the Insight-users
mailing list