UnrealEngineHTML5 / Documentation

530 stars 181 forks source link

HTML5Setup.sh fails, "cp: cannot stat 'libz.a': No such file or directory" #95

Open Candescence opened 3 years ago

Candescence commented 3 years ago

I've been trying to run the HTML5Setup.sh file on Windows 10 exactly as instructed, but I've run into a roadblock. The same error has happened on both my desktop PC and my laptop - speciically, missing zLib files/folders.

Here's the full setup process log:

$ ./HTML5Setup.sh
/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5
Cloning into 'emsdk-1.39.18'...
remote: Enumerating objects: 2750, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 2750 (delta 3), reused 4 (delta 1), pack-reused 2742
Receiving objects: 100% (2750/2750), 1.45 MiB | 1.49 MiB/s, done.
Resolving deltas: 100% (1761/1761), done.
Installing SDK 'sdk-releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit'..
Installing tool 'node-14.15.5-64bit'..
Downloading: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/node-v14.15.5-win-x64.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v14.15.5-win-x64.zip, 30284821 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/node-v14.15.5-win-x64.zip' to 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit'
Done installing tool 'node-14.15.5-64bit'.
Installing tool 'python-3.9.2-1-64bit'..
Downloading: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/python-3.9.2-1-embed-amd64+pywin32.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/python-3.9.2-1-embed-amd64+pywin32.zip, 16982397 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/python-3.9.2-1-embed-amd64+pywin32.zip' to 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/python/3.9.2-1_64bit'
Done installing tool 'python-3.9.2-1-64bit'.
Installing tool 'java-8.152-64bit'..
Downloading: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/portable_jre_8_update_152_64bit.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/portable_jre_8_update_152_64bit.zip, 69241499 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/portable_jre_8_update_152_64bit.zip' to 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/java/8.152_64bit'
Done installing tool 'java-8.152-64bit'.
Installing tool 'releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit'..
Downloading: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/1914a1543f08cd8e41f44c2bb05f7a90d1920275-wasm-binaries.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/win/1914a1543f08cd8e41f44c2bb05f7a90d1920275/wasm-binaries.zip, 545362918 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/1914a1543f08cd8e41f44c2bb05f7a90d1920275-wasm-binaries.zip' to 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream'
Done installing tool 'releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit'.
Running post-install step: npm ci ...
Done running: npm ci
Done installing SDK 'sdk-releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit'.
Adding directories to PATH:
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten

Setting environment variables:
PATH = /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten:/c/Users/crono/bin:/c/Program Files/Git/mingw64/bin:/c/Program Files/Git/usr/local/bin:/c/Program Files/Git/usr/bin:/c/Program Files (x86)/Razer/ChromaBroadcast/bin:/c/Program Files/Razer/ChromaBroadcast/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/GtkSharp/2.12/bin:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Git LFS:/c/WINDOWS/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/c/Program Files/Git/cmd:/c/Program Files/dotnet:/c/xampp/php:/c/Program Files/CMake/bin:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/c/Users/crono/AppData/Local/Programs/Python/Python39/Scripts:/c/Users/crono/AppData/Local/Programs/Python/Python39:/c/Users/crono/AppData/Local/Microsoft/WindowsApps:/c/Users/crono/.dotnet/tools:/c/Program Files/Git/usr/bin/vendor_perl:/c/Program Files/Git/usr/bin/core_perl
EMSDK = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
EM_CONFIG = D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\.emscripten
EMSDK_NODE = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin/node.exe
EMSDK_PYTHON = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/python/3.9.2-1_64bit/python.exe
JAVA_HOME = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/java/8.152_64bit
The changes made to environment variables only apply to the currently running shell instance. Use the 'emsdk_env.bat' to re-enter this environment later, or if you'd like to permanently register this environment permanently, rerun this command with the option --permanent.
Setting the following tools as active:
   node-14.15.5-64bit
   python-3.9.2-1-64bit
   java-8.152-64bit
   releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit

Installing tool 'mingw-7.1.0-64bit'..
Downloading: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/mingw_7.1.0_64bit.zip from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/mingw_7.1.0_64bit.zip, 131994877 Bytes
 [----------------------------------------------------------------------------]
Unpacking 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/zips/mingw_7.1.0_64bit.zip' to 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit'
Done installing tool 'mingw-7.1.0-64bit'.
Adding directories to PATH:
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin

