[vtkusers] Linker error vtkDirectXGPUInfoList.obj
zarko.milosevic
zarko at kg.ac.rs
Thu Oct 29 18:16:15 EDT 2015
Found the solution.
Beside VTK lib that should be include in the VS project lib wbemuuid.lib is
also required so those two linking errors would not occur.
Basically, workflow is following:
Run CMAKE and build with default settings. Disable BUILD_TEST and
BUILD_EXAMPLES if not needed in order to significantly improve building
speed of the VTK project.
BUILD_SHARED_LIBS i have disabled because i prefer to use static libraries
more and in most cases that will fits the needs of most users.
Run VTK.sln and build ALL_BUILD project
After building finished build INSTALL project in order to get all libs and
headers at one place.
Libs and Headers(Include files) will be stored at location related to the
CMAKE_INSTALL_PREFIX after building is done.
Import Includes and libs in the VS project in standard way (see on net how)
Add all the library names in additional dependencies. Copy all file names
together with extensions ("lib") and add them in Configuration Properties ->
Linker -> Input -> Additional Dependencies.
Add at same place openg32.lib for support of OPEN GL in vtk.
Build your project.
If following error occurs
Error 105 error LNK2001: unresolved external symbol _Direct3DCreate9 at 4
vtkRendering.lib(vtkDirectXGPUInfoList.obj)
Add d3d9.lib to the Configuration Properties -> Linker -> Input ->
Additional Dependencies.
if folowing linker error occurs
Error 103 error LNK2001: unresolved external symbol _CLSID_WbemLocator
(vtkDirectXGPUInfoList.obj)
Error 104 error LNK2001: unresolved external symbol _IID_IWbemLocator
vtkRendering.lib(vtkDirectXGPUInfoList.obj)
Add wbemuuid.lib to the Configuration Properties -> Linker -> Input ->
Additional Dependencies.
Hope someone will help.
--
View this message in context: http://vtk.1045678.n5.nabble.com/Linker-error-vtkDirectXGPUInfoList-obj-tp5734639p5734701.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list