whoissunshijia / ue4-ffmpeg

Record game screen and push RTMP in UE4.22
124 stars 48 forks source link

插件移植报错 #12

Open meluoluo opened 2 years ago

meluoluo commented 2 years ago

我把插件部分直接移植到项目,也在项目属性页面添加了 “D:\UE4ProjectTest\MyProject\MyProject.uproject” -skipcompile -audiomixer 但是编译移植报下面的错误,直接用作者原本的项目是能编译也能运行的,请问是还缺什么步骤,或者哪里没对么,用的是UE5的版本

1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Json\Public\Serialization\JsonWriter.h(19): error C2894: 模板不能声明为有“C”链接 1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Json\Public\Serialization\JsonWriter.h(58): error C4190: “EscapeJsonString”有指定的 C 链接,但返回了与 C 不兼容的 UDT“FString” 1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Windows\WindowsPlatformNamedPipe.h(12): note: 参见“FString”的声明 1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Json\Public\Serialization\JsonWriter.h(69): error C2894: 模板不能声明为有“C”链接 1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Json\Public\Serialization\JsonWriter.h(411): error C2894: 模板不能声明为有“C”链接 1>D:\soft\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Json\Public\Serialization\JsonWriter.h(460): error C2894: 模板不能声明为有“C”链接

upbit commented 2 years ago

UE5的可以试试这个fork:https://github.com/upbit/ue5-ffmpeg

留意RHI设置DX11就行,不然会crash: image https://dev.epicgames.com/community/learning/tutorials/aqV9/render-hardware-interface-rhi

vivelejrlee commented 2 years ago

太感谢了!我试试,之前没查看信息!

------------------ 原始邮件 ------------------ 发件人: "Zhou @.>; 发送时间: 2022年9月29日(星期四) 下午4:00 收件人: @.>; 抄送: @.***>; 主题: Re: [whoissunshijia/ue4-ffmpeg] 插件移植报错 (Issue #12)

UE5的可以试试这个fork:https://github.com/upbit/ue5-ffmpeg

留意RHI设置DX11就行,不然会crash:

https://dev.epicgames.com/community/learning/tutorials/aqV9/render-hardware-interface-rhi

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>