X Tutup
Skip to content

Compile Godot_4.6.1 stable export template with MSVC fails #117259

@gitsomebit

Description

@gitsomebit

Tested versions

4.6.1-stable

System information

Godot v4.6.1.stable - Windows 10 (build 19045) - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6636) - AMD Ryzen 7 5700G with Radeon Graphics (16 threads)

Issue description

tried to compile export templates for my game to reduce binary size

Steps to reproduce

  1. setup 4.6 branch
git clone https://github.com/godotengine/godot.git
cd godot
git checkout 4.6.1-stable
  1. build template (copy custom.py in parent dir)
scons platform=windows profile=../custom.py

custom.py

  1. wait
  2. find compile error: (excuse native language)
.\core/templates/self_list.h(123): error C2327: "SelfList<CellData>::_self": Ist kein Typname, nicht statisch und kein Enumerator
.\core/templates/self_list.h(123): note: Siehe Deklaration von "SelfList<CellData>::_self"
.\core/templates/self_list.h(123): note: der Vorlageninstanziierungskontext (der �lteste zuerst) ist
scene\2d\tile_map_layer.cpp(308): note: Siehe Verweis auf die gerade kompilierte Instanziierung "void SelfList<CellData>::List::sort_custom<CellDataYSortedXReversedComparator>(void)" der Funktions-Vorlage.
scene\2d\tile_map_layer.cpp(308): note: Ersten Verweis auf "SelfList<CellData>::List::sort_custom" in "TileMapLayer::_rendering_update" anzeigen
.\core/templates/self_list.h(123): error C2327: "SelfList<CellData>::_prev": Ist kein Typname, nicht statisch und kein Enumerator
.\core/templates/self_list.h(123): note: Siehe Deklaration von "SelfList<CellData>::_prev"
.\core/templates/self_list.h(123): error C2327: "SelfList<CellData>::_next": Ist kein Typname, nicht statisch und kein Enumerator
.\core/templates/self_list.h(123): note: Siehe Deklaration von "SelfList<CellData>::_next"
�[34mCompiling �[1mscene\2d\physics\static_body_2d.cpp�[22;23;24;29m ...�[0m
scons: *** [bin\obj\scene\2d\tile_map_layer.windows.template_release.x86_64.obj] Error 2
scons: building terminated because of errors.
�[90m�[1mINFO:�[22;23;24;29m Time elapsed: 00:02:52.91�[0m

full_compile_log.txt

Minimal reproduction project (MRP)

see steps to reproduce. I dont upload the godot source code here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup