【发布时间】: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