Closed tgraupmann closed 2 years ago
Hi @tgraupmann ,
Platforms/HTML5
and then revert to HEAD)cmake --version
in git bash) and python --version
and also python3 --version
commands run good.Now to get the tool versions to match?
EMSDK = D:/UnrealEngine/UnrealEngineHTML5_4_24/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0
EM_CONFIG = D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\.emscripten
EMSDK_NODE = D:/UnrealEngine/UnrealEngineHTML5_4_24/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/node/14.18.2_64bit/bin/node.exe
EMSDK_PYTHON = D:/UnrealEngine/UnrealEngineHTML5_4_24/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/python/3.9.2_64bit/python.exe
JAVA_HOME = D:/UnrealEngine/UnrealEngineHTML5_4_24/Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/java/8.152_64bit
timot@polaris MINGW64 /d/UnrealEngine/UnrealEngineHTML5_4_24 (4.24-html5)
$ ./GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
ERROR: NODEJS NOT FOUND: D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\node\12.18.1_64bit\bin\node.exe
*** NODE_JS NOT FOUND: error_nodejs_not_found
ERROR: LLVM NOT FOUND: D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\upstream\fastcomp\bin
*** LLVMROOT directory NOT FOUND: error_llvm_not_found
*** PYTHON NOT FOUND: D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\3.7.4_64bit\python.exe
*** NODE_JS NOT FOUND: error_nodejs_not_found
*** LLVMROOT directory NOT FOUND: error_llvm_not_found
*** PYTHON NOT FOUND: D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\python\3.7.4_64bit\python.exe
Binding IntelliSense data... 100%
Writing project files... 100%
Install and activate the expected versions.
cd Engine/Platforms/HTML5/Build/emsdk/emsdk-1.39.0/
./emsdk install node-12.18.1-64bit
./emsdk activate node-12.18.1-64bit
./emsdk install python-3.7.4-64bit
./emsdk activate python-3.7.4-64bit
./emsdk install sdk-1.39.0
./emsdk activate sdk-1.39.0
./emsdk install mingw-7.1.0-64bit
./emsdk activate mingw-7.1.0-64bit
With that setup ready to run:
$ ./HTML5Setup.sh
(20 minutes of compiling...)
[ 71%] Linking CXX static library SimulationController.bc
[ 72%] Linking CXX static library PhysX3Vehicle.bc
[ 72%] Linking CXX static library PhysX3Common.bc
[100%] Linking C static library libz.bc
[100%] Linking C static library libz.bc
[100%] Linking C static library libz.bc
Success!
That seems to have done it.
$ ./GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
Binding IntelliSense data... 100%
Writing project files... 100%
@tgraupmann , there is no emsdk-1.39.0 version mentioned or used in https://github.com/ufna/UnrealEngine/tree/4.24-html5 branch. And you definitely shouldn't run emsdk installation manually.
It's either not a clean checkout, or wrong is repo used. It seemed that you're using https://github.com/UnrealEngineHTML5/UnrealEngine instead of my fork.
Oops, on one machine yeah I was using the https://github.com/UnrealEngineHTML5/UnrealEngine
fork and 4.24-html
branch. Doing an empty level test export, that fork gets a build error.
UATHelper: Packaging (HTML5): shared:ERROR: D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Source\ThirdParty\PhysX3\PhysX_3.4\lib-1.39.0-fc-mt\PhysX3_O2.bc: No such file or directory ("D:\UnrealEngine\UnrealEngineHTML5_4_24\Engine\Platforms\HTML5\Source\ThirdParty\PhysX3\PhysX_3.4\lib-1.39.0-fc-mt\PhysX3_O2.bc" was expected to be an input
file, based on the commandline arguments provided)
On my other machine, the https://github.com/ufna/UnrealEngine/
fork and 4.24-html5
branch build successfully!
UATHelper: Packaging (HTML5): BUILD SUCCESSFUL
UATHelper: Packaging (HTML5): AutomationTool exiting with ExitCode=0 (Success)
I've tried several branches but I'm running into the same issue. The emscripten path does not exist...
Engine\Platforms\HTML5\Build\emsdk\emsdk-1.39.0\upstream\emscripten
I may just need some
emsdk
commands to get the missing tools installed to the expected paths.These are my steps on Windows 10.
Generating the project files reveals some paths and missing tool issues.
Building the solution:
If I run
Engine\Platforms\HTML5\Build\emsdk\emsdk-3.0.0\emsdk_env.bat
before invokingEngine\Platforms\HTML5\HTML5Setup.sh
from bash, I get the following error output.Disable Python in App Execution Aliases...
I get more errors when I rerun the
./HTML5Setup,sh
bash script.Enscripten is still not found.
Let's install some of the missing tools...
Activate the tools:
And regenerate the project files.
Still can't find Python. So I'll copy and paste the folder and give it the expected name.
One last time, regenerate the project files.
And walla. I'll build the solution and check for errors.