<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=Big5">
<title></title>
</head>
<body>
John Biddiscombe ´£¨ì:<br>
<blockquote type="cite" cite="mid000d01c22cb9$9fd714c0$0100a8c0@tigger">
<pre wrap="">Run CMake, in the CXX_COMPILER_FLAGS add
-w-
this is "turn off all warnings"
the problem will go away. You may want to do it to
C_COMPILER_FLAGS or whatever it is too, just in case any "c" files in the utilities directory cause trouble
JB
_
----- Original Message -----
From: "Charlie H. Chang" <a class="moz-txt-link-rfc2396E" href="mailto:charlie.chang@nchc.gov.tw"><charlie.chang@nchc.gov.tw></a>
To: "vtkusers" <a class="moz-txt-link-rfc2396E" href="mailto:vtkusers@public.kitware.com"><vtkusers@public.kitware.com></a>
Sent: Tuesday, July 16, 2002 6:09 AM
Subject: [vtkusers] Building VTK 4.x CVS with BC++ builder 6.0
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I tried to use BC++ builder 6.0 to compile VTK (CVS tree),
but got the following error messages:
Warning W8004 D:\opt\VTK\Utilities\expat\xmlrole.c 1300: 'enc' is
assigned a val
ue that is never used in function condSect2
Warning W8004 D:\opt\VTK\Utilities\expat\xmlrole.c 1299: 'end' is
assigned a val
ue that is never used in function condSect2
Warning W8004 D:\opt\VTK\Utilities\expat\xmlrole.c 1298: 'ptr' is
assigned a val
ue that is never used in function condSect2
Warning W8004 D:\opt\VTK\Utilities\expat\xmlrole.c 1322: 'enc' is
assigned a val
ue that is never used in function declClose
Error E2228 D:\opt\VTK\Utilities\expat\xmlrole.c 1322: Too many error or
warning
messages in function declClose
*** 1 errors in Compile ***
** error 1 ** deleting xmlrole.obj
** error 1 ** deleting default_target
** error 1 ** deleting default_target_expat
** error 1 ** deleting default_target
** error 1 ** deleting default_target_Utilities
** error 1 ** deleting default_targett
Can anyone help me to build VTK with BCC?
I have tried CMake 1.2 and 1.4 beta, both gave me the same results.
Thank you in advance!
--
Charlie H. Chang, Software Development Group
National Center for High-performance Computing
T: 1-886-3-5776085x362
E: <a class="moz-txt-link-abbreviated" href="mailto:charlie.chang@nchc.gov.tw">charlie.chang@nchc.gov.tw</a>
W: <a class="moz-txt-link-abbreviated" href="http://www.nchc.gov.tw">www.nchc.gov.tw</a>
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-rfc2396E" href="http://public.kitware.com/cgi-bin/vtkfaq"><http://public.kitware.com/cgi-bin/vtkfaq></a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
Ok, I have tried a few things with the Borland C++ Builder 6.0 Enterprise,
<br>
which borrowed from a friend, and here is what I have found:<br>
<br>
(1) the -w- option is turned on at default when I run CMake<br>
(2) I changed the "CMAKE_BUILD_TYPE" to 'Release' and <br>
caused the compilation failure.<br>
(3) I changed "CMAKE_BUILD_TYPE" to its default value: 'Debug',<br>
and with "VTK_WRAP_TCL" ON, and the compiler will terminate<br>
with a message about "OMF object not recognized in TCL83.lib ..".<br>
(4) Turn off "VTK_WRAP_TCL" and everything was ok, compilation compeleted.<br>
<br>
Then I played with the VTK examples, and found that the .exe files were larger
<br>
than the .exe files built with VC. So I suspected that had something to
do with the<br>
"CMAKE_BUILD_TYPE" option. Is that right? Or BCC always has larger .exe
than <br>
the .exe built with VC??<br>
<br>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Charlie H. Chang, Software Development Group
National Center for High-performance Computing
T: 1-886-3-5776085x362
E: <a class="moz-txt-link-abbreviated" href="mailto:charlie.chang@nchc.gov.tw">charlie.chang@nchc.gov.tw</a>
W: <a class="moz-txt-link-abbreviated" href="http://www.nchc.gov.tw">www.nchc.gov.tw</a></pre>
<br>
</body>
</html>