[ITK] Compilation problems
Constantinus Spanakis
c.spanakis83 at gmail.com
Mon Jun 1 18:01:35 EDT 2015
Hello. I did disable the antivirus from checking the Binary folder
where the ITK.sln is being compiled.There are less mistakes.
Error 9 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp9543edf29f494ce2a5acca5a3439e8b4.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ImageRegistration19
Error 10 error LNK1109: cannot remove file
'C:\Users\kospanak\AppData\Local\Temp\lnk83E.tmp'
C:\ITK_BIN\Examples\IO\LINK ImageReadExtractFilterInsertWrite
Error 11 error MSB6006: "link.exe" exited with code 1109. C:\Program
Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets
272 6 ImageReadExtractFilterInsertWrite
Error 12 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp6fa8b0a138a6425a95a105db11db5372.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ImageReadExportVTK
Error 13 error LNK1109: cannot remove file
'C:\Users\kospanak\AppData\Local\Temp\lnk3CA6.tmp'
C:\ITK_BIN\Examples\Iterators\LINK ImageLinearIteratorWithIndex2
Error 14 error MSB6006: "link.exe" exited with code 1109. C:\Program
Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets
272 6 ImageLinearIteratorWithIndex2
Error 15 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmpf6a1e74488a54c008376d48bb43f0377.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ITKNarrowBand-all
Error 16 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp7b6f66bb5c264478b83874545e96d1d0.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ITKJPEG-all
Error 17 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp6f078dd203fd4f5a982672178d2d0551.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ITKImageFusion-all
Error 18 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp32346c41a6a64718899181bd536cb633.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ITKEigen-all
Error 19 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmpe507548730c7498aabba1d9fae8a7b95.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
ITKColormap-all
Error 20 error LNK1109: cannot remove file
'C:\Users\kospanak\AppData\Local\Temp\lnk14DC.tmp'
C:\ITK_BIN\Examples\Statistics\LINK GaussianMembershipFunction
Error 23 error MSB4018: The "CustomBuild" task failed unexpectedly.
System.IO.IOException: The process cannot access the file
'C:\Users\kospanak\AppData\Local\Temp\tmp555f0829540c4461a0d56eac5398296e.cmd'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
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>d__20.MoveNext()
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
BSplineWarping1
On Mon, Jun 1, 2015 at 6:10 PM, Andras Lasso <lasso at queensu.ca> wrote:
>> Windows is limited to only allowing one program to open a file at a time
>
> None of the desktop operating systems have such limitations nowadays. You can deny read/write access for other processes if you want to - and maybe some antivirus software does that - but it's not very likely.
>
> There have been some issues in CMake deleting a file and then immediately opening it while doing many try-compile tests in a row, but it was fixed a few years ago (http://www.cmake.org/Bug/view.php?id=12957). I haven't experienced conflicts with anti-virus, file sharing (dropbox, onedrive, etc), or desktop search indexers since then.
>
> You can use utilities such as LockHunter to find out what's locking a particular file.
>
> Andras
>
> -----Original Message-----
> From: Community [mailto:community-bounces at itk.org] On Behalf Of Matt McCormick
> Sent: Monday, June 1, 2015 9:50 AM
> To: Constantinus Spanakis
> Cc: community at itk.org
> Subject: Re: [ITK] Compilation problems
>
> Hi Constantinus,
>
> Welcome to ITK!
>
> You may need to disable anti-malware programs, at least for the used directories. Visual Studio and anti-malware programs can compete over opening files, and Windows is limited to only allowing one program to open a file at a time.
>
> Hope this helps,
> Matt
>
> On Mon, Jun 1, 2015 at 4:42 AM, Constantinus Spanakis <c.spanakis83 at gmail.com> wrote:
>> Hello. I am new in ITK and i have problem in compiling the ITK.sln in
>> VisualStudio2010. The errors i get are the following ones:
>>
>> Error 1 error LNK1168: cannot open
>> C:\ITK_BIN\bin\Debug\ITK_bld_internal_H5detect.exe for writing
>> C:\ITK_BIN\Modules\ThirdParty\HDF5\src\itkhdf5\src\LINK
>> ITK_bld_internal_H5detect
>> Error 11 error MSB4018: The "CustomBuild" task failed unexpectedly.
>> System.IO.IOException: The process cannot access the file
>> 'C:\Users\kospanak\AppData\Local\Temp\tmpc1f187af264245a691848e5f03846a55.cmd'
>> because it is being used by another process.
>> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>> at System.IO.File.InternalDelete(String path, Boolean checkHost)
>> at System.IO.File.Delete(String path)
>> 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>d__20.Mov
>> eNext()
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
>> ITKQuadEdgeMeshFiltering-all Error 15 error MSB4018: The "CustomBuild"
>> task failed unexpectedly.
>> System.IO.IOException: The process cannot access the file
>> 'C:\Users\kospanak\AppData\Local\Temp\tmp3b81f281da7445e2bbcd68bf3300b50e.cmd'
>> because it is being used by another process.
>> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>> at System.IO.File.InternalDelete(String path, Boolean checkHost)
>> at System.IO.File.Delete(String path)
>> 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>d__20.Mov
>> eNext()
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
>> ITKImageFunction-all Error 38 error MSB6003: The specified task
>> executable "link.exe" could not be run. The process cannot access the
>> file
>> 'C:\ITK_BIN\Examples\Filtering\RGBToGrayscale.dir\Debug\link.write.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 272 6 RGBToGrayscale
>> Error 39 error MSB6003: The specified task executable "mt.exe" could
>> not be run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\Filtering\OtsuThresholdImageFilter.dir\Debug\mt.write.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 574 6
>> OtsuThresholdImageFilter Error 40 error LNK1104: cannot open file
>> 'C:\ITK_BIN\bin\Debug\NeighborhoodIterators4.exe'
>> C:\ITK_BIN\Examples\Iterators\LINK NeighborhoodIterators4 Error 42
>> error LNK1168: cannot open
>> C:\ITK_BIN\bin\Debug\MorphologicalImageEnhancement.exe for writing
>> C:\ITK_BIN\Examples\Filtering\LINK MorphologicalImageEnhancement Error
>> 43 error MSB6003: The specified task executable "CL.exe" could not be
>> run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\SpatialObjects\MeshSpatialObject.dir\Debug\cl.read.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 152 6 MeshSpatialObject
>> Error 44 error LNK1104: cannot open file
>> 'C:\ITK_BIN\bin\Debug\Mesh1.exe'
>> C:\ITK_BIN\Examples\DataRepresentation\Mesh\LINK Mesh1 Error 45 error
>> MSB6003: The specified task executable "link.exe" could not be run.
>> The process cannot access the file
>> 'C:\ITK_BIN\Examples\DataRepresentation\Mesh\Mesh2.dir\Debug\link-cvtres.read.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 396 6 Mesh2
>> Error 46 error MSB6003: The specified task executable "link.exe" could
>> not be run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\RegistrationITKv4\MeanSquaresImageMetric1.dir\Debug\link-cvtres.read.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 272 6 MeanSquaresImageMetric1
>> Error 47 error FTK1011: δεν ήταν δυνατή η δημιουργία του νέου αρχείου
>> καταγραφής παρακολούθησης αρχείων:
>> C:\ITK_BIN\Examples\Filtering\LaplacianImageFilter.dir\Debug\link.read.1.tlog.
>> Το αρχείο υπάρχει. C:\ITK_BIN\Examples\Filtering\FileTracker
>> LaplacianImageFilter
>> Error 48 error MSB4018: The "CustomBuild" task failed unexpectedly.
>> System.IO.IOException: The process cannot access the file
>> 'C:\Users\kospanak\AppData\Local\Temp\tmp3e8036cb67934ab4a2ecd9c93a50d2bc.cmd'
>> because it is being used by another process.
>> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>> at System.IO.File.InternalDelete(String path, Boolean checkHost)
>> at System.IO.File.Delete(String path)
>> 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>d__20.Mov
>> eNext()
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
>> ImageRegistrationHistogramPlotter Error 49 error MSB6003: The
>> specified task executable "link.exe" could not be run. The process
>> cannot access the file
>> 'C:\ITK_BIN\Examples\RegistrationITKv4\ImageRegistration18.dir\Debug\link.write.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 272 6 ImageRegistration18
>> Error 50 error MSB6003: The specified task executable "rc.exe" could
>> not be run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\RegistrationITKv4\ImageRegistration2.dir\Debug\rc.read.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 620 6
>> ImageRegistration2
>> Error 51 error MSB6003: The specified task executable "link.exe" could
>> not be run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\RegistrationITKv4\ImageRegistration13.dir\Debug\link.write.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 396 6 ImageRegistration13
>> Error 53 error MSB4018: The "CustomBuild" task failed unexpectedly.
>> System.IO.IOException: The process cannot access the file
>> 'C:\Users\kospanak\AppData\Local\Temp\tmpb55c8d25ab614f5693d8faff51099a11.cmd'
>> because it is being used by another process.
>> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>> at System.IO.File.InternalDelete(String path, Boolean checkHost)
>> at System.IO.File.Delete(String path)
>> 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>d__20.Mov
>> eNext()
>> C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6
>> ImageAdaptor2
>> Error 54 error LNK1104: cannot open file
>> 'C:\ITK_BIN\bin\Debug\DeformableRegistration3.exe'
>> C:\ITK_BIN\Examples\RegistrationITKv4\LINK DeformableRegistration3
>> Error 55 error MSB6003: The specified task executable "link.exe" could
>> not be run. The process cannot access the file
>> 'C:\ITK_BIN\Examples\RegistrationITKv4\DeformableRegistration11.dir\Debug\link.7924.write.1.tlog'
>> because it is being used by another process. C:\Program Files
>> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targe
>> ts
>> 396 6 DeformableRegistration11
>> Error 57 error LNK1104: cannot open file
>> 'C:\ITK_BIN\bin\Debug\CellularSegmentation2.exe'
>> C:\ITK_BIN\Examples\Segmentation\LINK CellularSegmentation2 Error 59
>> error LNK1104: cannot open file
>> 'C:\ITK_BIN\bin\Debug\BinaryMinMaxCurvatureFlowImageFilter.exe'
>> C:\ITK_BIN\Examples\Filtering\LINK
>> BinaryMinMaxCurvatureFlowImageFilter
>> Error 60 error LNK1168: cannot open
>> C:\ITK_BIN\bin\Debug\BayesianClassifier.exe for writing
>> C:\ITK_BIN\Examples\Statistics\LINK BayesianClassifier
>>
>> What could be the problem?
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
More information about the Community
mailing list