I’m trying to build the engine. These are the steps I’ve made
./scripts/build.py shell
To paget the packages into a local_sdks
folder
./scripts/package/package_win32_sdk.sh
./scripts/build.py --package-path=./local_sdks install_sdk --platform=x86_64-win32
install external packages
./scripts/build.py install_ext --platform=x86_64-win32 --package-path=./local_sdks
then executing the build command with
./scripts/build.py build_engine --platform=x86_64-win32 --skip-tests -- --skip-build-tests
I get this error:
src\test\jni/Testapi.empty.cpp => Testapi
In file included from src\test\jni/Testapi.empty.cpp:1:
In file included from C:\Users\myuser\_root\src\defold\engine\jni\src\test\testapi.h:19:
C:\Users\myuser\_root\src\defold\tmp\dynamo_home\sdk\include\dmsdk/dlib/array.h:18:10: fatal error: 'assert.h' file not found
18 | #include <assert.h>
| ^~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Scripting.py", line 119, in waf_entry_point
run_commands()
File "C:\Users\myuser\_root\src\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 "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Scripting.py", line 173, in run_command
ctx.execute()
File "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Configure.py", line 85, in execute
super(ConfigurationContext,self).execute()
File "C:\Users\myuser\_root\src\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 "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "C:\Users\myuser\_root\src\defold\engine\jni\wscript", line 24, in configure
conf.recurse('src')
File "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "C:\Users\myuser\_root\src\defold\engine\jni\src\wscript", line 11, in configure
conf.recurse('test')
File "C:\Users\myuser\_root\src\defold\tmp\dynamo_home\ext\bin\waf3-2.0.23-7dbdd0b348178777c338c9a31f6218a5\waflib\Context.py", line 133, in recurse
user_function(self)
File "C:\Users\myuser\_root\src\defold\engine\jni\src\test\wscript", line 31, in configure
gen_java.generate(header_path = make_path('./testapi.h'),
File "C:\Users\myuser\_root\src\defold\engine\jni\scripts\gen_java.py", line 1207, in generate
ir = gen_ir.gen(source_path, includes, module_name, namespace, [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myuser\_root\src\defold\engine\jni\scripts\external\gen_ir.py", line 223, in gen
ast = clang_cpp(source_path, includes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myuser\_root\src\defold\engine\jni\scripts\external\gen_ir.py", line 220, in clang_cpp
return subprocess.check_output(cmd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['clang++', '-Xclang', '-ast-dump=json', '-c', '-IC:\\Users\\myuser\\_root\\src\\defold\\engine\\jni', '-IC:\\Users\\myuser\\_root\\src\\defold\\tmp\\dynamo_home\\sdk\\include', 'src\\test\\jni/Testapi.empty.cpp']' returned non-zero exit status 1.
[exec] python C:\Users\myuser\_root\src\defold\tmp\dynamo_home/ext/bin/waf --prefix=C:\Users\myuser\_root\src\defold\tmp\dynamo_home --skip-tests distclean configure build install --platform=x86_64-win32 --skip-build-tests
Error:
Traceback (most recent call last):
File "C:\Users\myuser\_root\src\defold\scripts\build.py", line 2390, in <module>
f()
File "C:\Users\myuser\_root\src\defold\scripts\build.py", line 1118, in build_engine
self._build_engine_lib(args, lib, host)
File "C:\Users\myuser\_root\src\defold\scripts\build.py", line 1074, in _build_engine_lib
run.env_command(self._form_env(), args + plf_args + self.waf_options + skip_build_tests, cwd = cwd)
File "C:\Users\myuser\_root\src\defold\build_tools\run.py", line 98, in env_command
return _exec_command(args, shell = False, stdout = None, env = env, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myuser\_root\src\defold\build_tools\run.py", line 75, in _exec_command
raise e
run.ExecException: 2
seems like the assert.h header is missing, should I download a different version of the win sdk? i’m using the one specified in scripts\package\package_win32_sdk.sh