Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error MSB307 #629

Closed
KentLin1 opened this issue Dec 14, 2018 · 3 comments
Closed

The error MSB307 #629

KentLin1 opened this issue Dec 14, 2018 · 3 comments

Comments

@KentLin1
Copy link

I run the code on Windows use VS17
There are 5 errors
error MSB3073 command“xcopy /I /E /Y /D /C "E:\OpenFace-master\lib\3rdParty\tbb\bin\x64\v141\tbb_debug.dll" "E:\OpenFace-master\x64\Debug"
:VCEnd”.
I dont know how to solve it.

@smartel99
Copy link

smartel99 commented May 17, 2019

I just had this error as well, turns out that there is no folder v141 in the x64 folder. You need to change the path in the Pre-Build Event Command line option of the project so that instead of the PlatformToolset macro the path contains the name of the folder that is there.

Here's an example (on my system) because I feel like my explication is extremely confusing xD
(I am using MSVC2019)
Here's the error message:

MSB3073	The command "xcopy /I /E /Y /D /C "D:\dev\OpenFace-master\lib\3rdParty\tbb\bin\x64\v142\tbb.dll" "D:\dev\OpenFace-master\x64\Release\"
:VCEnd" exited with code 4.

Inside D:\dev\OpenFace-master\lib\3rdParty\tbb\bin\x64, there's only one folder: v140, no v142 as the path is trying to find.

Going in the Pre-Build Event tab (Project settings -> Build Events -> Pre-Build Event), we see that the command that fails is

xcopy /I /E /Y /D /C "$(SolutionDir)lib\3rdParty\tbb\bin\$(PlatformShortName)\$(PlatformToolset)\tbb.dll" "$(OutDir)"

By examining this path, we find that the v142 folder in the path comes from $(PlatformToolset). To fix the error, simply change $(PlatformToolset) by the name of the folder, v140 in my case

@TadasBaltrusaitis
Copy link
Owner

I will be soon moving the entire project to VS2017, so this should not be an issue anymore in the new version.

TadasBaltrusaitis added a commit that referenced this issue Jul 13, 2019
Change log:

Moving to C++17. This means that the code can only be build using C++17 compilers (e.g. g++ >8 and Visual Studio 2017, clang > 5), fixing related bugs - (#698, #629, #641)
Removing an explicit dependency on boost (all the filesystem operations are performed using std::filesystem or boost::filesysteme). If boost is available it will used boost:filesystem, otherwise std::filesystem (this requires C++17)
Visual Studio 2017 is now the main version for Visual Studio builds, VS 2015 is no longer supported
Updating OpenCV to 4.1 version (#511)
Fixing a bug with output images when using GUI (#694)
Updating RAWImage - #609, so it can be initialized from System.Drawing.Bitmap directly
Fixing overlap detection for multi face tracking (#693)
@TadasBaltrusaitis
Copy link
Owner

Should be fixed in the new version.

ratgen pushed a commit to ratgen/OpenFace that referenced this issue Jul 7, 2022
Change log:

Moving to C++17. This means that the code can only be build using C++17 compilers (e.g. g++ >8 and Visual Studio 2017, clang > 5), fixing related bugs - (TadasBaltrusaitis#698, TadasBaltrusaitis#629, TadasBaltrusaitis#641)
Removing an explicit dependency on boost (all the filesystem operations are performed using std::filesystem or boost::filesysteme). If boost is available it will used boost:filesystem, otherwise std::filesystem (this requires C++17)
Visual Studio 2017 is now the main version for Visual Studio builds, VS 2015 is no longer supported
Updating OpenCV to 4.1 version (TadasBaltrusaitis#511)
Fixing a bug with output images when using GUI (TadasBaltrusaitis#694)
Updating RAWImage - TadasBaltrusaitis#609, so it can be initialized from System.Drawing.Bitmap directly
Fixing overlap detection for multi face tracking (TadasBaltrusaitis#693)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants