[SOLVED] Error compiling for mobile for Armory

I am trying out Armory3D for the first time and was testing out the available templates like archery, race track etc.

When i tried to compile it for mobile , I get the following information.
1 error occurred during compilation
Please open console to get more information
The console message just says the following;
C:\ArmorySDK2306\armsdk/nodejs/node.exe C:\ArmorySDK2306\armsdk/Kha/make android-hl -g opengl --shaderversion 300 --parallelAssetConversion 4 --to build_race_track --quiet
Error.
Finished in 24.073s
ERROR: Build failed, check console

How can i troubleshoot this? The preferences are updated with the path to Android SDK, Armory SDK too.

Hi and welcome,

Before we jump to the templates, could you please try if a blender default cube scene compiles for Krom as well as for Android.

You can check the Blender system console to know more about the errors:

I create a default cube scene and compiled for krom and rendered with desktop and mobile.
However, build for Android with armory exporter failed with error: build failed, check console.

And what does the Blender System Console say? Could you please post the full content of the console.

message under render properties
1 error occurred during compilation!
Please open the console to get more information

The system console message is the one below;

C:\ArmorySDK2306\armsdk/nodejs/node.exe C:\ArmorySDK2306\armsdk/Kha/make android-hl -g opengl --shaderversion 300 --parallelAssetConversion 4 --to build_cube1 --quiet
Error.
Finished in 41.448s
ERROR: Build failed, check console

I am not aware of any other console other than the one from blender system console when it says “check console”.

Thanks,

I just tried with a default cube example, but could not reproduce this issue. Could you please share your test file. Maybe some parameters are set different…

Would be good to know if anyone else could reproduce this issue.

cube1.blend

Hmm, still could not reproduce the issue.

Could you please post the console output with the Verbose Output option enabled for the same file.
image

C:\ArmorySDK2306\armsdk/nodejs/node.exe C:\ArmorySDK2306\armsdk/Kha/make android-hl -g opengl --shaderversion 300 --parallelAssetConversion 4 --to build_cube1
Using Kha (dd27a835) from C:\ArmorySDK2306\armsdk\Kha
Creating Kha project.
Exporting asset 1 of 5 (Scene.arm).
Exporting asset 2 of 5 (env_World.jpg).
Exporting asset 3 of 5 (env_World_irradiance.arm).
Exporting asset 4 of 5 (env_World_radiance.jpg).
Exporting asset 5 of 5 (mesh_Cube.arm).
Exporting asset 1 of 3 (Material_data.arm).
Exporting asset 2 of 3 (shader_datas.arm).
Exporting asset 3 of 3 (World_World_data.arm).
Exporting asset 1 of 1 (font_default.ttf).
Compiling shader 1 of 6 (Material_mesh.frag.glsl).
Compiling shader 2 of 6 (Material_mesh.vert.glsl).
Compiling shader 3 of 6 (Material_shadowmap.frag.glsl).
Compiling shader 4 of 6 (Material_shadowmap.vert.glsl).
Compiling shader 5 of 6 (World_World.frag.glsl).
Compiling shader 6 of 6 (World_World.vert.glsl).
Compiling shader 1 of 8 (painter-colored.frag.glsl).
Compiling shader 2 of 8 (painter-colored.vert.glsl).
Compiling shader 3 of 8 (painter-image.frag.glsl).
Compiling shader 4 of 8 (painter-image.vert.glsl).
Compiling shader 5 of 8 (painter-text.frag.glsl).
Compiling shader 6 of 8 (painter-text.vert.glsl).
Compiling shader 7 of 8 (painter-video.frag.glsl).
Compiling shader 8 of 8 (painter-video.vert.glsl).
Using Kinc (cc564857) from C:\ArmorySDK2306\armsdk\Kha\Kinc
kfile found.
Creating Android project files.
Error: Error: ENOENT: no such file or directory, scandir 'C:\Users\Damon\AppData\Local\Android\Sdk\toolchains\llvm\prebuilt'
Error.
Finished in 21.411s
ERROR: Build failed, check console

Seems to be related to my android SDK.

i downloaded the NDK separately and extracted the toolchain folder now.
It is now successful.

Thanks for the debug suggestion… I will close it now

1 Like