Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件移植报错 #12

Open
meluoluo opened this issue Jul 27, 2022 · 2 comments
Open

插件移植报错 #12

meluoluo opened this issue Jul 27, 2022 · 2 comments

Comments

@meluoluo
Copy link

我把插件部分直接移植到项目,也在项目属性页面添加了
“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
Copy link

upbit commented Sep 29, 2022

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
Copy link

vivelejrlee commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants