Home › Forums › Software Development › MSB3073 exited with code 1 error
- This topic has 3 replies, 2 voices, and was last updated 7 years, 1 month ago by
Grant [Tobii].
- AuthorPosts
- 08/11/2016 at 09:28 #5914
injo Kang
ParticipantHi. I’m using ‘Assembly Tobii EyeX Development kit’ and C/C++ SDK about it, because i want to develop program with ‘EyeX’.
I tried to use the Tobii EyeX SDK and follow the instruction in below link
“http://developer.tobii.com/walkthrough-setting-cc-project-eyex-c-api”But, I got a problem that
Error MSB3073 The command “copy /b /y C:\Users\kang-injo\Downloads\TobiiEyeXSdk-Cpp-1.7.489\lib\x64\Tobii.EyeX.Client.dll C:\Users\kang-injo\Documents\Visual Studio 2015\Projects\ConsoleApplication5\x64\Debug\
:VCEnd” exited with code 1. ConsoleApplication5 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133I think the file can’t find ‘Tobii.EyeX.Client.dll’.
How can I solve this problem?
Thank U,
Injo08/11/2016 at 12:19 #5915Grant [Tobii]
KeymasterHi @benedict78,
A couple of things to check here: Your output path looks a little strange with the “:VCEnd” at the end of the line, I would double check that.
You could also try placing the MsBuild “Copy” task in an AfterBuild target over a post-build event.
Append this Target into your project file and remove the PostBuildEvent.
<Target Name="AfterBuild"> <Copy SourceFiles="C:\Users\kang-injo\Downloads\TobiiEyeXSdk-Cpp-1.7.489\lib\x64\Tobii.EyeX.Client.dll" DestinationFolder="C:\Users\kang-injo\Documents\Visual Studio 2015\Projects\ConsoleApplication5\x64\Debug\" OverwriteReadOnlyFiles="true" SkipUnchangedFiles="false" /> </Target>
Might also be worth ensuring you are running as administrator. I assumed you double checked the existing of the source DLL in the path you specified?
09/11/2016 at 02:47 #5917injo Kang
ParticipantHi Grant ! Thx for ur help!
And then I got another problem.
I want to print “Success” if Tobii is connected to my C++ file.
But it always prints “Fail”.
How can I solve this?#include “stdafx.h”
#include <eyex\EyeX.h>
#include <iostream>#pragma comment (lib, “Tobii.EyeX.Client.lib”)
using namespace std;int _tmain(int argc, _TCHAR* argv[])
{
if (TX_RESULT_OK != txInitializeEyeX(TX_EYEXCOMPONENTOVERRIDEFLAG_NONE, NULL, NULL, NULL, NULL))
{
cout << “Success” << endl;
return -1;
}
cout << “Fail” << endl;
return 0;
}Thank you
09/11/2016 at 12:59 #5929Grant [Tobii]
KeymasterHi, I suspect the error lies in the line:
if (TX_RESULT_OK != txInitializeEyeX(TX_EYEXCOMPONENTOVERRIDEFLAG_NONE, NULL, NULL, NULL, NULL))
Did you try just running a test calibration? You could also try a different route by testing
for user presence:// Print value of user presence state if it is valid var userPresence = _eyeXHost.UserPresence; if (userPresence.IsValid) { Console.WriteLine("User presence: {0}", userPresence.Value); } // Subscribe to changes in the user presence state. eyeXHost.UserPresenceChanged += MyEventHandler;
If the EyeX Engine is not connected, user presence and all other states will be set to invalid.
- AuthorPosts
- You must be logged in to reply to this topic.