Skip to content

Ubuntu 22.04 下编译失败 #487

@lotest

Description

@lotest

Describe the bug | Bug描述
A clear and concise description of what the bug is.

engine/source/_generated/reflection/level.reflection.gen.h:38:147: error: no match for ‘operator=’ (operand types are ‘std::vectorPiccolo::ObjectInstanceRes’ and ‘int’)
38 | ts(void* instance, void* field_value){ static_cast<LevelRes*>(instance)->m_objects = static_cast<int>(field_value**)**;}

engine/source/_generated/reflection/mesh_data.reflection.gen.h:344:153: error: no match for ‘operator=’ (operand types are ‘std::vector’ and ‘int’)
344 | void* instance, void* field_value){ static_cast<MeshData*>(instance)->index_buffer = static_cast<int>(field_value);}
| ^

animation.reflection.gen.h:63:144: error: no match for ‘operator=’ (operand types are ‘std::vectorPiccolo::AnimationResultElement’ and ‘int’)
63 | (void* instance, void* field_value){ static_cast<AnimationResult*>(instance)->node = static_cast<int>(field_value);}
| ^

engine/source/_generated/reflection/rigid_body.reflection.gen.h:86:158: error: no match for ‘operator=’ (operand types are ‘std::vectorPiccolo::RigidBodyShape’ and ‘int’)
86 | tance, void* field_value){ static_cast<RigidBodyComponentRes*>(instance)->m_shapes = static_cast<int>(field_value);}
| ^

engine/source/_generated/reflection/object.reflection.gen.h:87:164: error: no match for ‘operator=’ (operand types are ‘std::vector<Piccolo::Reflection::ReflectionPtrPiccolo::Component >’ and ‘int’)
87 | nce, void* field_value){ static_cast<ObjectDefinitionRes*>(instance)->m_components = static_cast<int>(field_value);}
| ^

Piccolo-0.0.9/engine/source/runtime/core/meta/serializer/serializer.h:67:31: error: static assertion failed: PSerializer::write has not been implemented yet!
67 | static_assert(always_false, "PSerializer::write has not been implemented yet!");
| ^~~~~~~~~~~~~~~

Desktop | 桌面环境

  • OS: [Ubuntu]
  • Version [22.04]
  • CPU [3700x, ]
  • GPU [NVidia RTX 1050ti]
  • Memory [32GB]
  • Compiler [Clang14, G++]
    -- The C compiler identification is GNU 11.4.0
    -- The CXX compiler identification is GNU 11.4.0

Additional context | 补充信息
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions