Hello,
I am getting set up to build the engine locally and I’ve encountered the following issue:
Waf: Leaving directory C:\Citizen\defold\sourceCode\defold\engine\profiler\build' 'install' finished successfully (0.018s) Building engine for arm64-android [exec] python C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/ext/bin/waf --prefix=C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home --skip-tests distclean configure build install --platform=arm64-android --skip-build-tests 'distclean' finished successfully (0.023s) Setting top to : C:\Citizen\defold\sourceCode\defold\engine\engine Setting out to : C:\Citizen\defold\sourceCode\defold\engine\engine\build Checking for program 'ccache' : not found [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --sdk_root C:\Program Files (x86)\Windows Kits\10\ [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --sdk_version 10.0.22621.0 [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --includes C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um,C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt,C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared,C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --lib_paths C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64,C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64,C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\lib\x64 [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --bin_paths C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64,C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64 [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --vs_root C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433 [exec] C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --vs_version 14.42.34433 Checking for program 'd8' : C:\Users\citizen\AppData\Local\Android\Sdk\build-tools\35.0.0\d8.bat Checking for 'clang' (C compiler) : C:\Users\citizen\AppData\Local\Android\Sdk\ndk\28.0.12674087\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android21-clang.cmd Checking for 'clang++' (C++ compiler) : C:\Users\citizen\AppData\Local\Android\Sdk\ndk\28.0.12674087\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android21-clang++.cmd Checking for program 'clang' : C:\Users\citizen\AppData\Local\Android\Sdk\ndk\28.0.12674087\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe Checking for program 'clang++' : C:\Users\citizen\AppData\Local\Android\Sdk\ndk\28.0.12674087\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe Checking for program 'javac' : C:\Users\citizen\AppData\Local\Programs\Microsoft\jdk-21.0.5.11-hotspot\bin\javac.exe Checking for program 'java' : C:\Users\citizen\AppData\Local\Programs\Microsoft\jdk-21.0.5.11-hotspot\bin\java.exe Checking for program 'jar' : C:\Users\citizen\AppData\Local\Programs\Microsoft\jdk-21.0.5.11-hotspot\bin\jar.exe Checking for program 'javadoc' : C:\Users\citizen\AppData\Local\Programs\Microsoft\jdk-21.0.5.11-hotspot\bin\javadoc.exe Checking for file texc.py : C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/bin\texc.py Checking for program 'ddfc_cxx' : C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home/bin\ddfc_cxx.bat 'configure' finished successfully (0.670s) Waf: Entering directory
C:\Citizen\defold\sourceCode\defold\engine\engine\build’
[ 1/69] Compiling content\builtins\render\default.render_script
[ 2/69] Compiling content\builtins\graphics\particle_blob.png
[ 3/69] Compiling content\builtins\fonts\font-df-ms-singlelayer.fp
[ 4/69] Compiling content\builtins\connect\connect.gui_script
[ 5/69] Compiling content\builtins\connect\connect.collection
[ 6/69] Compiling content\builtins\render\default.render
[ 7/69] Compiling content\builtins\fonts\font-df-ms.fp
[ 8/69] Compiling content\builtins\scripts\mobdebug.lua
[ 9/69] Compiling content\builtins\graphics\particle_blob.tilesource
[10/69] Compiling content\builtins\scripts\debugger.lua
[11/69] Compiling content\builtins\render\default.display_profiles
[12/69] Compiling content\builtins\fonts\label.material
[13/69] Compiling content\builtins\materials\tile_map.vp
[14/69] Compiling content\builtins\fonts\default.font
[15/69] Compiling content\builtins\materials\tile_map.fp
[16/69] Compiling content\builtins\fonts\label-df.material
[17/69] Compiling content\builtins\materials\sprite_paged_atlas.material
[18/69] Compiling content\builtins\connect\connect.gui
[19/69] Compiling content\builtins\materials\sprite.vp
[20/69] Compiling content\builtins\materials\sprite.fp
env DM_BOB_ROOTFOLDER=C:\Users\citizen\AppData\Local\Temp\bob-light-7bksva7_
[21/69] Compiling content\builtins\fonts\debug\always_on_top.font
Exception in thread “main” java.lang.UnsupportedClassVersionError: com/dynamo/bob/pipeline/TextureGenerator has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Traceback (most recent call last):
File “C:\Citizen\defold\sourceCode\defold\tmp\dynamo_home\bin\texc.py”, line 32, in
raise Exception(“Failed to compile texture (err: %d): %s” % (ret, args[0]))
Exception: Failed to compile texture (err: 1): …\content\builtins\graphics\particle_blob.png
2025-01-10 09:23:24 INFO
env DM_BOB_ROOTFOLDER=C:\Users\citizen\AppData\Local\Temp\bob-light-7bksva7_
I am building on a Windows machine, and the build for the host platform (Windows) completes successfully, but fails with above for platform=arm64-android.
Command that triggers the build is:
./scripts/build.py build_engine --platform=arm64-android --skip-docs --skip-tests – --skip-build-tests
The source code that is being built is the “master” branch (checked out yesterday).
I would appreciate some assistance in fixing this.