[vtkusers] Problem compiling vtk 5.6.1

Shen-Yeh Chen shenyeh_chen at hotmail.com
Thu Mar 10 04:43:31 EST 2011


I changed to another machine and that "R6034" error from VS2005 disappeared. I still don't know why, but this problem seemed to be machine dependent now.

And, I only get vtkCommon.dll, but not  vtkCommonTCL.dll.  Is this what I need ? Or I am doing something wrong again ?

Regards
S-Y. Chen


From: david.partyka at kitware.com
Date: Mon, 7 Mar 2011 06:16:00 -0500
Subject: Re: [vtkusers] Problem compiling vtk 5.6.1
To: shenyeh_chen at hotmail.com
CC: vtkusers at vtk.org

Each of VTK's libraries will have a wrapped version for example vtkCommonTCL.dll. Also there will be an executable vtk.exe which is a tcl interpreter setup with VTK.

On Mon, Mar 7, 2011 at 3:40 AM, Shen-Yeh Chen <shenyeh_chen at hotmail.com> wrote:







Thanks for the reply. I will try it again. And I am suspecting it is 
because of the machine I am running. I will change machine and tried 
again too.

I did try checked on VTK_WRAP_TCL. But CMAKE didn't ask for TCL path. (this troubled me too).

So,
 if everything goes well, (including the TCL path), I should get a dll 
that can be imported into my tcl, but without the tcl shell and the tcl 
interpretor ?  What will be the name of the dll ?

Thanks again.

Regards
S-Y. Chen

From: david.partyka at kitware.com
Date: Sun, 6 Mar 2011 08:48:54 -0500


Subject: Re: [vtkusers] Problem compiling vtk 5.6.1
To: shenyeh_chen at hotmail.com
CC: vtkusers at vtk.org



To build the Tcl wrapping you have set the following CMake options.
VTK_WRAP_TCL
<Hit Configure>
TCL_INCLUDE_PATH <Path to Tcl include directory>



TCL_LIBRARY <Patch to tcl8x.lib>

Your VS Runtime errors shouldn't be occuring. If they continue to do so can you send us the related build output?



On Sun, Mar 6, 2011 at 5:33 AM, Shen-Yeh Chen <shenyeh_chen at hotmail.com> wrote:









Hello everyone

I am new to vtk, so please forgive me if I am not making any sense.

I have my only of Tcl/Tk, which is customize from a standard Tcl/tk 8.5.7, and I am hoping to build a dll of vtk so I can import into my own tcl/tk and then use it.





So I downloaded cmake 2.8.4 and the source distribution of  vtk 5.6.1, and tried to pay with it.

I configured CMAKE for VS 2005 wind32, checked on BUILD_SHARED_LIBS, and then BUILD in VS 2005. 

During the build, VS2005 gave and error message of "Microsoft Visual C++ Runtime Library : Run Time Error . Program ........... R6034 An application has made an attempt to load the C runtime incorrectly. Please contact the application's support team for mode information"





It went on after I hit "OK" several times anyway (it still went on even if I just left the error message box there). After the build, there are a lot .lib, .exe and .dll under the directory \bin\release.





But the directory \ALL_BUILD.dir\release is empty.

So, now the problem is

(1) which dll is the one that I can use to "load" into Tcl/Tk ?  
(2) Did I do anything wrong to cause the error message ? Does it matter ?





Thanks again for the help.

Regards
S-Y. Chen







 		 	   		  

_______________________________________________

Powered by www.kitware.com



Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html



Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ



Follow this link to subscribe/unsubscribe:

http://www.vtk.org/mailman/listinfo/vtkusers



 		 	   		  

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110310/cbe96bdd/attachment.htm>


More information about the vtkusers mailing list