MantisBT - CMake
View Issue Details
0010925CMakeCMakepublic2010-07-01 16:472012-03-06 08:37
Robert Maynard 
David Cole 
normalminoralways
closedfixed 
CMake-2-8 
CMake 2.8.6CMake 2.8.6 
0010925: QT4_WRAP_UI CustomBuild failure with source and build directories on different drives.
When the source and build directories for ParaView are on different drives the pqComponent project fails to compile with the following message:

Error 1 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at Microsoft.Build.CPPTasks.CustomBuild.GetInputs(ITaskItem item)
   at Microsoft.Build.CPPTasks.CustomBuild.BuildExecutionGraph()
   at Microsoft.Build.CPPTasks.CustomBuild.GenerateCommandLineCommands()
   at Microsoft.Build.Utilities.ToolTask.Execute()
   at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 pqComponents

The problem is in the QT4_WRAP_UI command.
Place ParaView Source and Build directories on different drives.
Compile pqComponents project with Visual Studio 2010.
No tags attached.
Issue History
2010-07-01 16:47Robert MaynardNew Issue
2010-07-01 16:47Robert MaynardStatusnew => assigned
2010-07-01 16:47Robert MaynardAssigned To => David Cole
2011-10-25 22:47David ColeTarget Version => CMake 2.8.7
2011-10-26 16:06David ColeNote Added: 0027657
2011-10-26 17:12David ColeNote Added: 0027658
2011-10-26 17:12David ColeStatusassigned => resolved
2011-10-26 17:12David ColeFixed in Version => CMake 2.8.6
2011-10-26 17:12David ColeResolutionopen => fixed
2011-10-26 17:12David ColeTarget VersionCMake 2.8.7 => CMake 2.8.6
2012-03-06 08:37David ColeNote Added: 0028839
2012-03-06 08:37David ColeStatusresolved => closed

Notes
(0027657)
David Cole   
2011-10-26 16:06   
Trying to reproduce this today.

ParaView source tree is at:

  C:\Users\davidcole\Dashboards\My Tests\ParaView
  (at git commit f3bfaeff)

ParaView build tree is at:

  D:\pv-b1

Using CMake 'master' as of today at:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2b0f8c7de0c922c98753a3a13d251306aabc9bdb [^]

Using the 32-bit Visual Studio 10 generator, using Qt/qmake from C:\Qt\4.6.3-vs2008\bin

.... and .... you guessed it:

It worked:

83> moc_pqXYChartOptionsEditor.cxx
83> moc_pqComponentsTestUtility.cxx
83> qrc_pqComponents.cxx
83> qrc_pqExtraResources.cxx
83> Generating Code...
83> pqComponents.vcxproj -> D:\pv-b1\bin\Debug\pqComponents.lib
========== Build: 83 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


I will try again with a new build tree, and with CMake 2.8.6 as released. It may have been fixed along the way (since it was reported) along with the many, many VS10-specific issues we've fixed as we've moved forward.
(0027658)
David Cole   
2011-10-26 17:12   
This works with CMake 2.8.6 as well:

83> moc_pqXYChartOptionsEditor.cxx
83> moc_pqComponentsTestUtility.cxx
83> qrc_pqComponents.cxx
83> qrc_pqExtraResources.cxx
83> Generating Code...
83> pqComponents.vcxproj -> D:\pv-b2\bin\Debug\pqComponents.lib
========== Build: 83 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I'm going to mark this as resolved/fixed in CMake 2.8.6. Feel free to re-open this issue if further evidence suggests there is still a problem. Please attach specific steps to reproduce if simply building pqComponents on a different drive letter from the source tree is not sufficient to reproduce.

Thanks!
(0028839)
David Cole   
2012-03-06 08:37   
Closing resolved issues that have not been updated in more than 4 months.