UnrealEngineHTML5 / Documentation

533 stars 183 forks source link

failing to build on linux (ubuntu & xubuntu 18.04): cp: cannot stat 'libpng15.bc': No such file or directory #9

Closed angrymerz closed 4 years ago

angrymerz commented 4 years ago

Hi! We killed about two weekends in trying to build UE 4.24 with HTML5 support %) We try Ubuntu and Xubuntu 18.04, try two locales - ru & en - and got the same crash. Help us plz))

Here what we got as output when run HTML5Setup.sh: ` :~/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5$ ./HTML5Setup.sh Writing .emscripten configuration file to user home directory /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/ Backing up old Emscripten configuration file in /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/.emscripten.old The Emscripten configuration file /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/.emscripten has been rewritten with the following contents:

NODE_JS = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin/node' LLVM_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/bin' BINARYEN_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream' EMSCRIPTEN_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten' TEMP_DIR = '/tmp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.

/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0:/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin:/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten

Set the following tools as active: node-12.9.1-64bit releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit

Writing .emscripten configuration file to user home directory /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/ Backing up old Emscripten configuration file in /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/.emscripten.old The Emscripten configuration file /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/.emscripten has been rewritten with the following contents:

NODE_JS = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node' LLVM_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/fastcomp/bin' BINARYEN_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp' EMSCRIPTEN_ROOT = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten' EMSCRIPTEN_NATIVE_OPTIMIZER = '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/bin/optimizer' TEMP_DIR = '/tmp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.

/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp:/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin:/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten

Set the following tools as active: node-12.9.1-64bit releases-fastcomp-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit

Adding directories to PATH: PATH += /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp PATH += /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten PATH += /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin

Setting environment variables: EMSDK = /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp EM_CONFIG = /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/.emscripten EMSDK_NODE = /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node

++ pwd

-- Configuring done -- Generating done -- Build files have been written to: /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/zlib-1.2.8/BUILD_O2

-- Configuring done -- Generating done -- Build files have been written to: /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/zlib-1.2.8/BUILD_O3

-- Configuring done -- Generating done -- Build files have been written to: /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/zlib-1.2.8/BUILD_Oz

This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done WARNING: Target "png_static" requests linking to directory "/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/lib-1.39.0-fc". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "png_static" requests linking to directory "/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/BatchFiles/../../Source/ThirdParty/zlib/v1.2.8/lib-1.39.0-fc". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: /home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/libPNG-1.5.27/BUILD_O2

CMakeFiles/genfiles.dir/build.make:98: recipe for target 'pnglibconf.c' failed make[3]: [pnglibconf.c] Error 1 make[3]: Leaving directory '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/libPNG-1.5.27/BUILD_O2' CMakeFiles/Makefile2:205: recipe for target 'CMakeFiles/genfiles.dir/all' failed make[2]: [CMakeFiles/genfiles.dir/all] Error 2 make[2]: Leaving directory '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/libPNG-1.5.27/BUILD_O2' CMakeFiles/Makefile2:239: recipe for target 'CMakeFiles/png_static.dir/rule' failed make[1]: [CMakeFiles/png_static.dir/rule] Error 2 make[1]: Leaving directory '/home/bl/UE4HTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/1.39.0-fc/libPNG-1.5.27/BUILD_O2' Makefile:257: recipe for target 'png_static' failed make: [png_static] Error 2

nickshinpho commented 4 years ago

apologies for the late response -- i was out on vacation the past couple of weeks.

this is now fixed in commit: 9e0cd21d7f7e7b42d9c14afa1b556887bbf69587