UnrealEngineHTML5 / Documentation

540 stars 183 forks source link

I can't run HTML5Setup.sh successful #11

Closed KGTyrael closed 4 years ago

KGTyrael commented 4 years ago

Under Windows 10 1909, when I run HTML5Setup.sh, it always show that./emsdk: line 18: /c/Users/kyleh/AppData/Local/Microsoft/WindowsApps/python3: Permission denied I have already setup python3.8 and cmake. And I also add python to the Path. I have tried to delete the emsdk folder, but it doesn't work. 75816655-8f7aec80-5dd0-11ea-8aa1-48ae90220b8f

nickshinpho commented 4 years ago

this looks like you just double clicked on HTML5Setup.sh file -- which is not in the instructions from:

please try opening the git-bash command prompt window first, and then type out the command as instructed above.

we will look at your python3 issues afterwards...

KGTyrael commented 4 years ago

this looks like you just double clicked on HTML5Setup.sh file -- which is not in the instructions from:

please try opening the git-bash command prompt window first, and then type out the command as instructed above.

we will look at your python3 issues afterwards...

Thank you. I have already tried this way by type command in git-bash. But it looks like doesn't work.

I tried to uninstall Python3.8 and install Python3.7.It succeeded.

I even thought that I didn't configure the Python to cause the problem.But when my friend repeats it on his computer which installed Python3.8, the same problem has arisen. When he install Phthon3.7 and uninstall Python3.8 again. Wow, only in this way can the operation succeed.

nickshinpho commented 4 years ago

fantastic -- that's good investigation information. i will upgrade locally and test this detail. should be interesting to see what different behavior this causes.

nickshinpho commented 4 years ago

@KGTyrael , may i ask what python3.8 installer did you use? when i'm installing from python's download page, it's asking to install to:

but, i see on your screenshot, that's it's asking to install to:

i am not familiar with that path...

Siphonn commented 4 years ago

\Microsoft\WindowsApp\ is the path for the Microsoft Store I believe. I was having trouble running HTML5Setup.sh due to this path. Once the \Microsoft\WindowsApp\ path was removed from environment variables, HTML5Setup.sh ran properly.

darkwere commented 4 years ago

Hi! Need a help with this situation:

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5 (4.24-html5) $ cd Engine/Platforms/HTML5

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5/Engine/Platforms/HTML5 (4.24-html5) $ ./HTML5Setup.sh Writing .emscripten configuration file to user home directory A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate/ Warning: The SDK/tool 'node-12.9.1-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'python-3.7.4-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'java-8.152-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'sdk-releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit' cannot be activated since it is not installed! Skipping this tool... Backing up old Emscripten configuration file in A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten.old The Emscripten configuration file A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten has been rewritten with the following contents:

NODE_JS = 'node' TEMP_DIR = 'C:/Users/darkw/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /a/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0

Setting environment variables: EMSDK = A:/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 EM_CONFIG = A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten

No tools/SDKs found to activate! Usage: emsdk activate tool/sdk1 [tool/sdk2] [...]

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5/Engine/Platforms/HTML5 (4.24-html5) $

programmerBlack commented 4 years ago

Hi! Need a help with this situation:

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5 (4.24-html5) $ cd Engine/Platforms/HTML5

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5/Engine/Platforms/HTML5 (4.24-html5) $ ./HTML5Setup.sh Writing .emscripten configuration file to user home directory A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate/ Warning: The SDK/tool 'node-12.9.1-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'python-3.7.4-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'java-8.152-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit' cannot be activated since it is not installed! Skipping this tool... Warning: The SDK/tool 'sdk-releases-upstream-d57bfdd6d43181501bbd3fab502d57c9073ceb49-64bit' cannot be activated since it is not installed! Skipping this tool... Backing up old Emscripten configuration file in A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten.old The Emscripten configuration file A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten has been rewritten with the following contents:

