Error MSB3073 Post-Build errors for SmartRecorder and Platform project.

Developer
Sep 9, 2013 at 9:23 AM
Hey!

Yesterday I was working with HomeOS project and I extracted source to a folder named as "HomeOS Source" and when I build it I started getting error
Error 3 error MSB3073: The command "copy C:\Windows\system32\msvcr110d.dll "E:\HomeOS Source\Hub\output\binaries\Pipeline\AddIns\HomeOS.Hub.Apps.SmartCam\"
copy C:\Windows\system32\msvcp110d.dll E:\HomeOS Source\Hub\output\binaries\Pipeline\AddIns\HomeOS.Hub.Apps.SmartCam\
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134 5 SmartRecorder
and something same for Platform project. I figured out this is due to Post-Build event when we have directory containing space post build event started giving error. To solve this you have to either remove space from directory name as I have named it "HomeOS Source"; to solve this I have to rename it to "HomeOS-Source" to get it working or I have to change build event command of SmartRecoder form
copy $(windir)\system32\msvcr110d.dll $(OutDir)
copy $(windir)\system32\msvcp110d.dll $(OutDir)
to
copy $(windir)\system32\msvcr110d.dll "$(OutDir)"
copy $(windir)\system32\msvcp110d.dll "$(OutDir)"
and for Platform project I have to change build these two build event commands
REM copy libraries needed for webcam and smartcamrecorder
copy $(windir)\system32\msvcr110d.dll $(TargetDir)
copy $(windir)\system32\msvcp110d.dll $(TargetDir)
with
REM copy libraries needed for webcam and smartcamrecorder
copy $(windir)\system32\msvcr110d.dll "$(TargetDir)"
copy $(windir)\system32\msvcp110d.dll "$(TargetDir)"
and replace
REM copy scripts
copy $(ProjectDir)*.bat  $(TargetDir)..\..\..\output
copy $(ProjectDir)..\..\..\Dashboard.url  $(TargetDir)..\..\..\output 
with
REM copy scripts
copy "$(ProjectDir)*.bat"  "$(TargetDir)..\..\..\output"
copy "$(ProjectDir)..\..\..\Dashboard.url"  "$(TargetDir)..\..\..\output"
P.S: This thread is posted to help other community members.

Danny: Hope you will made these changes in repository.

Regards,

Zohaib
Research Engineer
SysNet
Coordinator
Sep 9, 2013 at 6:52 PM
Zohaib -

Thanks for bringing this to our attention. I've committed the changes you suggested.

Cheers.
Developer
Sep 10, 2013 at 10:14 AM
Thanks Ratul :)