UnrealEngineHTML5 / Documentation

533 stars 183 forks source link

HTML5Setup.sh error 'unexpected EOF' when building for Windows #10

Open BMSTrust opened 4 years ago

BMSTrust commented 4 years ago

Hi, when running the HTML5Setup.sh it always exits with the following error:

/tmp/tmp.d8JWYZ9TQh: line 6: unexpected EOF while looking for matching"'

Here is the full log:

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

NODE_JS = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin/node.exe' PYTHON = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit/python.exe' JAVA = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit/bin/java.exe' LLVM_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/bin' BINARYEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream' EMSCRIPTEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten' TEMP_DIR = 'C:/Users/Bruno/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten

Setting environment variables: EMSDK = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 EM_CONFIG = C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten EMSDK_NODE = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin/node.exe EMSDK_PYTHON = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit/python.exe JAVA_HOME = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit

Set the following tools as active: node-12.9.1-64bit python-3.7.4-64bit java-8.152-64bit releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-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 globally to all users in Windows Registry, rerun this command with the option --global. Writing .emscripten configuration file to user home directory C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate/ Backing up old Emscripten configuration file in C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten.old The Emscripten configuration file C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten has been rewritten with the following contents:

LLVM_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/bin' BINARYEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream' EMSCRIPTEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten' NODE_JS = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin/node.exe' PYTHON = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit/python.exe' JAVA = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit/bin/java.exe' MINGW_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/mingw/7.1.0_64bit' TEMP_DIR = 'C:/Users/Bruno/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/upstream/emscripten PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/mingw/7.1.0_64bit/bin

Setting environment variables: EMSDK = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 EM_CONFIG = C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten EMSDK_NODE = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/12.9.1_64bit/bin/node.exe EMSDK_PYTHON = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.7.4_64bit/python.exe JAVA_HOME = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit

Set the following tools as active: releases-upstream-3b8cff670e9233a6623563add831647e8689a86b-64bit node-12.9.1-64bit python-3.7.4-64bit java-8.152-64bit mingw-7.1.0-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 globally to all users in Windows Registry, rerun this command with the option --global. Writing .emscripten configuration file to user home directory C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate/ Backing up old Emscripten configuration file in C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten.old The Emscripten configuration file C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten has been rewritten with the following contents:

NODE_JS = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node.exe' PYTHON = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit/python.exe' JAVA = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit/bin/java.exe' LLVM_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/fastcomp/bin' BINARYEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp' EMSCRIPTEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten' EMSCRIPTEN_NATIVE_OPTIMIZER = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/bin/optimizer.exe' TEMP_DIR = 'C:/Users/Bruno/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten

Setting environment variables: EMSDK = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp EM_CONFIG = C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten EMSDK_NODE = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node.exe EMSDK_PYTHON = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit/python.exe JAVA_HOME = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit

Set the following tools as active: node-12.9.1-64bit python-3.7.4-64bit java-8.152-64bit releases-fastcomp-d57bfdd6d43181501bbd3fab502d57c9073ceb49-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 globally to all users in Windows Registry, rerun this command with the option --global. Writing .emscripten configuration file to user home directory C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate/ Backing up old Emscripten configuration file in C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten.old The Emscripten configuration file C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten has been rewritten with the following contents:

LLVM_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/fastcomp/bin' BINARYEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp' EMSCRIPTEN_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten' EMSCRIPTEN_NATIVE_OPTIMIZER = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/bin/optimizer.exe' NODE_JS = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node.exe' PYTHON = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit/python.exe' JAVA = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit/bin/java.exe' MINGW_ROOT = 'C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/mingw/7.1.0_64bit' TEMP_DIR = 'C:/Users/Bruno/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/mingw/7.1.0_64bit/bin

Setting environment variables: EMSDK = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp EM_CONFIG = C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten EMSDK_NODE = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node.exe EMSDK_PYTHON = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit/python.exe JAVA_HOME = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit

Set the following tools as active: releases-fastcomp-3b8cff670e9233a6623563add831647e8689a86b-64bit node-12.9.1-64bit python-3.7.4-64bit java-8.152-64bit mingw-7.1.0-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 globally to all users in Windows Registry, rerun this command with the option --global. Adding directories to PATH: PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/fastcomp/emscripten PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit/bin PATH += /c/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/mingw/7.1.0_64bit/bin

