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

Building error #6

Closed
visualFatigue opened this issue Apr 9, 2023 · 3 comments
Closed

Building error #6

visualFatigue opened this issue Apr 9, 2023 · 3 comments

Comments

@visualFatigue
Copy link

Severity Code Description Project File Line Suppression State Error
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/ExternalProject.cmake:2633 (message):
error: could not find git for clone of tinygltf-populate

Severity Code Description Project File Line Suppression State Error
CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FetchContent.cmake:1000 (message):
CMake step for tinygltf failed: 1

@rtarun9
Copy link
Owner

rtarun9 commented Apr 9, 2023

Thank you for reporting the issue @piao8wan. Can you let me know what steps you used to build the project? Did you open the cloned repo with Visual studio, or used the cmake commands?
Also, can you let me know which OS you are using and its version?

@visualFatigue
Copy link
Author

I open the cloned repo with Visual studio. I think everything is done automatically by the built-in tools of VS, and I did not manually configure anything.
My OS is WIN 10 Pro with Version 1803. The Windows 10 SDK version is 10.0.19041.0.

@rtarun9
Copy link
Owner

rtarun9 commented Apr 9, 2023

Unfortunately, I am unable to reproduce the issue. I cloned the repo, opened it in VS 2022, selected the CmakeLists.txt file (in the project root directory, not the Cmake file under the External folder), ran the Setup.bat file, and build and run the project. I am using Win 10 home build 19045.2728 with SDK version.

A few things that might be causing this:

  1. Have you installed CMake tools for Visual studio?
    image

  2. Perhaps check your git version? (since in the error you shared, it mentions git not found for some reason). I am currently using version 2.39.1. This issue on another repo gives similar build errors, and indicates towards git not being installed (error: could not find git for clone of stb-populate zxing-cpp/zxing-cpp#321)

  3. Check your cmake version (the minimum required is currently 3.20 which is high, but that might cause some issues).

  4. Finally, if none of the above looks right, could you please try :

cmake -S . -B Build
cmake --build Build
.\Setup.bat
// Here, when it asks for build directory enter 'Build'

and see if the error persist? If this indeed does work, we can narrow the issue down to a Visual studio cmake error.
Again, thanks for reporting the issue.

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

2 participants