Closed sunlin0oo closed 5 months ago
That looks like problem with github.com
or your internet connection to it. Can you check your connection to github and try again?
If it continues to fail can you try running wget https://github.com/emscripten-ports/FreeType/archive/version_1.zip
just to be sure you can actually fetch that file?
Thank you for your prompt reply!
As you said, I can't connect to github normally.
I modified the download address and placed it on my local server, and it was able to be downloaded, but there was a problem with the Hash verification.
emcc: error: Unexpected hash: bb2338c9dadd5b6233d7a442eca992e585c012e71643471f0c9691ac12df159dc837c21dafa38fb5f908ed4be11c4b0e04a78108b5229551407ccd9e054f026b If you are updating the port, please update the hash. Traceback (most recent call last): File "/opencascade.js/src/buildFromYaml.py", line 128, in <module> runBuild(buildConfig["mainBuild"]) File "/opencascade.js/src/buildFromYaml.py", line 119, in runBuild subprocess.check_call([ File "/usr/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd)
Thanks for your reply!
The tar archive has to match the expected hash. If you run sha512hash on the file you downloaded you should see the same hash as the mentioned in tools/ports/freetype.py
file. If you don't get the same hash then something is wrong with your download.
Yes! Thank u for your prompt reply!
First of all, I made sure that this Docker can run normally, because a normal compilation was successful before (the file can be pulled from Github)
But after I download it normally, the following problems will appear:
What could be the reason?
Have you modified the freetype.py
file somehow? What modifications did you make? The get()
function in freetype.py, should never return None
... it should always return a list of libraries to at the link command.
yes! When I modified the url address, it showed that there was a problem with the indentation of a function below in freetype.py. I modified the indentation problem. I think this problem may cause no return value. I tried to fix it. Thank you for your reply!
Thanks for your help, I've solved the problem: The main method is: Github cannot request to modify its download address.
Clone a project from document, when I try to compile, I get the following error message:
What have I done to resolve this issue? Thanks for your reply!