1

我试图添加这个

  xcopy $(LEAP_SDK)\lib\x64\Leapd.dll "$(TargetDir)"
  xcopy $(LEAP_SDK)\lib\x64\msvcp100d.dll "$(TargetDir)"
  xcopy $(LEAP_SDK)\lib\x64\msvcr100d.dll "$(TargetDir)"

到“构建后事件”中的“命令行”,但是当我尝试时;它给了我一个错误:

1>  InteractionContextSample.vcxproj -> C:\Users\ssg\Desktop\Working On\3 Leap Motion\InteractionContextSample_1_Unedited\Debug\InteractionContextSample.exe
1>  Invalid number of parameters
1>  Invalid number of parameters
1>  Invalid number of parameters
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: The command "xcopy C:\Users\ssg\Desktop\Working On\3 Leap Motion\LeapSDK+Examples_hotfix_public_win_x86_0.8.1+6221 (1)\LeapSDK\lib\x86\Leapd.dll "C:\Users\ssg\Desktop\Working On\3 Leap Motion\InteractionContextSample_1_Unedited\Debug\"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: xcopy C:\Users\ssg\Desktop\Working On\3 Leap Motion\LeapSDK+Examples_hotfix_public_win_x86_0.8.1+6221 (1)\LeapSDK\lib\x86\msvcp100d.dll "C:\Users\ssg\Desktop\Working On\3 Leap Motion\InteractionContextSample_1_Unedited\Debug\"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: xcopy C:\Users\ssg\Desktop\Working On\3 Leap Motion\LeapSDK+Examples_hotfix_public_win_x86_0.8.1+6221 (1)\LeapSDK\lib\x86\msvcr100d.dll "C:\Users\ssg\Desktop\Working On\3 Leap Motion\InteractionContextSample_1_Unedited\Debug\"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: 
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd" exited with code 4.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Leap Motion 网站的指南说要这样做,为 Visual Studio 2012 设置一个项目。感谢任何帮助!

4

0 回答 0