我试图添加此
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设置一个项目。 任何帮助表示赞赏!