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

[MSVC] OpenFrameworks failed to build error MSB3073: xcopy /Y /E "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\dll\x64\*.dll" #7954

Open
Shinoyang opened this issue May 14, 2024 · 7 comments
Assignees

Comments

@Shinoyang
Copy link

Shinoyang commented May 14, 2024

OpenFrameworks failed to build with "error MSB3073:xcopy /Y /E "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\dll\x64*.dll"" with MSVC on windows. It can reproduce on version 7a09e9e on master branch. Could you please help look at this issue? Thank you very much.
Repro steps:

  1. git -C "C:\gitP" clone --no-checkout https://github.com/openframeworks/openFrameworks openframeworks\openFrameworks
  2. git -C "C:\gitP\openframeworks\openFrameworks" checkout 7a09e9e
  3. git -C "C:\gitP\openframeworks\openFrameworks" submodule sync
  4. git -C "C:\gitP\openframeworks\openFrameworks" submodule foreach git reset --hard
  5. git -C "C:\gitP\openframeworks\openFrameworks" submodule foreach git clean -xdf
  6. git -C "C:\gitP\openframeworks\openFrameworks" submodule update --init --recursive
  7. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 & set CL= /Bcapture_repro C:\a_work_temp\rwc_project_logs\OpenFrameworks\preprocessed_repro_setup & set LINK= /onfailrepro:C:\a_work_temp\rwc_project_logs\OpenFrameworks\link_repro_setup
  8. cd /d C:\gitP\openframeworks\openFrameworks
  9. "C:\Program Files\Git\bin\sh.exe" ./scripts/vs/download_latest_libs.sh -p vs --silent
  10. set PG_OF_PATH=C:\gitP\openframeworks\openFrameworks
  11. cd /d C:\gitP\openframeworks\openFrameworks\apps\projectGenerator\commandline
  12. devenv /upgrade commandLine.sln
  13. msbuild /m /p:Platform=x64 /p:Configuration=Release commandLine.sln
  14. copy C:\gitP\openframeworks\openFrameworks\apps\projectGenerator\commandline\bin\commandLine.exe C:\gitP\openframeworks\openFrameworks\apps\projectGenerator\frontend\app\projectGenerator.exe
  15. cd /d C:\gitP\openframeworks\openFrameworks
  16. C:\gitP\openframeworks\openFrameworks\apps\projectGenerator\frontend\app\projectGenerator.exe ./examples/templates/emptyExample
  17. C:\gitP\openframeworks\openFrameworks\apps\projectGenerator\frontend\app\projectGenerator.exe ./examples/templates/allAddonsExample
  18. mkdir build_amd64 && cd build_amd64
  19. msbuild /m /p:Platform=x64 /p:Configuration=Release ../examples/templates/emptyExample/emptyExample.vcxproj /t:Rebuild /p:PlatformToolset=v143

Error log:
OpenFrameworks_build.log

Error info:

LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance
         emptyExample.vcxproj -> C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\bin\emptyExample.exe
       PostBuildEvent:
         
                     xcopy /Y /E "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\dll\x64\*.dll" "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\bin\"
                 
         :VCEnd
         0 File(s) copied
         File not found - *.dll
     1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: The command " [C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\emptyExample.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073:             xcopy /Y /E "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\dll\x64\*.dll" "C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\bin\" [C:\gitP\openframeworks\openFrameworks\examples\templates\emptyExample\emptyExample.vcxproj]
@dimitre
Copy link
Member

dimitre commented May 14, 2024

I would try to edit the file /scripts/templates/vs/emptyExample.vcxproj and just comment out the three xcopy lines there.

@dimitre
Copy link
Member

dimitre commented May 14, 2024

Any ideas here @danoli3 ?

@danoli3
Copy link
Member

danoli3 commented May 14, 2024 via email

@Shinoyang
Copy link
Author

Shinoyang commented May 15, 2024

@dimitre I try to comment out the three xcopy lines on /scripts/templates/vs/emptyExample.vcxproj, this issue does not reproduce.

@dimitre
Copy link
Member

dimitre commented May 15, 2024

@danoli3 wishing you the best of health. take care

@danoli3
Copy link
Member

danoli3 commented May 16, 2024

Seems like maybe project generator is out of date, need to update the hash

@danoli3
Copy link
Member

danoli3 commented May 20, 2024

Ah this occurs when multiple projects are open or file is locked basically.

Might be another solution in naming conventions for the multitargets will look into

@danoli3 danoli3 self-assigned this May 23, 2024
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