NODE_JS = 'node' TEMP_DIR = 'C:/Users/darkw/AppData/Local/Temp' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS]

Adding directories to PATH: PATH += /a/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0

Setting environment variables: EMSDK = A:/ue4-r424-html5/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0 EM_CONFIG = A:\ue4-r424-html5\Engine\Platforms\HTML5\Intermediate.emscripten

No tools/SDKs found to activate! Usage: emsdk activate tool/sdk1 [tool/sdk2] [...]

darkw@TSUNAMI MINGW64 /a/ue4-r424-html5/Engine/Platforms/HTML5 (4.24-html5) $

I'm having the same exact issue after removing WindowsApps/ path from the environment variables.

Siphonn commented 4 years ago

I removed the WindowsApps/ path from environment variables because it was stopping the version python I had installed. Do you have a version of python installed? If you do, you may need to add the path for the python.exe to the Environment variables.

If not, install Python (3.8.2 worked for me). During the install there is an option to 'Add Python to Path'.

https://user-images.githubusercontent.com/36541593/77494601-0dfe0380-6e3e-11ea-99db-a8b88a07639e.png

You may need to delete the emsdk folder in /Engine/Platforms/HTML5/Build Then use git bash to run ./HTML5Setup.sh again

Hopefully this will help.

darkwere commented 4 years ago

i have python 3.7.3 installed and remove WindowsApps path from PATH environment variable

programmerBlack commented 4 years ago

My python version is 3.7.0

image

Right now, I'm going to test removing emsdk folder and get back to you.

programmerBlack commented 4 years ago

Removing the emsdk folder did help me make some prorgress. Now it goes through installing node, Java, and other libraries.

But fails with an obscure python error. Attached is the log, error is at the end.

HTML5Setup_Console_Output.txt

Siphonn commented 4 years ago

The errors might have something to do with Cmake. Do you have CMake 3.12 or above? Cmake also needs to be added to environment variable PATH.

darkwere commented 4 years ago

I have CMake 3.17 successfully installed. Now I have passed HTML5Setup, but have no HTML5 packaging options in UE4Editor. And I also had a warnings that python2.7 is missing while packaging a projects. Does python 2.7 really needed?

