[vtkusers] Building with VS 2008, many .lib files missing; can't link properly

Blaine frikker at gmail.com
Tue Sep 13 15:05:25 EDT 2011


Hi Everyone! I'll make this brief because it's probably a simple error on my
part.

I downloaded VTK, ran the cmake-gui and configured QT support (and disabled
the examples), and output the build as a "VS 2009" project file. I opened
the project and did a "build all" on VTK. Most of the sub-projects went
fine, but 14 of them can't link properly. They are trying to link against
VTK .lib files that don't exist (but they probably should exist). For
example, vtkverdict.lib doesn't exist even though vtkverdict compiles and
links successfully.

Here's what I did:
BUILD_EXAMPLES off
BUILD_SHARED_LIBS  on
BUILD_TESTING  off
CMAKE_INSTALL_PREFIX  set to location for make install
QT_QMAKE_EXECUTABLE  should be set, otherwise point to qmake
VTK_USE_QT  on

Any suggestions?
Blaine

Output from, for example, a rebuild of vtkverdict (vtkverdict.dll *does*
exist so it's strange that the build thinks it does not exist)
------ Rebuild All started: Project: vtkverdict, Configuration: Debug Win32
------
Deleting intermediate and output files for project 'vtkverdict',
configuration 'Debug|Win32'
Building Custom Rule C:/Documents and Settings/blaine/My
Documents/work/VTK/Utilities/verdict/CMakeLists.txt
CMake does not need to re-run because C:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Utilities\verdict\CMakeFiles\generate.stamp is
up-to-date.
Compiling...
V_WedgeMetric.cpp
VerdictVector.cpp
V_TriMetric.cpp
V_TetMetric.cpp
V_QuadMetric.cpp
V_PyramidMetric.cpp
V_KnifeMetric.cpp
V_HexMetric.cpp
V_GaussIntegration.cpp
V_EdgeMetric.cpp
Generating Code...
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.
Linking...
LINK : C:\Documents and Settings\blaine\My
Documents\work\VTK\bin\bin\Debug\vtkverdict.dll not found or not built by
the last incremental link; performing full link
Embedding manifest...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Utilities\verdict\vtkverdict.dir\Debug\BuildLog.htm"
vtkverdict - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========





My output from doing a "build all" after the first "build all" was ran that
actually compiled everything.
------ Build started: Project: vtkNetCDF_cxx, Configuration: Debug Win32
------
Linking...
LINK : fatal error LNK1104: cannot open file '..\..\bin\Debug\vtkNetCDF.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Utilities\vtknetcdf\vtkNetCDF_cxx.dir\Debug\BuildLog.htm"
vtkNetCDF_cxx - 1 error(s), 0 warning(s)
------ Build started: Project: vtkGraphics, Configuration: Debug Win32
------
Linking...
*LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkverdict.lib'*
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Graphics\vtkGraphics.dir\Debug\BuildLog.htm"
vtkGraphics - 1 error(s), 0 warning(s)
------ Build started: Project: vtkIO, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file
'..\bin\Debug\vtkDICOMParser.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\IO\vtkIO.dir\Debug\BuildLog.htm"
vtkIO - 1 error(s), 0 warning(s)
------ Build started: Project: vtkexoIIc, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\..\bin\Debug\vtkNetCDF.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Utilities\vtkexodus2\vtkexoIIc.dir\Debug\BuildLog.htm"
vtkexoIIc - 1 error(s), 0 warning(s)
------ Build started: Project: vtkRendering, Configuration: Debug Win32
------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkGraphics.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Rendering\vtkRendering.dir\Debug\BuildLog.htm"
vtkRendering - 1 error(s), 0 warning(s)
------ Build started: Project: vtkVolumeRendering, Configuration: Debug
Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkRendering.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\VolumeRendering\vtkVolumeRendering.dir\Debug\BuildLog.htm"
vtkVolumeRendering - 1 error(s), 0 warning(s)
------ Build started: Project: vtkHybrid, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkRendering.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Hybrid\vtkHybrid.dir\Debug\BuildLog.htm"
vtkHybrid - 1 error(s), 0 warning(s)
------ Build started: Project: vtkWidgets, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkRendering.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Widgets\vtkWidgets.dir\Debug\BuildLog.htm"
vtkWidgets - 1 error(s), 0 warning(s)
------ Build started: Project: vtkInfovis, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkWidgets.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Infovis\vtkInfovis.dir\Debug\BuildLog.htm"
vtkInfovis - 1 error(s), 0 warning(s)
------ Build started: Project: vtkViews, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkInfovis.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Views\vtkViews.dir\Debug\BuildLog.htm"
vtkViews - 1 error(s), 0 warning(s)
------ Build started: Project: vtkGeovis, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkWidgets.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Geovis\vtkGeovis.dir\Debug\BuildLog.htm"
vtkGeovis - 1 error(s), 0 warning(s)
------ Build started: Project: QVTK, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file
'..\..\bin\Debug\vtkRendering.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\GUISupport\Qt\QVTK.dir\Debug\BuildLog.htm"
QVTK - 1 error(s), 0 warning(s)
------ Build started: Project: vtkGenericFiltering, Configuration: Debug
Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkGraphics.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\GenericFiltering\vtkGenericFiltering.dir\Debug\BuildLog.htm"
vtkGenericFiltering - 1 error(s), 0 warning(s)
------ Build started: Project: vtkCharts, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file '..\bin\Debug\vtkViews.lib'
Build log was saved at "file://c:\Documents and Settings\blaine\My
Documents\work\VTK\bin\Charts\vtkCharts.dir\Debug\BuildLog.htm"
vtkCharts - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 14 failed, 34 up-to-date, 0 skipped
==========
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110913/eaf6f56c/attachment.htm>


More information about the vtkusers mailing list