[Insight-users] Using ITK in a Cocoa App (+Xcode)

Olivier Saut saut.olivier at orange.fr
Mon Oct 26 05:13:15 EDT 2009


Le 26 oct. 2009 à 02:23, Sean McBride a écrit :

>
> On 10/22/09 2:14 PM, Olivier Saut said:
>
>>> We use ITK in our Cocoa app with no problem.  We just include ITK
>>> headers and link to ITK static libs.  It must be something with your
>>> project setup.  Try creating a new Cocoa project in Xcode and see if
>>> it
>>> works there.
>>
>> I have tried starting from scratch : it still fails with the same
>> error when I try to include itkImage to my ObjectiveC++ file.
>> From a new Cocoa project, I have add the header paths to the Project
>> Setting "Header Search Paths" (with and without using the recursive
>> flag) and the libs path to Library Search Paths while adding the
>> static libs to the project with Project -> Add to Project...
>
> And are you using the .mm extension for you Obj-C++ files?

Yes for the file including itkImage. I am a bit lost. I will try  
building a C++ lib with ITK calls and linking to it in my app.

Thanks,

														- Olivier


More information about the Insight-users mailing list