Setting environment variables:
PATH = /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin:/c/Users/crono/bin:/c/Program Files/Git/mingw64/bin:/c/Program Files/Git/usr/local/bin:/c/Program Files/Git/usr/bin:/c/Program Files (x86)/Razer/ChromaBroadcast/bin:/c/Program Files/Razer/ChromaBroadcast/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/GtkSharp/2.12/bin:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Git LFS:/c/WINDOWS/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/c/Program Files/Git/cmd:/c/Program Files/dotnet:/c/xampp/php:/c/Program Files/CMake/bin:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/c/Users/crono/AppData/Local/Programs/Python/Python39/Scripts:/c/Users/crono/AppData/Local/Programs/Python/Python39:/c/Users/crono/AppData/Local/Microsoft/WindowsApps:/c/Users/crono/.dotnet/tools:/c/Program Files/Git/usr/bin/vendor_perl:/c/Program Files/Git/usr/bin/core_perl
EMSDK = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
EM_CONFIG = D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\.emscripten
EMSDK_NODE = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin/node.exe
EMSDK_PYTHON = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/python/3.9.2-1_64bit/python.exe
JAVA_HOME = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/java/8.152_64bit
The changes made to environment variables only apply to the currently running shell instance. Use the 'emsdk_env.bat' to re-enter this environment later, or if you'd like to permanently register this environment permanently, rerun this command with the option --permanent.
Setting the following tools as active:
   releases-upstream-1914a1543f08cd8e41f44c2bb05f7a90d1920275-64bit
   node-14.15.5-64bit
   python-3.9.2-1-64bit
   java-8.152-64bit
   mingw-7.1.0-64bit

Adding directories to PATH:
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin
PATH += /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin

