• RuntimesUnity
  • build errors when builing nine chronicle project to mobile

hi, i'm a unity developer in korea.
i would like you to tell me if i make a mistake cause i'm not good at english.

i've been trying to build nine chronicle project named "necoyume".
but i kept failing with 4 errors (error message is "Error building Player: 4 errors
" ) and they are like below.

  • Shader error in 'Universal Render Pipeline/2D/Spine/Sprite': Couldn't open include file 'Packages/com.esotericsoftware.spine.urp-shaders/Shaders/Include/SpineCoreShaders/Spine-Common.cginc'. at Assets/Resources/URP/Shader/Spine/Include/SpineCoreShaders/ShaderShared.cginc(10)
    Compiling Subshader: 0, Pass: <Unnamed Pass 0>, Vertex program with <no keywords>
    Platform defines: SHADER_API_MOBILE UNITY_COLORSPACE_GAMMA UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_DLDR_ENCODING UNITY_NO_CUBEMAP_ARRAY UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2
    Disabled keywords: INSTANCING_ON PIXELSNAP_ON SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_FULL_STANDARD_SHADER UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_VIRTUAL_TEXTURING USE_SHAPE_LIGHT_TYPE_0 USE_SHAPE_LIGHT_TYPE_1 USE_SHAPE_LIGHT_TYPE_2 USE_SHAPE_LIGHT_TYPE_3 _ADDITIVEBLEND _ADDITIVEBLEND_SOFT _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON _ALPHAPREMULTIPLY_VERTEX_ONLY _ALPHA_CLIP _COLOR_ADJUST _EMISSION _FIXED_NORMALS_MODELSPACE _FIXED_NORMALS_MODELSPACE_BACKFACE _FIXED_NORMALS_VIEWSPACE _FIXED_NORMALS_VIEWSPACE_BACKFACE _LIGHT_AFFECTS_ADDITIVE _MULTIPLYBLEND _MULTIPLYBLEND_X2 _NORMALMAP _RIM_LIGHTING _STRAIGHT_ALPHA_INPUT _TEXTURE_BLEND
  • Shader error in 'Universal Render Pipeline/Spine/Sprite': Couldn't open include file 'Include/Spine-Sprite-Common-URP.hlsl'. at Assets/Resources/URP/Shader/Spine/Include/Spine-Sprite-DepthOnlyPass-URP.hlsl(3)

  • Shader error in 'Universal Render Pipeline/Spine/Sprite': Couldn't open include file 'Include/Spine-Sprite-Common-URP.hlsl'. at Assets/Resources/URP/Shader/Spine/Include/Spine-Sprite-ForwardPass-URP.hlsl(3)

  • Shader error in 'Universal Render Pipeline/Spine/Sprite': Couldn't open include file 'Packages/com.esotericsoftware.spine.urp-shaders/Shaders/Include/SpineCoreShaders/Spine-Common.cginc'. at Assets/Resources/URP/Shader/Spine/Include/SpineCoreShaders/ShaderShared.cginc(10)
    Compiling Subshader: 0, Pass: ShadowCaster, Vertex program with <no keywords>
    Platform defines: SHADER_API_GLES30 SHADER_API_MOBILE UNITY_COLORSPACE_GAMMA UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_LIGHTMAP_DLDR_ENCODING UNITY_NO_CUBEMAP_ARRAY UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_PASS_SHADOWCASTER UNITY_PBS_USE_BRDF3
    Disabled keywords: INSTANCING_ON UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF2 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_VIRTUAL_TEXTURING _ALPHATEST_ON _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A

i searched questions about this in the forum.
but i couldn't resolve them.

i tried

i use mac m1 pro, unity 2021.3.5 <metal>.

thanks!

Related Discussions
...

oh, i omitted something. my build target platform is android. not windows 🙂

@jaewonhong Sorry to hear you've encountered problems.

Judging from the error messages, the installation location of your com.esotericsoftware.spine.urp-shaders package is completely off, it seems to be located in Assets/Resources/URP/Shader/Spine:

Couldn't open include file 'Packages/com.esotericsoftware.spine.urp-shaders/Shaders/Include/SpineCoreShaders/Spine-Common.cginc'.
at Assets/Resources/URP/Shader/Spine/Include/SpineCoreShaders/ShaderShared.cginc(10)

This does not follow the original required package structure at all, being Packages/com.esotericsoftware.spine.urp-shaders/Shaders/Include. Did you move the package files around after installation? If so, please note that this is not supported, as include files are required to be referenced via Packages/com.esotericsoftware.spine.urp-shaders. If you place the Spine URP shaders package directly in <project root>/Packages/ or import it via Add package from git URL.. from outside your Assets directory, everything should be located correctly out of the box and can be referenced via Packages/com.esotericsoftware.spine.urp-shaders.

If you really need to move the files to a completely different structure, you would need to adjust the #include "path/to/include" statements in any Spine URP shader files accordingly.

    Harald
    thanks for your response.

    i didn't moved any directory or file in this project.
    all i did are just cloning the project from github and building it for android platform.

    as i think, the package structure was changed by the owner of this project.
    i'd better ask about it to owner.

    thanks 🙂

    • Harald đã thích điều này.