UnrealEngineHTML5 / Documentation

528 stars 181 forks source link

./HTML5Setup.sh line 277: syntax error: unexpected end of file #136

Open arifqz opened 2 years ago

arifqz commented 2 years ago

Getting unexpected EOF file when running ./HTML5Setup.sh as per the steps here. https://github.com/UnrealEngineHTML5/Documentation/blob/master/Platforms/HTML5/HowTo/README.0.building.UE4.Editor.md#on-mac

I have all the dependencies installed as per the guide.

I found a similar issue reported but not exactly the same here. https://github.com/UnrealEngineHTML5/Documentation/issues/10

But following the troubleshooting steps @nickshinpho provided here. https://github.com/UnrealEngineHTML5/Documentation/issues/10

uncommenting # on line 5 (deleting the # character) to get the logs. This is the print dialog in Terminal.

Arifs-MacBook-Pro:HTML5 arif$ ./HTML5Setup.sh

  • EMVER=1.39.18
  • MINGVER=mingw-7.1.0-64bit ++ uname
  • SYSTEM=Darwin ++ cmake --version ++ egrep -o '[0-9].*.[0-9]'
  • ver=3.23.2
  • version_gt 3.12 3.23.2 ++ printf '%s\n' 3.12 3.23.2 ++ sort -V ++ head -n 1
  • test 3.12 '!=' 3.12 ++ command -v python
  • '[' -x /usr/bin/python ']'
  • SCRIPTDIR=. ++ cd . ++ pwd
  • H5PLATFORM=/Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5
  • H5PATCHES=/Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/Build/PatchFiles/emsdk-1.39.18 ++ cd /Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/../.. ++ pwd
  • ENGINE=/Users/arif/ue4-4.24.3-html5/Engine
  • export HOME=/Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate
  • HOME=/Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate
  • export USE_INTERMEDIATE_PATH=1
  • USE_INTERMEDIATE_PATH=1
  • '[' '!' -d /Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate ']'
  • LOG_FILE=/Users/arif/ue4-4.24.3-html5/Engine/Platforms/HTML5/Intermediate/zzz_warnings.txt
  • echo ''
  • patch_UBT_HTML5
  • csproj=/Users/arif/ue4-4.24.3-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj
  • '[' '!' -e /Users/arif/ue4-4.24.3-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj.save ']' ++ cat
  • HTML5PLATFORM='

    '
  • cat /Users/arif/ue4-4.24.3-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj.save
  • perl -p -e 's!(.Exists.UEBuildLinux.*)!

    \n\1!' ./HTML5Setup.sh: line 277: syntax error: unexpected end of file Arifs-MacBook-Pro:HTML5 arif$

Does anyone know why this might be happening? Let me know if you need additional details.