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

error: could not find git for clone of stb-populate #321

Closed
shuimuquan opened this issue Apr 21, 2022 · 1 comment
Closed

error: could not find git for clone of stb-populate #321

shuimuquan opened this issue Apr 21, 2022 · 1 comment

Comments

@shuimuquan
Copy link

I compiled the code with CMake, but the following error occurred. Environment is Win10, VS2019, who knows what is the reason? How to solve it?

Looking for C++ include pthread.h
Looking for C++ include pthread.h - not found
Found Threads: TRUE
Performing Test COMPILER_NEEDS_FLOAT_STORE
Performing Test COMPILER_NEEDS_FLOAT_STORE - Failed
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at D:/cmake3.21.0/share/cmake-3.21/Modules/ExternalProject.cmake:2650 (message):
error: could not find git for clone of stb-populate
Call Stack (most recent call first):
D:/cmake3.21.0/share/cmake-3.21/Modules/ExternalProject.cmake:3700 (_ep_add_download_command)
CMakeLists.txt:22 (ExternalProject_Add)

@axxel axxel changed the title Looking for C++ include pthread.h - not found error: could not find git for clone of stb-populate Apr 21, 2022
@axxel
Copy link
Collaborator

axxel commented Apr 21, 2022

The problem is no the pthread.h but the missing git command line utility. If you don't want to install git, you might be able to build the library only (not the test or example or wrapper binaries) if you disable the respective BUILD_-options (e.g. with cmake-gui). But this is untested. I suggest you install git, though.

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