Setting environment variables: EMSDK = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp EM_CONFIG = C:\ue4-r424-html5\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten EMSDK_NODE = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/node/12.9.1_64bit/bin/node.exe EMSDK_PYTHON = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/python/3.7.4_64bit/python.exe JAVA_HOME = C:/ue4-r424-html5/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0-fastcomp/java/8.152_64bit

/tmp/tmp.d8JWYZ9TQh: line 6: unexpected EOF while looking for matching `"'

Deleting the Build/emsdk folders and running the script again ends with the same line (ofc different temp file).

Any ideas? Thanks for your help.

nickshinpho commented 4 years ago

apologies for the late response - was out on vacation.

can you try the following:

and then try running that again. this should help us narrow down which line in the shell script is broken.

nickshinpho commented 4 years ago

BMSTrust, are you still seeing this issue?

Ric4rdoPy commented 4 years ago

Hello! When I run the HTML5Setup.sh script, at the very beginning of the execution the message appears: Not a directory, and the script aborts.

nickshinpho commented 4 years ago

@Ric4rdoPy can you post some of the build logs? also, can you try to uncomment line 5 (delete the '#' character) in HTML5Setup.sh -- this will print verbose output for debugging.

Ric4rdoPy commented 4 years ago

Dear @nickshinpho So, I deleted the #, I see the result being printed, but I don't know how to throw it in a file. I even saw that there is a zzz_warnings.txt file, however when I open it it is empty. I beg your pardon, but I am extremely new to using UE4 HTML5, as well as in bash script. I ask you to be patient with me. Lol

nickshinpho commented 4 years ago

to send all of the output to a file, do this:

./HTML5Setup.sh | tee xxx_Ric4rdoPy.txt

tee will send the output to stdout while also saving it to the file: xxx_Ric4ardoPy.txt

zip and attach to this thread.

Ric4rdoPy commented 4 years ago

Dear Nick

The result of executing the HTML5Setup.sh script is attached.

result.zip

Ric4rdoPy commented 4 years ago

Hey Nick, I think it went right!

Ric4rdoPy commented 4 years ago

... when I run the generateProjectFiles.sh script this error occurs: 'dirname ./GenerateProjectFiles.sh': No such file or directory

nickshinpho commented 4 years ago

@Ric4rdoPy , (1) when you say:

Hey Nick, I think it went right!

do you mean that the HTML5Setup.sh finished to completion?

and (2) running ./GenerateProjectFiles.sh is for Linux -- it seems you should be using the windows one:

https://github.com/UnrealEngineHTML5/Documentation/blob/master/Platforms/HTML5/HowTo/README.0.building.UE4.Editor.md#on-windows

Ric4rdoPy commented 4 years ago

Dear Nick I thank you for your kindness and I will accept your support, because when executing this script, I see that it was not until the end. As I told you, I am new to this subject.

Ric4rdoPy commented 4 years ago

Hello Nick!

In my attempt to continue with the execution of the scripts, I have the error that appears in the attachment zzz_build.txt. I noticed that the pnglibconf.dfa file is used as a reference, but somehow, the error occurs because a comment line does not get the correct termination. Please advise me on this. zzz_build.log

nickshinpho commented 3 years ago

@Ric4rdoPy are you still having problems with building the third party libraries?

i've just tried this and was able to successfully build with the (much) older emscripten 1.39.0 toolchain (that i see in your build log).

having said that, i've have just updated all HTML5 HowTo documents to the UE4-4.24.4-html5-1.39.18 branch -- which is UE4 version 4.24.3 -- but with the emscripten 1.39.18 toolchain (the last latest version i have tested with working UE4 HTML5 packaging).

Tradestar commented 3 years ago

Hello! When I run the HTML5Setup.sh script, at the very beginning of the execution the message appears: Not a directory, and the script aborts. I'm getting this error too, did you manage to solve it?

Tradestar commented 3 years ago

@Ric4rdoPy are you still having problems with building the third party libraries?

i've just tried this and was able to successfully build with the (much) older emscripten 1.39.0 toolchain (that i see in your build log).

having said that, i've have just updated all HTML5 HowTo documents to the UE4-4.24.4-html5-1.39.18 branch -- which is UE4 version 4.24.3 -- but with the emscripten 1.39.18 toolchain (the last latest version i have tested with working UE4 HTML5 packaging).

Hello Nick, I'm getting the same error as Ric4rdoPy... When I run HTML5Setup.sh it begins to execute then immediately closes. What might be the issue?

ZeusLT commented 3 years ago

Are you using Bash to run the script? You shouldn't just double click it.