Hey, Indeed I had a greater version of Java installed for another project (java 21). I installed the correct version but now it seems to be giving me another error. If I build it stops at waiting for the unit test server which doesn’t start in 15 seconds:
Waiting for HTTP testserver to start
HTTP server failed to start within 15 seconds
'.' is not recognized as an internal or external command,
operable program or batch file.
[exec] python E:\defold\tmp\dynamo_home/ext/bin/waf --prefix=E:\defold\tmp\dynamo_home distclean configure build install --platform=x86_64-win32
Error:
Traceback (most recent call last):
File "E:\defold\scripts\build.py", line 2548, in <module>
f()
File "E:\defold\scripts\build.py", line 1249, in build_engine
self._build_engine_lib(args, lib, host)
File "E:\defold\scripts\build.py", line 1197, in _build_engine_lib
run.env_command(self._form_env(), args + plf_args + self.waf_options + skip_build_tests, cwd = cwd)
File "E:\defold\build_tools\run.py", line 98, in env_command
return _exec_command(args, shell = False, stdout = None, env = env, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\defold\build_tools\run.py", line 75, in _exec_command
raise e
run.ExecException: 1
or if I run it with --skip-tests
I get another error:
[...]
- install E:\defold\tmp\dynamo_home\ext\include\basis\encoder\jpgd.h (from src\basis\encoder\jpgd.h)
- install E:\defold\tmp\dynamo_home\ext\include\basis\encoder\pvpngreader.h (from src\basis\encoder\pvpngreader.h)
Waf: Leaving directory `E:\defold\engine\dlib\build'
'install' finished successfully (0.697s)
Building jni for x86_64-win32
[exec] python E:\defold\tmp\dynamo_home/ext/bin/waf --prefix=E:\defold\tmp\dynamo_home --skip-tests distclean configure build install --platform=x86_64-win32
'distclean' finished successfully (0.000s)
Setting top to : E:\defold\engine\jni
Setting out to : E:\defold\engine\jni\build
Checking for program 'valgrind' : not found
Checking for program 'ccache' : C:\Path\ccache.exe
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --sdk_root
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --sdk_version
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --includes
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --lib_paths
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --bin_paths
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --vs_root
[exec] E:\defold\tmp\dynamo_home/../../scripts/windows/vswhere2/vswhere2.exe --vs_version
Checking for program 'signtool' : C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe
Checking for program 'CL' : C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\CL.exe
Checking for program 'LINK' : C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\LINK.exe
Checking for program 'LIB' : C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\LIB.exe
Checking for program 'RC' : C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\RC.exe
Checking for program 'signtool' : C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe
Checking for program 'javac' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\javac.exe
Checking for program 'java' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\java.exe
Checking for program 'jar' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\jar.exe
Checking for program 'javadoc' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\javadoc.exe
Checking for program 'valgrind' : not found
Checking for program 'ccache' : C:\Path\ccache.exe
Checking for program 'signtool' : C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe
Checking for program 'CL' : C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\CL.exe
Checking for program 'signtool' : C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe
Checking for program 'javac' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\javac.exe
Checking for program 'java' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\java.exe
Checking for program 'jar' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\jar.exe
Checking for program 'javadoc' : C:\Program Files\Microsoft\jdk-17.0.12.7-hotspot\bin\javadoc.exe
src\test\jni/Testapi.empty.cpp => Testapi
Traceback (most recent call last):
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Scripting.py", line 119, in waf_entry_point
run_commands()
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Scripting.py", line 182, in run_commands
ctx=run_command(cmd_name)
^^^^^^^^^^^^^^^^^^^^^
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Scripting.py", line 173, in run_command
ctx.execute()
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Configure.py", line 85, in execute
super(ConfigurationContext,self).execute()
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 92, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "E:\defold\engine\jni\wscript", line 24, in configure
conf.recurse('src')
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "E:\defold\engine\jni\src\wscript", line 11, in configure
conf.recurse('test')
File "E:\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "E:\defold\engine\jni\src\test\wscript", line 31, in configure
gen_java.generate(header_path = make_path('./testapi.h'),
File "E:\defold\engine\jni\scripts\gen_java.py", line 1207, in generate
ir = gen_ir.gen(source_path, includes, module_name, namespace, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\defold\engine\jni\scripts\external\gen_ir.py", line 223, in gen
ast = clang_cpp(source_path, includes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\defold\engine\jni\scripts\external\gen_ir.py", line 220, in clang_cpp
return subprocess.check_output(cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\capit\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\capit\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\capit\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\capit\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
[exec] python E:\defold\tmp\dynamo_home/ext/bin/waf --prefix=E:\defold\tmp\dynamo_home --skip-tests distclean configure build install --platform=x86_64-win32
Error:
Traceback (most recent call last):
File "E:\defold\scripts\build.py", line 2548, in <module>
f()
File "E:\defold\scripts\build.py", line 1249, in build_engine
self._build_engine_lib(args, lib, host)
File "E:\defold\scripts\build.py", line 1197, in _build_engine_lib
run.env_command(self._form_env(), args + plf_args + self.waf_options + skip_build_tests, cwd = cwd)
File "E:\defold\build_tools\run.py", line 98, in env_command
return _exec_command(args, shell = False, stdout = None, env = env, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\defold\build_tools\run.py", line 75, in _exec_command
raise e
run.ExecException: 2