【问题标题】:UE4 4.26 on mac: undefined symbols Z_Construct_UClass_UPhysicalMaterialMac 上的 UE4 4.26:未定义符号 Z_Construct_UClass_UPhysicalMaterial
【发布时间】:2020-12-04 20:52:29
【问题描述】:

试图让我的项目在 macos big sur 上启动并运行,但我遇到了链接错误(完整粘贴在这里:https://pastebin.com/raw/qt7qkjYu):

[10/13] Link UE4Editor-LastRenegade.dylib
Undefined symbols for architecture x86_64:
  "Z_Construct_UClass_UPhysicalMaterial()", referenced from:
      Z_Construct_UClass_ULRNBasePhysicalMaterial_Statics::DependentSingletons in LRNBasePhysicalMaterial.gen.cpp.o
  "UPhysicalMaterial::GetPrivateStaticClass()", referenced from:

[...]

ld: symbol(s) not found for architecture x86_64

我正在覆盖物理材质以从光线投射中获取有用的信息:

UCLASS()
class LASTRENEGADE_API ULRNBasePhysicalMaterial : public UPhysicalMaterial
{
    GENERATED_BODY()

public:
    ULRNBasePhysicalMaterial(); (defined in a cpp file)

public:
    UPROPERTY(EditAnywhere, BlueprintReadOnly)
    class USoundBase* ImpactSFX;
    UPROPERTY(EditAnywhere, BlueprintReadOnly)
    class UParticleSystem* ImpactVFX;
    UPROPERTY(EditAnywhere, BlueprintReadOnly)
    class UMaterialInterface* ImpactDecal;
};

【问题讨论】:

    标签: c++ linker unreal-engine4


    【解决方案1】:

    好的,在 4.26 中:您需要将 PhysicsCore 添加到您的 MyGame.Build.cs

    【讨论】:

      猜你喜欢
      • 2015-09-14
      • 1970-01-01
      • 1970-01-01
      • 2020-01-04
      • 2015-06-17
      • 2018-08-20
      • 1970-01-01
      • 1970-01-01
      • 2021-12-21
      相关资源
      最近更新 更多