Running AutomationTool... [2020.04.01-18.22.12:660][204]UATHelper: Packaging (FakePlatformXXX): Parsing command line: -ScriptsForProject=A:/Work/TestProject05/TestProject05.uproject BuildCookRun -nocompileeditor -nop4 -project=A:/Work/TestProject05/TestProject05.uproject -cook -stage -archive -archivedirectory=A:/Work/TestProject05/Build -package -ue4exe=A:\ue4-r424-html5\Engine\Binaries\Win64\UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=XXX -build -target=TestProject05 -clientconfig=Development -utf8output -compile [2020.04.01-18.22.12:860][228]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.12:860][228]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.14:044][357]UATHelper: Packaging (FakePlatformXXX): Dependencies are up to date. Skipping compile. [2020.04.01-18.22.15:972][588]UATHelper: Packaging (FakePlatformXXX): Setting up ProjectParams for A:\Work\TestProject05\TestProject05.uproject [2020.04.01-18.22.16:415][641]UATHelper: Packaging (FakePlatformXXX): ** BUILD COMMAND STARTED ** [2020.04.01-18.22.16:440][644]UATHelper: Packaging (FakePlatformXXX): Running: A:\ue4-r424-html5\Engine\Binaries\DotNET\UnrealBuildTool.exe UnrealPak Win64 Development -Project=A:\Work\TestProject05\TestProject05.uproject A:\Work\TestProject05\TestProject05.uproject -NoUBTMakefiles -Manifest=A:\ue4-r424-html5\Engine\Intermediate\Build\Manifest.xml -NoHotReload -log="A:\ue4-r424-html5\Engine\Programs\AutomationTool\Saved\Logs\UBT-UnrealPak-Win64-Development.txt" [2020.04.01-18.22.16:798][679]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.16:798][679]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.16:866][686]UATHelper: Packaging (FakePlatformXXX): Using 'git status' to determine working set for adaptive non-unity build (A:\ue4-r424-html5). [2020.04.01-18.22.18:681][883]UATHelper: Packaging (FakePlatformXXX): Writing manifest to A:\ue4-r424-html5\Engine\Intermediate\Build\Manifest.xml [2020.04.01-18.22.18:831][901]UATHelper: Packaging (FakePlatformXXX): Target is up to date [2020.04.01-18.22.18:839][902]UATHelper: Packaging (FakePlatformXXX): Total execution time: 2,36 seconds [2020.04.01-18.22.18:865][905]UATHelper: Packaging (FakePlatformXXX): Took 2,4225385s to run UnrealBuildTool.exe, ExitCode=0 [2020.04.01-18.22.18:882][907]UATHelper: Packaging (FakePlatformXXX): Running: A:\ue4-r424-html5\Engine\Binaries\DotNET\UnrealBuildTool.exe TestProject05 XXX Development -Project=A:\Work\TestProject05\TestProject05.uproject A:\Work\TestProject05\TestProject05.uproject -NoUBTMakefiles -remoteini="A:\Work\TestProject05" -skipdeploy -Manifest=A:\ue4-r424-html5\Engine\Intermediate\Build\Manifest.xml -NoHotReload -log="A:\ue4-r424-html5\Engine\Programs\AutomationTool\Saved\Logs\UBT-TestProject05-XXX-Development.txt" [2020.04.01-18.22.19:254][946]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.19:254][946]UATHelper: Packaging (FakePlatformXXX): PYTHON NOT FOUND: A:\ue4-r424-html5\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\2.7.13.1_64bit/python-2.7.13.amd64\python.exe [2020.04.01-18.22.19:291][951]UATHelper: Packaging (FakePlatformXXX): Using 'git status' to determine working set for adaptive non-unity build (A:\ue4-r424-html5).

VerrroS commented 4 years ago

I also have a problem running HTML5Setup.sh. It runs for almost 2 hours and then I get a "Success!" but also this warnings

WARNING: emsdk-1.39.0 (windows) python PATH NOT FOUND -- skipping EPIC patches here WARNING: emsdk-1.39.0-fastcomp (windows) python PATH NOT FOUND -- skipping EPIC patches here

Eventough added python to PATH and when I do the "python --version" command I get my python version. I cannot generate the project file

Siphonn commented 4 years ago

@darkwere Had the same problem myself. A change needs to be made in the HTML5SDKInfo.cs file.

Here is a link the solution that help me: https://github.com/UnrealEngineHTML5/Documentation/issues/13#issuecomment-600106852

There is a warning in the documentation that python 2.x is now 'End of Life', so it is not required. https://github.com/UnrealEngineHTML5/Documentation/blob/master/Platforms/HTML5/HowTo/README.0.building.UE4.Editor.md#development-environment-requirements The fixed for HTML5SDKInfo.cs is something that will have to pushed to the repo.

@VerrroS A version of python is installed in the emsdk folder during HTMLSetup.sh (\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\3.7.4_64bit). I'm not sure if this also needs to be added to PATH but doing so may remove your warning.

VerrroS commented 4 years ago

Thanks, I added these to my PATH but I still get the warning.. any other ideas?

Siphonn commented 4 years ago

Perhaps the order of the PATH? Maybe emsdk\emsdk-1.39.0\python\3.7.4_64bit needs to be before (or after) you other python path so it will be called first.

bigjcr commented 4 years ago

Can somebody confirm whether these warnings are relevant or not please?

WARNING: emsdk-1.39.0 (windows) python PATH NOT FOUND -- skipping EPIC patches here WARNING: emsdk-1.39.0-fastcomp (windows) python PATH NOT FOUND -- skipping EPIC patches here

