[vtkusers] Re: Building vtk 5.0 with Shared Libs & TclWrap on Linux/Fedora Core 5----Problem in vtkCommonInitTCL.cxx

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Nov 14 05:33:54 EST 2006


Richard Strelitz wrote:
> VTK has thwarted me again.  I was trying to build VTK 5.0 or its
> successors on CVS, with SHARED LIBS and TCL Wrap ON
> on a Linux, Fedora Core 5, 64 bit AMD machine.
>   (north facing, if that counts toward the alchemy of the process)
>  Regardless of how I specify tcl libs, includes and versions,
> I get the following error:
> 
> ------------------------
> 
> [  4%] Building CXX object
> Common/CMakeFiles/vtkCommonTCL.dir/vtkCommonTCLInit.o
> /home/strelitz/VTK/Common/vtkCommonTCLInit.cxx: In function int
> Vtkcommontcl_Init(Tcl_Interp*):
> /home/strelitz/VTK/Common/vtkCommonTCLInit.cxx:388: error: invalid
> conversion from int (*)(void*, Tcl_Interp*, int, char**) to int
> (*)(void*, Tcl_Interp*, int, const char**)
> /home/strelitz/VTK/Common/vtkCommonTCLInit.cxx:388: error:
> initializing argument 3 of Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*,
> const char*, int (*)(void*, Tcl_Interp*, int, const char**), void*, void
> (*)(void*))
> gmake[2]: *** [Common/CMakeFiles/vtkCommonTCL.dir/vtkCommonTCLInit.o]
> Error 1
> gmake[1]: *** [Common/CMakeFiles/vtkCommonTCL.dir/all] Error 2
> gmake: *** [all] Error 2
> [strelitz at cme VTK]$ g++ --version
> g++ (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)

Hi Richard,

This looks like the CONST problem with tcl migrating between 8.3 and 
8.4... try defining USE_NON_CONST and see if it makes a difference 
(-DUSE_NON_CONST). I don't know why it would crop again on a 64bit build.

See
http://wiki.tcl.tk/3669
http://public.kitware.com/cgi-bin/vtkfaq?req=show&file=faq02.005.htp

hth

Goodwin

ps A google search reveals that the above has helped someone build a tcl 
extension on AMD64
http://www.ks.uiuc.edu/Research/namd/mailing_list/namd-l/3581.html





More information about the vtkusers mailing list