1.下载 ue4.27源码, 编译并启动
注:主要按照这个教程来: GitHub上的虚幻引擎 - Unreal Engine (github账号关联epic,邮箱激活,得到授权)
我的建议是,直接科学上网,下载zip, 然后在控制台 make
ps: Windows版的 UE4.27
- 1 UE4.27 下载后不能直接F5运行,需要生成解决方案,需要4小时(AMD Ryzen 7 3700X 8-Core Processor)
63> [4562/4562] UE4Editor.target 63>Total time in Parallel executor: 9795.21 seconds 63>Total execution time: 11081.69 seconds 65>Target is up to date 65>Total execution time: 10897.62 seconds |
- 2 编译报错,但可以从ue4.27 edit.exe运行
2.安装QT creator, 进行UE c++开发
2.1 安装Qt 5.7.0(因为这个版本有教程 Install Qt 5 on Ubuntu - Qt Wiki)
例子: wget https://download.qt.io/new_archive/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run
由于政策变化,这在 5.14.2 之前有效,分发开源 Qt linux 软件包从 5.15.0 停止。您需要从 5.15.0 开始构建自己的包。
调整权限,运行安装程序并按照说明完成安装。
chmod +x qt-opensource-linux-x64-5.7.0.run ./qt-opensource-linux-x64-5.7.0.run
2.2 到这里在图形界面的辅助下, 都能安装成功. 接下来是配置UE工程编译环境
按照官方教程操作即可:https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Linux/BeginnerLinuxDeveloper/SettingUpQtCreator/https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Linux/BeginnerLinuxDeveloper/SettingUpQtCreator/ 主要步骤一: UE4Editor-Linux-Debug UE4Editor-Linux-Debug ARGS="-clean"
如果是纯make, 可以使用 -j 4或者 -j16 多核CPU编译
这时候就可以正常的 构建\运行UE4.27了
3.解决Engine modules are out of date , and cannot be compiled while the engine running
这个问题CSDN上有答案,那个回答并没有解决,我在Ubuntu上遇到的问题
DefaultBuildSettings = BuildSettingsVersion.V2;
然后我搜到了其他答案
First, in your source folder in your project, check that {nameofproject}.Target.cs and {nameofproject}Editor.Target.cs has “DefaultBuildSettings = BuildSettingsVersion.V2;” in the section base(Target) { … } If it does not work, check the file Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp in your Unreal Engine source code, look for the line Arguments += " -Progress -NoEngineChanges -NoHotReloadFromIDE";
et remove the two last options : Arguments += " -Progress";
- Re-compile Unreal Engine - Launch your project and accept the rebuild.
4. 使用openCV插件
报错: ERROR: Module 'OpenCVLenscalibration' should not reference module "OpenCV (Project) .
报错了别灰心, 进入UE引擎,勾上openCV插件,重启即可打开
5. 像素流
Edit > Plugins.在插件库里勾选 Pixel Streaming
然后重启,打包 Files > Package Project > Windows (64-bit).
还有一些设置... 等出Bug了在记录