UnrealEngineHTML5 / Documentation

532 stars 183 forks source link

HTML5Setup.sh failing on ln 97 for lack of a ")" #50

Open nicholasstephan opened 3 years ago

nicholasstephan commented 3 years ago

I'm getting this error when running HTML5Setup.sh.

./HTML5Setup.sh: line 97: unexpected EOF while looking for matching ')'

Uncommenting ln 5 to get more verbose logging gives me:

+ EMVER=1.39.0
+ MINGVER=mingw-7.1.0-64bit
++ uname
+ SYSTEM=Darwin
++ cmake --version
++ egrep -o '[0-9].*\.[0-9]'
+ ver=3.18.0
+ version_gt 3.12 3.18.0
++ printf '%s\n' 3.12 3.18.0
++ sort -V
++ head -n 1
+ test 3.12 '!=' 3.12
++ command -v python
+ '[' -x /usr/bin/python ']'
+ SCRIPTDIR=.
++ cd .
++ pwd
+ H5PLATFORM=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5
+ H5PATCHES=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/Build/PatchFiles/emsdk-1.39.0
++ cd /Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/../..
++ pwd
+ ENGINE=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine
+ export HOME=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate
+ HOME=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate
+ export USE_INTERMEDIATE_PATH=1
+ USE_INTERMEDIATE_PATH=1
+ '[' '!' -d /Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate ']'
+ LOG_FILE=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Platforms/HTML5/Intermediate/zzz_warnings.txt
+ echo ''
+ patch_UBT_HTML5
+ csproj=/Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj
+ '[' '!' -e /Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj.save ']'
++ cat
+ HTML5PLATFORM=' <When Condition="Exists('\''Platform\\HTML5\\UEBuildHTML5.cs'\'')">
      <ItemGroup>
        <Compile Include="Platform\\HTML5\\HTML5ProjectGenerator.cs" />
        <Compile Include="Platform\\HTML5\\HTML5ToolChain.cs" />
        <Compile Include="Platform\\HTML5\\UEBuildHTML5.cs" />
        <Compile Include="Platform\\HTML5\\HTML5SDKInfo.cs" />
      </ItemGroup>
    </When>
  </Choose>
  <Choose>'
+ cat /Users/nicholasstephan/UnrealHTML5/ue4-r424-html5/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj.save
+ perl -p -e 's!(.*Exists.*UEBuildLinux.*)! <When Condition="Exists('\''Platform\\HTML5\\UEBuildHTML5.cs'\'')">
      <ItemGroup>
        <Compile Include="Platform\\HTML5\\HTML5ProjectGenerator.cs" />
        <Compile Include="Platform\\HTML5\\HTML5ToolChain.cs" />
        <Compile Include="Platform\\HTML5\\UEBuildHTML5.cs" />
        <Compile Include="Platform\\HTML5\\HTML5SDKInfo.cs" />
      </ItemGroup>
    </When>
  </Choose>
  <Choose>\n\1!'
./HTML5Setup.sh: line 97: unexpected EOF while looking for matching `)'

Full steps to reproduce are:

CapriciousRebel commented 3 years ago

I am also facing the same error

geocolon commented 2 years ago

I am having this same issue with ./HTML5Setup.sh was there a resolution for this error?

mollymun commented 2 years ago

Hi, I am also having this problem, did anyone end up fixing it? Or does anyone know how and why this is happening?

MackeyK24 commented 2 years ago

Shit... me too

mollymun commented 2 years ago

I figured it out - turns out that it is being commented out due to a punctuation.

The opening bracket from like 97 HTML5PLATFORM=$**(**cat <<__AT_HTMLFIVE should be closed by the one on line 113 after __AT_HTMLFIVE

The problem is the punctuation in line 103, the word "isn't" has an apostrophe that initiates a comment. Remove this and it works.

Screenshot 2021-10-01 at 1 50 46 pm

Hope this helps!