arm64编译ue4源码问题求教

作者在尝试编译UE4源码时遇到与Mono版本不兼容的问题,并在设置Mono路径后执行`./setup.sh`脚本时遭遇`TypeInitializationException`,特别是由于`DllNotFoundException`。寻求帮助解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我在编译ue4源码时,发现ue4源码包里带的mono不适用于arm,于是我自己安装了mono,并将启用mono路径换成了我下载那个mono路径,结果再执行 ./setup.sh 脚本时出现了这个问题:

Fixing inconsistent case in filenames.
Setting up Mono

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'GitDependencies.Program' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
   --- End of inner exception stack trace ---
  at Interop.GetRandomBytes (System.Byte* buffer, System.Int32 length) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Guid.NewGuid () [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at GitDependencies.Program..cctor () [0x00000] in <0916da07a3c04a6aa2e0f66d38c790da>:0
   --- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'GitDependencies.Program' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
   --- End of inner exception stack trace ---
  at Interop.GetRandomBytes (System.Byte* buffer, System.Int32 length) [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at System.Guid.NewGuid () [0x00000] in <d636f104d58046fd9b195699bcb1a744>:0
  at GitDependencies.Program..cctor () [0x00000] in <0916da07a3c04a6aa2e0f66d38c790da>:0
   --- End of inner exception stack trace ---
Result: 1
有大神能够帮忙解决一下吗?感谢。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值