Setting environment variables:
PATH = /d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/upstream/emscripten:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin:/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin:/c/Users/crono/bin:/c/Program Files/Git/mingw64/bin:/c/Program Files/Git/usr/local/bin:/c/Program Files/Git/usr/bin:/c/Program Files (x86)/Razer/ChromaBroadcast/bin:/c/Program Files/Razer/ChromaBroadcast/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/ProgramData/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/GtkSharp/2.12/bin:/c/WINDOWS/System32/OpenSSH:/c/Program Files/Git LFS:/c/WINDOWS/system32/config/systemprofile/AppData/Local/Microsoft/WindowsApps:/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/c/Program Files/Git/cmd:/c/Program Files/dotnet:/c/xampp/php:/c/Program Files/CMake/bin:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/c/Users/crono/AppData/Local/Programs/Python/Python39/Scripts:/c/Users/crono/AppData/Local/Programs/Python/Python39:/c/Users/crono/AppData/Local/Microsoft/WindowsApps:/c/Users/crono/.dotnet/tools:/c/Program Files/Git/usr/bin/vendor_perl:/c/Program Files/Git/usr/bin/core_perl
EMSDK = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18
EM_CONFIG = D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\.emscripten
EMSDK_NODE = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin/node.exe
EMSDK_PYTHON = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/python/3.9.2-1_64bit/python.exe
JAVA_HOME = D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/java/8.152_64bit
++ pwd
+ ZLIB_HTML5='/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/ThirdParty/zlib'
+ ZLIB_VERSION=v1.2.8
+ ZLIB_TAR_SRC='/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../../../Source/ThirdParty/zlib/v1.2.8/build'
+ ZLIB_TAR_NAME=zlib-1.2.8
+ ZLIB_HTML5_SRC='/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/ThirdParty/zlib/zlib-1.2.8'
+ ZLIB_HTML5_DST='/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8'
+ '[' '!' -d '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/include' ']'
+ mkdir -p '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/include'
+ '[' '!' -d '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/lib-1.39.18-up' ']'
+ mkdir -p '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/lib-1.39.18-up'
+ '[' '!' -d zlib-1.2.8 ']'
+ tar xf '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../../../Source/ThirdParty/zlib/v1.2.8/build/zlib-1.2.8.tar.gz'
+ cp zlib-1.2.8/zlib.h '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/include/.'
+ '[' 1 == 1 ']'
+ mkdir -p '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8'
+ cd '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8'
+ type=Release
+ OLEVEL=2
+ build_via_cmake
+ SUFFIX=_O2
+ OPTIMIZATION=-O2
+ rm -rf BUILD_O2
+ mkdir BUILD_O2
+ cd BUILD_O2
++ echo Release
++ tr '[:lower:]' '[:upper:]'
+ TYPE=RELEASE
+ '[' RELEASE == DEBUG ']'
+ DBGFLAG=NDEBUG
+ EMFLAGS='-s WASM=1 -s WASM_OBJECT_FILES=1 -Wno-implicit-function-declaration'
+ rm -f '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/ThirdParty/zlib/zlib-1.2.8/zconf.h'
+ emcmake cmake -G 'MinGW Makefiles' -DBUILD_SHARED_LIBS=OFF -DEMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES=OFF -DCMAKE_BUILD_TYPE=Release '-DCMAKE_C_FLAGS_RELEASE=-O2 -DNDEBUG -s WASM=1 -s WASM_OBJECT_FILES=1 -Wno-implicit-function-declaration -Wno-shift-negative-value' '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/ThirdParty/zlib/zlib-1.2.8'
cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\upstream\emscripten\cache\is_vanilla.txt" for subsequent builds)
cache:INFO:  - ok
configure: cmake -G MinGW Makefiles -DBUILD_SHARED_LIBS=OFF -DEMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE=-O2 -DNDEBUG -s WASM=1 -s WASM_OBJECT_FILES=1 -Wno-implicit-function-declaration -Wno-shift-negative-value D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/ThirdParty/zlib/zlib-1.2.8 -DCMAKE_TOOLCHAIN_FILE=D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/node/14.15.5_64bit/bin/node.exe"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
CMake Warning (dev) at CMakeLists.txt:186 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2
+ cmake --build . -- zlib -j VERBOSE=1
+ tee zzz_build.log
"C:\Program Files\CMake\bin\cmake.exe" -S"D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\BatchFiles\ThirdParty\zlib\zlib-1.2.8" -B"D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2" --check-build-system CMakeFiles\Makefile.cmake 0
D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin/mingw32-make.exe  -f CMakeFiles\Makefile2 zlib
mingw32-make.exe[1]: Entering directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
"C:\Program Files\CMake\bin\cmake.exe" -S"D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\BatchFiles\ThirdParty\zlib\zlib-1.2.8" -B"D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2" --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2\CMakeFiles" 16
D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin/mingw32-make.exe  -f CMakeFiles\Makefile2 CMakeFiles/zlib.dir/all
mingw32-make.exe[2]: Entering directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin/mingw32-make.exe  -f CMakeFiles\zlib.dir\build.make CMakeFiles/zlib.dir/depend
mingw32-make.exe[3]: Entering directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\BatchFiles\ThirdParty\zlib\zlib-1.2.8" "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\BatchFiles\ThirdParty\zlib\zlib-1.2.8" "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2" "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2" "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Intermediate\1.39.18-up\zlib-1.2.8\BUILD_O2\CMakeFiles\zlib.dir\DependInfo.cmake" --color=
mingw32-make.exe[3]: Leaving directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.18/mingw/7.1.0_64bit/bin/mingw32-make.exe  -f CMakeFiles\zlib.dir\build.make CMakeFiles/zlib.dir/build
mingw32-make.exe[3]: Entering directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
[  6%] Building C object CMakeFiles/zlib.dir/deflate.o
[ 25%] Building C object CMakeFiles/zlib.dir/gzread.o
[ 25%] Building C object CMakeFiles/zlib.dir/infback.o
"D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.18\upstream\emscripten\emcc.bat" -DNO_FSEEKO @CMakeFiles/zlib.dir/includes_C.rsp -O2 -DNDEBUG -s WASM=1 -s WASM_OBJECT_FILES=1 -Wno-implicit-function-declaration -Wno-shift-negative-value -MD -MT CMakeFiles/zlib.dir/deflate.o -MF CMakeFiles\zlib.dir\deflate.o.d -o CMakeFiles\zlib.dir\deflate.o -c "D:\Git Repos\ue4-4.24.3-html5\Engine\Platforms\HTML5\Build\BatchFiles\ThirdParty\zlib\zlib-1.2.8\deflate.c"
[ 31%] Building C object CMakeFiles/zlib.dir/gzlib.o
[ 25%] Building C object CMakeFiles/zlib.dir/adler32.o
[ 75%] Building C object CMakeFiles/zlib.dir/uncompr.o
[ 75%] Building C object CMakeFiles/zlib.dir/crc32.o
[ 81%] Building C object CMakeFiles/zlib.dir/inflate.o
[ 81%] Building C object CMakeFiles/zlib.dir/compress.o
[ 81%] Building C object CMakeFiles/zlib.dir/gzclose.o
[ 81%] Building C object CMakeFiles/zlib.dir/zutil.o
[ 81%] Building C object CMakeFiles/zlib.dir/gzwrite.o
[ 81%] Building C object CMakeFiles/zlib.dir/inftrees.o
[ 87%] Building C object CMakeFiles/zlib.dir/inffast.o
[ 93%] Building C object CMakeFiles/zlib.dir/trees.o
CMakeFiles\Makefile2:87: recipe for target 'CMakeFiles/zlib.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/zlib.dir/all] Error -1073740940
mingw32-make.exe[2]: Leaving directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
CMakeFiles\Makefile2:94: recipe for target 'CMakeFiles/zlib.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/zlib.dir/rule] Error 2
mingw32-make.exe[1]: Leaving directory 'D:/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/1.39.18-up/zlib-1.2.8/BUILD_O2'
Makefile:178: recipe for target 'zlib' failed
mingw32-make.exe: *** [zlib] Error 2
+ '[' 2 == 0 ']'
+ cp libz.a '/d/Git Repos/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/lib-1.39.18-up/zlib_O2.a'
cp: cannot stat 'libz.a': No such file or directory

Everything seems to be fine until it hits the zlib stuff. The main Setup.bat process ran without a hitch, so I don't know why anything would be missing, and I'm fairly sure I had everything properly set up prior to attempting to run the compilation process.

diegyoho commented 2 years ago

Same here!

LadyCookie commented 2 years ago

Same here, any advancement ?

koroknai commented 4 months ago

Same here. Any workaround from earlier commenters?

koroknai commented 4 months ago

The problem for me was, I had a space character in the parent folder's name. (Windows 11) I removed it and now works perfectly. I can see OP has a space as well in "Git Repos". :)