[Insight-users] Re: cannot compile in VC7.NET

Feimo Shen fshen at email.unc.edu
Wed Oct 11 11:00:17 EDT 2006


Hi,

I still have the same problem after I successfully Cmade and compiled ITK; 
I cannot compile Helloworld sln and I get "fatal error C1021: invalid 
preprocessor command 'cmakedefine'". When I 
used CMake, there was an error saying "cannot find ITKConfig.cmake", and 
subsequently "INCLUDE only take one argument" error. I set ${ITK_USE_FILE} 
to xxxxx\\Insight\\ITKConfig.cmake and it make the sln. Can anyone tell me 
what I am doing wrong? I can't even make the hello world program to work!

Thank you all.

Feimo

On Tue, 10 Oct 2006, Feimo Shen wrote:

> Hi,
>
> I figured out: Must CMake ITK first to get the vcproj and etc. files. I am 
> building ITK now. Thanks.
>
> Feimo
>
> On Tue, 10 Oct 2006, Feimo Shen wrote:
>
>> Hi,
>> 
>> I just extracted ITK ver 2.8 and installed CMake 2.4. I tried the 
>> HelloWorld example as the Software Guide says and obtained vcproj files.
>> 
>> However, when I tried to compile the generated project, it failed and had 
>> this error: "fatal error C1021: invalid preprocessor command 
>> 'cmakedefine'". Can anyone tell me what else I should do make the project 
>> compilable?
>> 
>> I read that there was a ITK.dsw (VC++6) project to compile to generate .lib 
>> files to be included in the actual project. But I am using VC++7.NET and I 
>> couldn't find any other project files in the output nor Insight directory.
>> 
>> I appreciate your help!
>> 
>> Feimo
>> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list