[Insight-developers] Borland compiler

Miller, James V (CRD) millerjv@crd.ge.com
Fri, 1 Feb 2002 15:41:09 -0500


The other gotcha is that you have to read the instructions on 
installing the BCC compiler.

Whereever you installed the compiler, you need to create the files
bcc32.cfg and ilink32.cfg in the Bin directory where bcc32.exe is.
You setup the default system include and link paths in these files.
Without this, the compiler cannot find the standard includes like
stdio.h, etc.

You mileage may vary.  I put the compiler under "Program Files"
instead of where it defaulted to "C:/Borland/"

 

-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
Sent: Friday, February 01, 2002 3:29 PM
To: Miller, James V (CRD)
Cc: insight-Developers
Subject: RE: [Insight-developers] Borland compiler


It may be a VTK version problem.  The UseVTK.cmake file is actually part
of VTK and not CMake.  I am using the current VTK cvs.

Also, I guess there is a problem with Insights cmake list files.
Perhaps there should be an option to force it NOT to use VTK even if it finds one.

-Bill


At 03:24 PM 2/1/2002 -0500, Miller, James V (CRD) wrote:
>I am using 1.2 patch 2.
>
>-----Original Message-----
>From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
>Sent: Friday, February 01, 2002 3:24 PM
>To: Miller, James V (CRD); insight-developers@public.kitware.com
>Subject: RE: [Insight-developers] Borland compiler
>
>
>What version of cmake are you using?
>
>I had the same problem, but once I told it to use the borland built VTK,
>it was able to switch and get the right compiler flags.
>
>I just tested it with cmake version 1.2 patch 2.
>Can you check for updates for your cmake?
>
>
>-Bill
>
>
>At 02:53 PM 2/1/2002 -0500, Miller, James V (CRD) wrote:
>>Gee, I sure would like to try this compiler but can't get CMake
>>to generate the right makefiles.
>>
>>CMake keeps finding my VC++ build of VTK and sets all the Insight
>>settings to match that.
>>
>>So I set of VTK build using BCC.
>>
>>Now when running CMake on Insight, it says that "VTK can be on your system
>>in several forms..." and despite having the BCC version selected in CMakeSetup
>>CMakeSetup falls back to writing DevStudio project files.  I reselect Borland
>>Makefiles, reconfigure, and it says "VTK can be on ...." and defaults back to 
>>DevStudio settings.
>>
>>Borland makefiles get generated but they have VC++ compiler and link options
>>
>>
>>
>>-----Original Message-----
>>From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
>>Sent: Thursday, January 31, 2002 4:26 PM
>>To: Miller, James V (CRD); insight-developers@public.kitware.com
>>Subject: RE: [Insight-developers] Borland compiler
>>
>>
>>I can try it in the morning.
>>
>>If anyone wants to try this compiler, it is free.
>>You can get it from here:
>>http://www.borland.com/bcppbuilder/freecompiler/cppc55steps.html
>>
>>
>>It seems quite fast.
>>
>>-Bill
>>
>>At 03:06 PM 1/31/02 -0500, Miller, James V (CRD) wrote:
>>
>>>Bill,
>>>
>>>At line 64 of Code/Common/itkScaleTransform.h  could you break the enum 
>>>into two
>>>enums, i.e. instead of
>>>
>>>enum { SpaceDimension = NDimensions, ParameterDimension = NDimensions };
>>>
>>>make it
>>>
>>>enum { SpaceDimension = NDimensions };
>>>enum { ParameterDimension = NDimensions };
>>>
>>>and then rebuild
>>>
>>>Testing/Code/Common/itkScaleTransformTest.cxx
>>>
>>>to see if that fixes the errors on the ScaleTransformTest.
>>>
>>>It looks like the Borland compiler is having troubles following a series of
>>>enums and typedefs down into a function parameter.
>>>
>>>Jim
>>>
>>>-----Original Message-----
>>>From: Bill Hoffman [mailto:bill.hoffman@kitware.com]
>>>Sent: Thursday, January 31, 2002 2:38 PM
>>>To: insight-developers@public.kitware.com
>>>Subject: [Insight-developers] Borland compiler
>>>
>>>
>>>I ran an experimental dashboard for the borland compiler.
>>>There are quite a few errors.   Could people take a look and
>>>see if there are any that are easy to fix?
>>>
>>>I will start running a nightly dashboard for this compiler.
>>>
>>>
>>>-Bill
>>>
>>>_______________________________________________
>>>Insight-developers mailing list
>>>Insight-developers@public.kitware.com
>>>http://public.kitware.com/mailman/listinfo/insight-developers
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-developers