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

Andrea Gavana andrea.gavana at polymtl.ca
Fri Jul 16 05:54:48 EDT 2004


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.
>
>
>






More information about the vtkusers mailing list