[Insight-users] Re: problem of itk compiled in Borland C++ builder
Luis Ibanez
luis.ibanez at kitware.com
Mon Dec 27 08:53:19 EST 2004
Hi Zhao,
The Borland compiler has a low level of support
for the kind of Generic Programming code in ITK.
If you want to use the Borland compiler you must
use the version
*bcc 5.5*
Version 6.0 will not work because their support
for templates is inferior to the one in 5.5.
Borland 5.5 is the *only* version of the borland
compiler that is capable of compiling ITK.
Regards,
Luis
----------------------
Zhao Yongming wrote:
> Hi Luis,
> I use CMake1.8.1, and the version of the compiler of
> Borland C++ builder5 is 5.2. I also compiled some
> applications successfully, but they were not
> executalbe either. Another question is can I use the
> Borland C++ buider6 to build the ITK?
> The exact error is :
> ---------------------
> Project Project1.exe raised exception class
> EAccessViolation with message 'Access violation at
> address 325556D7 in module 'CC3250MT.DLL'. Read of
> address 00007FFC'.Process stopped.
> ---------------------
> The error happened at:
> ---------------------
> itkObjectFactory.h, line52:
> LightObject::Pointer ret =
> ObjectFactory::CreatInstance(typeid(T).name(J));
> ---------------------
> Regards,
> Zhao
>
>
> --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>
>>Hi Zhao,
>>
>>Did you add the try/catch block as we suggested in
>>the previous email ?
>>
>>If so, please post the *exact* error message that
>>you get from the exception.
>>
>>
>>Also, please double check what is the version of
>>the Borland compiler that is distributed with
>>Borland Builder 5.0, and let us know how you are
>>using CMake in order to generate a project for
>>Borland Builder 5.0.
>>
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>---
>>
>>PS. One typical suspect is that you may be mixing
>> Debug and Release components and the size of
>> structures don't match at run time....
>>
>>----------------------------------------------------
>>Zhao Yongming wrote:
>>
>>
>>>Hi Luis,
>>>
>>>It seems that the problem is neither of the ones
>>
>>you
>>
>>>showed. I used the examples before. So I used the
>>>ImageReadWrite program to input/output images all
>>>surported by itk(such as MetoImage(*.mhd),JPG...).
>>>whenever I tried to output a file, errors
>>
>>appeared.
>>
>>>the debug information showed that the there was a
>>>conflict in the obeject factory .
>>>
>>>Regards,
>>>Zhao
>>>
>>>--- Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>>
>>>
>>>
>>>>Hi Zhao,
>>>>
>>>>
>>>>The most likely sources of your problem are:
>>>>
>>>>
>>>>1) You are probably missing to pass the command
>>
>>line
>>
>>>> arguments that this program is expecting:
>>>> input and output filenames.
>>>>
>>>>
>>>>OR
>>>>
>>>>
>>>>2) You are passing filenames for image formats
>>
>>that
>>
>>>> are not supported by ITK.
>>>>
>>>>
>>>>
>>>>Please add a try/catch block arount the Update()
>>>>method on
>>>>the examples where you are getting an exception
>>>>being thrown,
>>>>and print out the message provided by the
>>
>>exception.
>>
>>>>
>>>>You will find many examples of try/catch blocks on
>>>>the
>>>>ITK Software Guide
>>>>
>>>> http://www.itk.org/ItkSoftwareGuide.pdf
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>> Luis
>>>>
>>>>
>>>>
>>>>--------------------------
>>>>Zhao Yongming wrote:
>>>>
>>>>
>>>>
>>>>>Hi, luis
>>>>>I compiled itk1.8 with Borland C++ builder5.0.
>>>>>I used CMake1.8.1 and built it successfully.
>>>>>but when i used the examples of it,such as
>>>>>ImageReadWrite.exe or developed my own
>>
>>application
>>
>>>>>using the compiled LIBs. Errors appeared like
>>>>
>>>>this:
>>>>
>>>>
>>>>><<<<<<<<<<<<<<<<<<
>>>>>memory can't be writen
>>>>><<<<<<<<<<<<<<<<<<
>>>>>Project Project1.exe raised exception class
>>>>
>>>>EAccess
>>>>
>>>>
>>>>>Violation with message 'Access violation at
>>>>
>>>>address
>>>>
>>>>
>>>>>325556DA in module"CC3250MT.dll" '
>>>>>
>>>>>Can you tell me why? or give me some advice on
>>>>>compiling itk in Borland C++ builder?
>>>>>Thank you!
>>>>> regards,
>>>>> Yongming Zhao
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>Yahoo! Mail - Find what you need with new enhanced
>>
>>search.
>>
>>>http://info.mail.yahoo.com/mail_250
>>>
>>>
>>
>>
>>
>>
>>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
>
>
More information about the Insight-users
mailing list