[Insight-users] debugging Itk code

Felix Bollenbeck bollen at ipk-gatersleben.de
Thu Mar 15 08:48:49 EST 2007


Hi Xavier,
thanks for your reply.

does that mean I have to alter the build with ccmake or in the 
CMakeLists.txt in the InsightToolkitSources, or is there anything else 
to do?

Cheers,

Felix.

Xavier Mellado Esteban schrieb:
>
>   Hello:
>
>   Yes. You need to build two times ITK, one in Release mode and 
> another one in Debug mode, and link your executable/class with them 
> depending on the mode you want.
>
>   As far as I know, CMake doesn't allow you to link release with debug 
> libraries or gcc with intel compiler (for example), so for each 
> combination, you need to build ITK again.
>
>               I hope this helps you:
>                                                       Xavi
>
> Felix Bollenbeck escribió:
>> hi all,
>> im trying to debug itk code in kdevelop. therefore i set the build 
>> target
>>
>> in CMakeLists.txt:
>>
>> SET(CMAKE_BUILD_TYPE=debug)
>>
>> in CMakeCache.txt:
>>
>> CMAKE_CXX_FLAGS_DEBUG:STRING='-g'
>>
>> buildig:
>>
>> Warning: CMake is forcing CMAKE_CXX_FLAGS_DEBUG to "" to match that 
>> imported from ITK. If this message appears for more than one imported 
>> project, you have conflicting options and will have to re-build one 
>> of those projects.
>>
>> I therefore cant debug the program. Do i have to re-build the whole 
>> library for debugging?
>>
>> cheers,
>>
>> felix.
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
>

-- 
----------------------------------------------------------------
contact:
bollen at ipk-gatersleben.de
Leibniz-Institute of Plant Genetics and Crop Plant Research (IPK)
Pattern Recognition Group (PRG) / Department of Cytogenetics
Corrensstr. 3, D-06466 Gatersleben, Germany.   (Room A-0.06)
Tel./Fax: ++49 (0) 39482  - 5 344 / - 5 137. 



More information about the Insight-users mailing list