[vtkusers] static tcl wrapped vtk link error using mingw

David Gobbi david.gobbi at gmail.com
Fri Jul 30 19:12:18 EDT 2010


I seem to remember seeing this same thing when I did a static VTK
build, many moons ago.  Google says you need to link to Imm32.lib, you
might need to edit Rendering/CMakeLists.txt or
Wrapping/Tcl/CmakeLists.txt.

  David


On Fri, Jul 30, 2010 at 5:05 PM, Dean Inglis <dean.inglis at camris.ca> wrote:
> Im statically building vtk 5.7 on win32 Vista with
> mingw/msys and run into the following compile error, (using MinGW
> Makefiles,through CMake 2.8):
>
> Linking CXX executable ..\..\bin\vtk.exe
> Creating library file: ..\..\bin\libvtk.dll.a
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0xe60): undefined reference to `ImmGetContext at 4'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0xe8a): undefined reference to `ImmSetCompositionWindow at 8'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0xe99): undefined reference to `ImmReleaseContext at 8'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1b18): undefined reference to `ImmGetContext at 4'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1b48): undefined reference to `ImmGetCompositionStringW at 16'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1b87): undefined reference to `ImmGetCompositionStringW at 16'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1ca4): undefined reference to `ImmReleaseContext at 8'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1ccd): undefined reference to `ImmGetCompositionStringA at 16'
> d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
> c:(.text+0x1cf6): undefined reference to `ImmGetCompositionStringA at 16'
> collect2: ld returned 1 exit status
> mingw32-make[2]: *** [bin/vtk.exe] Error 1
> mingw32-make[1]: *** [Wrapping/Tcl/CMakeFiles/vtk.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
> tcl/tk 8.5 is built statically with mingw32-make.  Any ideas on how to fix
> this?
>
> Dean
>
>>
>
> _______________________________________________
> 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
>



More information about the vtkusers mailing list