MantisBT - VTK
View Issue Details
0012005VTK(No Category)public2011-03-23 08:152016-08-12 09:55
Bryn Lloyd 
Kitware Robot 
normalfeaturealways
closedmoved 
Visual Studio 2010 / 2008Windows7 / XP
 
 
TBD
incorrect functionality
0012005: The INSTALL target does not copy the pdb files into any of the target directories (bin or lib). Affects debug installation
I have compiled VTK in Debug mode in visual studio. I would like to provide only the libraries and headers to other users. Normally I would use the INSTALL target, however, it does not copy the *.pdb files into either the bin or lib folders. The pdb files are needed by the visual studio debugger.

Is this a bug?
1. Configure VTK to use VS in CMake
2. Compile VTK in DEBUG mode using Visual Studio.
3. Build INSTALL target

In default install directory C:\Programs\VTK there will be folders named "bin" and "lib". These do not contain the pdb files.
No tags attached.
Issue History
2011-03-23 08:15Bryn LloydNew Issue
2011-03-23 08:18David PartykaAssigned To => David Partyka
2011-03-23 08:18David PartykaStatusbacklog => tabled
2011-03-23 08:39David PartykaNote Added: 0025880
2011-03-23 09:18Bryn LloydNote Added: 0025882
2011-05-20 05:28Stephan MenzelNote Added: 0026561
2011-05-20 08:10David PartykaNote Added: 0026562
2011-05-20 08:10David PartykaSeveritytrivial => feature
2011-06-16 13:11Zack GalbreathCategoryCMake => (No Category)
2011-11-24 09:51Bryn LloydNote Added: 0027731
2013-07-22 20:33Dave DeMarleStatusbacklog => expired
2013-07-22 20:33Dave DeMarleNote Added: 0031283
2014-01-21 09:45Dave DeMarleNote Added: 0032192
2014-01-21 09:46Dave DeMarleProject => TBD
2014-01-21 09:46Dave DeMarleType => incorrect functionality
2014-01-21 09:46Dave DeMarleResolutionopen => no change required
2015-02-18 11:34Serge LalondeNote Added: 0034224
2015-02-18 11:50Dave DeMarleAssigned ToDavid Partyka =>
2015-02-18 11:50Dave DeMarleNote Added: 0034225
2015-02-18 11:50Dave DeMarleStatusexpired => backlog
2015-02-18 11:50Dave DeMarleResolutionno change required => reopened
2015-12-30 10:56Edson Tadeu M. ManoelNote Added: 0035622
2016-08-12 09:55Kitware RobotNote Added: 0037227
2016-08-12 09:55Kitware RobotStatusbacklog => closed
2016-08-12 09:55Kitware RobotResolutionreopened => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0025880)
David Partyka   
2011-03-23 08:39   
Question: Are pdb files portable? I don't think I've encountered this before but it the do work on other machines then we can probably create a VTK_INSTALL macro that also installs the pdb file if built debug.
(0025882)
Bryn Lloyd   
2011-03-23 09:18   
It seems that pdb files can be portable, if they use relative paths.

There was a bug/fix in cmake, which sets the paths to relative iff CMAKE_USE_RELATIVE_PATH is set to ON.

See this bug report:
http://public.kitware.com/Bug/view.php?id=9042 [^]
(0026561)
Stephan Menzel   
2011-05-20 05:28   
Are there any chances this will be changed or fixed in the foreseeable future?
I just need to know so I can decide whether to create some kind of workaround with scripts or something.

Cheers,
Stephan
(0026562)
David Partyka   
2011-05-20 08:10   
Unfortunately this is low on our radar. If you are willing to contribute a patch then we would most definately take it under consideration. Though it would make the most sense if CMake had a built in way to handle this.
(0027731)
Bryn Lloyd   
2011-11-24 09:51   
Since the install target is mostly for distributing the dlls/headers I have decided that it is probably mostly not necessary to have the pdb files (which use substantial disk space). If they are needed it is trivial to copy them manually post-build.
(0031283)
Dave DeMarle   
2013-07-22 20:33   
Dave P no longer works on the project. If these old issues still exist in 6.0.0, reopen them and assign to Dave DeMarle
(0032192)
Dave DeMarle   
2014-01-21 09:45   
You can avoid the need for installing .pdb files by replacing /Zi with /Z7 in the CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG configuration settings in CMake for VTK.

See: http://markmail.org/thread/jibk3u5hsjs3crix [^]
(0034224)
Serge Lalonde   
2015-02-18 11:34   
This bug still exists in 6.1. I have to constantly remember to copy the PDB files to my install folder manually.
Note that this affects not only the Debug build configuration but also the RelWithDebInfo build configuration.

Finally, I disagree with using the /Z7 flag. This makes the OBJ files much larger, tends to slow down compilation, it's not compatible with incremental compilation and doesn't work very well with debuggers other than Codeview (which is obsolete AFAIC). I'm not even sure if you can mix /Zi and /Z7 in the same EXE.

I believe that this bug should be reopened.
(0034225)
Dave DeMarle   
2015-02-18 11:50   
reopened per request, lets get this nailed down for 6.3.
(0035622)
Edson Tadeu M. Manoel   
2015-12-30 10:56   
+1
(0037227)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.