How to load stb library locally?(BUILD_DEPENDENCIES "LOCAL") #801
Replies: 2 comments
-
You have to make sure the header files are in your include path, e.g.
The easiest way to do this on Ubuntu is with actually with installing a package: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, trying the two methods you mentioned still can't solve it, but then I thought that even if I realized the local loading of stb during cmake, there are other resource files that need to be loaded from github (such as fmt), which should still not pass cmake, so I tried to solve the network problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to the network or other unknown reasons, when I execute cmake, I often can't compile it because I can't find the stb library. Only occasionally can cmake succeed by taking a few chances.
$ cmake ..
-- Checking for module 'stb'
-- No package 'stb' found
[ 11%] Performing download step (git clone) for 'stb-populate'
Cloning into 'stb-src'...
fatal: unable to access 'https://github.com/nothings/stb.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Cloning into 'stb-src'...
fatal: unable to access 'https://github.com/nothings/stb.git/': Empty reply from server
Cloning into 'stb-src'...
fatal: unable to access 'https://github.com/nothings/stb.git/': Failed to connect to github.com port 443: Connection refused
-- Had to git clone more than once:
3 times.
CMake Error at stb-subbuild/stb-populate-prefix/tmp/stb-populate-gitclone.cmake:31 (message):
Failed to clone repository: 'https://github.com/nothings/stb.git'
Then I noticed that there is an option in cmakelists.txt to load stb library in LOCAL mode, but I tried to download stb library (https://github.com/nothings/stb.git/) myself. I don't know what to do next. Can you help me? thank you
Beta Was this translation helpful? Give feedback.
All reactions