当前位置: 首页 > news >正文

【UE5】第一次尝试项目转插件(Plugin)的时候,无法编译

在这里插入图片描述

VS显示100条左右的错误,UE热编译也不能通过。原因可能是[名字.Build.cs]文件的错误,缺少一些内容,比如说如果要写UserWidget类,那么就要在 ]名字.Build.cs]
中加入如下内容:


public class beibaoxitong : ModuleRules
{public beibaoxitong(ReadOnlyTargetRules Target) : base(Target){PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;PublicIncludePaths.AddRange(new string[] {System.IO.Path.Combine(ModuleDirectory, "Public")// ... add public include paths required here ...});PrivateIncludePaths.AddRange(new string[] {System.IO.Path.Combine(ModuleDirectory, "Private")// ... add other private include paths required here ...});PublicDependencyModuleNames.AddRange(new string[]{"Core","CoreUObject","Engine","SlateCore","UMG"			// ... add other public dependencies that you statically link with here ..., "InputCore", "EnhancedInput","ProceduralMeshComponent"
});PrivateDependencyModuleNames.AddRange(new string[]{"CoreUObject","Engine","Slate","SlateCore",// ... add private dependencies that you statically link with here ...	"UMGEditor", "UMGEditor","UMG", "InputDevice", "InputDevice", "InputDevice" 
});DynamicallyLoadedModuleNames.AddRange(new string[]{// ... add any modules that your module loads dynamically here ...});}
}

根据你的文件进行添加。如果说依然有如图的问题,那你就去原来的项目里看看哪些没加上去。

在这里插入图片描述
正在创建库 D:\Unreal\Weather\Plugins\beibaoxitong\Binaries\Win64\UnrealEditor-beibaoxitong.patch_1.lib 和对象 D:\Unreal\Weather\Plugins\beibaoxitong\Binaries\Win64\UnrealEditor-beibaoxitong.patch_1.exp
Module.beibaoxitong.cpp.obj : error LNK2019: 无法解析的外部符号 “__declspec(dllimport) public: static struct FKey const EKeys::RightMouseButton” (_imp?RightMouseButton@EKeys@@2UFKey@@B),函数 “public: virtual class FReply __cdecl UInventorySlot::NativeOnMouseButtonDown(struct FGeometry const &,struct FPointerEvent const &)” (?NativeOnMouseButtonDown@UInventorySlot@@UEAA?AVFReply@@AEBUFGeometry@@AEBUFPointerEvent@@@Z) 中引用了该符号
D:\Unreal\Weather\Plugins\beibaoxitong\Binaries\Win64\UnrealEditor-beibaoxitong.patch_1.exe : fatal error LNK1120: 1 个无法解析的外部命令
Failed to link patch (0.000s) (Exit code: 0x460)

http://www.lryc.cn/news/286027.html

相关文章:

  • MeterSphere本地化部署实践
  • 巨变!如何理解中国发起的“数据要素X”计划?
  • CS8370错误,这是由于使用了C# 7.3中不支持的功能
  • Raspbian安装云台
  • 蓝桥杯理历年真题 —— 数学
  • 自然语言处理--双向匹配算法
  • IDEA 2023.3.2 安装教程
  • C语言常见面试题:什么是宏,宏的作用是什么?
  • 【0248】Background Writing实现机制分析
  • 基于springboot+vue的教师工作量管理系统(前后端分离)
  • 4-新建子模块(尝鲜)
  • 反序列化字符串逃逸(上篇)
  • [C++]使用yolov5的onnx模型结合onnxruntime和bytetrack实现目标追踪
  • i2c接口验证
  • 1、Pandas 数据结构:从 Series 到 DataFrame
  • MySQL函数—字符串函数
  • PLC从HTTP服务端获取JSON文件,解析数据到寄存器
  • LeetCode 46. 全排列
  • NVMe TCG安全数据存储简介
  • Linux命令-ab命令(Apache服务器的性能测试工具 )
  • 蓝桥杯java基础
  • Unity3d引擎中使用AIGC生成的360全景图(天空盒)
  • React Router v6 改变页面Title
  • postman测试导入文件
  • ZigBee学习(一)
  • Unity—配置lua环境变量+VSCode 搭建 Lua 开发环境
  • 前端-云点播技术
  • k8s---ingress对外服务(traefik)
  • MySQL-SQL-DQL
  • Docker(十四)Etcd 项目