I was able to generate a package of an empty blueprint project, but soon after launch it throws errors. HTMLLaunchHelper.exe is missing in the package folder (nowhere to be found) and I don't know if this file is necessary for the build to work or not, or if it's creation depends on these warnings.

VerrroS commented 4 years ago

@bigjcr Had the same Warning- I was able to built the Unreal Editor, but I couln't package my project for HTML

bigjcr commented 4 years ago

@VerrroS I made exactly this https://github.com/UnrealEngineHTML5/Documentation/issues/13#issuecomment-600106852 and I was able to package the project for HTML, also I added the project at Engine/Platforms/HTML5/Source/Programs/HTML5/HTML5LaunchHelper to the solution and built it, now HTML5LaunchHelper.exe appears when I package.

The issues I had previously with my packaged project seem to be related to the new SunSky, disabling it removes all errors, but dynamic lighting seems to fail as well, it produces no errors but the sky looks pitch black.

VerrroS commented 4 years ago

@bigjcr Nice, thanks I'll try this again. Can you tell me under what type did you add the project to the solution? HTML5LAUNCHHELPER

bigjcr commented 4 years ago

@VerrroS image I used the option Add existing project, it didn't ask me to choose a type.

darkwere commented 4 years ago

Well, finally, after 6th tries from scratch - I made it. I've tried all the recipes mentioned above, including last one. Also, there is a problem with the last recipe - a missing UE4.ico file, that caused unsuccessful build of HTML5LaunchHelper util. All you need to do: copy UE4.ico file from /engine/Source/Programs/UnrealVS/Resources to Engine/Platforms/HTML5/Source/Programs/HTML5/HTML5LaunchHelper

Until the last recipe i was able to pack html5 project, but was not able to launch from editor. Now I can do both. So my thoughts: these all will not be as it intended to be, until you fix everything manually.

nickshinpho commented 4 years ago

i will be using #21 to follow up on HTML5LaunchHelper progress

LTorrao commented 4 years ago

Hello, I am having this same issue, but I am already at 4.24-html5, latest commit ( https://github.com/UnrealEngineHTML5/UnrealEngine/commit/d637d639e41ee661d56edd456714519f5471755c )

So, doing https://github.com/UnrealEngineHTML5/Documentation/issues/13#issuecomment-600106852 seems unnecessary, because there's:

static string PYTHON_VER = "3.7.4-pywin32_64bit";

which corresponds exactly to what is in

Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\

Yet, when bash-running HTML5Setup.sh I still get, at the end:

WARNING: emsdk-1.39.0 (windows) python PATH NOT FOUND -- skipping EPIC patches here
WARNING: emsdk-1.39.0-fastcomp (windows) python PATH NOT FOUND -- skipping EPIC patches here

Even though I have specifically installed 3.7.4 in my windows machine after uninstalling any other pythons, I've added it to the path, and is the first in the path.

I am trying to fix this because I have previously ignored these warnings, but when I tried to package the HTML5 project, I would get the missing compiled PhysX libraries as mentioned in https://github.com/UnrealEngineHTML5/Documentation/issues/5#issuecomment-576014941.

Regarding what is said in this linked issue, I've already reformatted the drive where the source lives, and I have nothing else on that drive.

nickshinpho commented 4 years ago

@LTorrao - those warnings can be ignored (because those patches are for python2) - I've already removed those warnings on my work-in-progress 4.25 & i forgot to checkin this correction for the 4.24-html branch (I'll put that fix in tomorrow morning.)

LTorrao commented 4 years ago

Thank you @nickshinpho

So, the warnings are not the reason why the third party libraries are not compiling... I'm lost here :)

nickshinpho commented 4 years ago

correct @LTorrao, the warnings is not the reason for issue #5.

for the strange "No space left on device" issue when building the thirdparty libs -- can you post your "hard drive settings" to the question at:

(and post that in #5) thanks! ^_^

ngoalongcang commented 1 year ago

I has er zsh: permission denied: ./HTML5Setup.sh some one fix it?