[vtkusers] Problem Compiling VTK-4.4 With Cmake-Borland

William A. Hoffman billlist at nycap.rr.com
Fri Jul 16 08:49:09 EDT 2004


There is something wrong with your borland compiler installation.
If you see the nightly dashboard, there are several builds of
VTK that are tested with the borland compiler each night:

http://www.vtk.org/Testing/Dashboard/20040716-0300-Nightly/Dashboard.html

Win32-bcc
Win32-bcc5.5

None of those are doing python wrapping, but I just gave it a try on
my machine, and it goes right past the vtkWrapPython.exe compile:


MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Building object file vtkWrapPython.obj...
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
c:\hoffman\BuildNoSpace\ParaView\VTK\Wrapping\vtkWrapPython.c:
Building object file vtkParse.tab.obj...
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
c:\hoffman\BuildNoSpace\ParaView\VTK\Wrapping\vtkParse.tab.c:
Building executable c:\hoffman\BuildNoSpace\VTKBorland\bin\vtkWrapPython.exe...
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
c:/hoffman/BuildNoSpace/VTKBorland/Utilities: building default_target
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Building dependencies. cmake.depends...
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
cmake.depends is up-to-date

Please read the readme.txt that comes with borland 5.5 ,
make sure you create these files:
bin/bcc32.cfg  bin/ilink32.cfg


At 05:54 AM 7/16/2004, Andrea Gavana wrote:
>Does anyone have a suggestion? I'm crashing my head on this error, there is
>nothing starting/finishing with "_iob" in the function mentioned by Borland...
>
>I've tried also a cl compiler I have on my PC (downloaded from microsoft site,
>called "Microsoft Visual C++ Toolkit 2003", (specifying NMake in the CMake
>GUI), but this is the error I get:
>
>Determining if the C compiler works failed with the following output:
>Building object file testCCompiler.obj...
>
>        cl @C:\DOCUME~1\ag12905\IMPOST~1\Temp\nma01472.
>
>testCCompiler.c
>
>Building executable C:\vtkbin\CMakeTmp\cmTryCompileExec.exe...
>
>        cl /nologo @C:\DOCUME~1\ag12905\IMPOST~1\Temp\nmb01472.
>
>LINK : warning LNK4224: /PDBTYPE is no longer supported;  ignored
>
>testCCompiler.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
>
>testCCompiler.obj : error LNK2001: unresolved external symbol __RTC_InitBase
>
>C:\vtkbin\CMakeTmp\cmTryCompileExec.exe : fatal error LNK1120: 2 unresolved
>externals
>
>NMAKE : fatal error U1077: 'cl' : return code '0x2'
>
>Stop.
>
>Eventually, I also have the MingW32-g++/c++ that comes with the Python Enthought
>Edition (downloaded from Enthought)... Can I use this C/C++ compiler with
>CMake? And if the answer is yes, can someone tell me how?
>
>I didn't expect that building VTK-4.4 could have been such a nightmare...
>
>Thank you for every suggestion.
>
>Andrea.
>
>
>
>Selon Andrea Gavana <andrea.gavana at polymtl.ca>:
>
>> Hello NG,
>>
>>       today I worked hard (!) to get CMake working with borland (I am on a
>> Win2000 platform). By following the instruction from this pages:
>>
>> http://public.kitware.com/pipermail/vtkusers/2004-April/072970.html
>> http://mayavi.sourceforge.net/cgi-bin/moin.cgi/BuildingVTKOnWin32
>>
>> I got the borland makefiles. BUT, when I open the Windows cmd in order to
>> run "make", this is the output I get:
>>
>> C:\vtkbin>make
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> Building dependencies. cmake.depends...
>> -- Compiling VTK CMake commands
>> -- Compiling VTK CMake commands - done
>> -- Loading VTK CMake commands
>> -- Loading VTK CMake commands - done
>> -- Using Buildname: Windows-bcc32
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> cmake.depends is up-to-date
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> C:/vtkbin/Wrapping: building default_target
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> Building dependencies. cmake.depends...
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>> Building object file vtkWrapPython.obj...
>> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
>> C:\VTK\Wrapping\vtkWrapPython.c:
>> Warning W8004 C:\VTK\Wrapping\vtkWrapPython.c 862: 'fp' is assigned a value
>> that
>>  is never used in function outputFunction
>> Building object file vtkParse.tab.obj...
>> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
>> C:\VTK\Wrapping\vtkParse.tab.c:
>> Warning W8004 lex.yy.c 1764: 'yy_current_state' is assigned a value that is
>> neve
>> r used in function yylex
>> Warning W8004 lex.yy.c 1089: 'yy_bp' is assigned a value that is never used
>> in f
>> unction yylex
>> Warning W8004 lex.yy.c 1089: 'yy_cp' is assigned a value that is never used
>> in f
>> unction yylex
>> Warning W8004 vtkParse.y 1063: 'str' is assigned a value that is never used
>> in f
>> unction main
>> Building executable C:\vtkbin\bin\vtkWrapPython.exe...
>> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
>> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
>> Error: Unresolved external '__iob' referenced from
>> C:\VTKBIN\WRAPPING\VTKPARSE.T
>> AB.OBJ
>>
>> ** error 1 ** deleting C:\vtkbin\bin\vtkWrapPython.exe
>>
>> ** error 1 ** deleting default_target
>>
>> ** error 1 ** deleting default_target_Wrapping
>>
>> ** error 1 ** deleting default_target
>>
>>
>> I have no idea of what it means... what am I doing wrong? If someone is
>> interested, I also attach a file called "CMakeErrors.txt" that come from the
>> first compilation trial of CMake (I don't know if the errors inside this file
>> are normal or not...).
>> I attach also my CMakeCache, Makefile and VTKConfig File... Everything in a
>> zip
>> file, they are too big...
>>
>> Thanks for every suggestion, this time I can not get to a solution alone...
>>
>> Andrea.
>>
>>
>>
>
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers 




More information about the vtkusers mailing list