Troubleshooting - Windows

 

1.On linkage I get errors:

vtkRendering.lib(vtkDirectXGPUInfoList.obj) : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "public: virtual void __thiscall

vtkDirectXGPUInfoList::Probe(void)" (?Probe@vtkDirectXGPUInfoList@@UAEXXZ)

vtkRendering.lib(vtkDirectXGPUInfoList.obj) : error LNK2001: unresolved external symbol _CLSID_WbemLocator

vtkRendering.lib(vtkDirectXGPUInfoList.obj) : error LNK2001: unresolved external symbol _IID_IWbemLocator

http://vtk.1045678.n5.nabble.com/VTK-Compile-DirectX-and-GPU-td1249624.html



2.I'm still having a problem building the library in CMake.  The default for CMAKE_CXX_COMPILER and CMAKE_C_COMPILER is bcc32 which, of course, it can't find on my Vista system.  How can I find what compiler I have on my computer and set this value to? 

•You should have a c/c++ compiler on your system..MinGW is a compiler for windows that you can use to build in cmake.. has gcc in it..

(http://vtkblog.blogspot.com/2008/05/build-vtk-from-source-using-mingwmsys.html)

Here is a good link I used to set up vtk on windows (to work on pyhton) and it works great.

http://www-viz.tamu.edu/courses/viza658/08spring/tutorials/WinVTKInstall.html



3.I've downloaded Visual Studio, but I hit the 'configure' button in Cmake it doesn't give me a list of compilers, it just gives CMake Error: your C compiler: "bcc32" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.  CMake Error: your CXX compiler: "bcc32" was not found. I know this isn't the compiler I need, but how do I get Cmake to give me a list?

•What you want to do is select the option "toggle advanced mode" ("t" key in CMake text mode). That reveals "advanced" settings options.  After that you should see:

CMAKE_CXX_COMPILER<something>

You will then have to enter the right compiler (along with its path).  Under Mac OSX this "something" is "/usr/bin/c++"


•There can be two reasons:

1. What CMake and Visual Studio version have u installed? As I recalled, CMake2.4 doesn't list Visual Studio 9 ( which means 2008). Therefore, if you download VS 2008, better download CMake2.6 as well.

2. Else, if you have configured CMake before, you may have to delete CMake cache by go to File->Delete Cache.

Information provided by Peter Kristof (pkristof@purdue.edu)