VS2017编译UE4源码

  1. 下载UE4源代码。

    需要关联自己的github账号到虚幻引擎的账户,

    参考:

    (中文)http://api.unrealengine.com/CHN/GettingStarted/DownloadingUnrealEngine/index.html

    (英文)https://docs.unrealengine.com/en-US/GettingStarted/DownloadingUnrealEngine/index.html

  2. 源代码构建虚幻引擎。

    参考:

    (中文)http://api.unrealengine.com/CHN/Programming/Development/BuildingUnrealEngine/index.html

    (英文)https://docs.unrealengine.com/en-US/Programming/Development/BuildingUnrealEngine/index.html

    其中需要注意的是当执行到:右键单击UE4目标并选择构建(Build)时,可能会遇到

    error C4768: __declspec attributes before linkage specification are ignored
    

    控制台显示的错误,这里我的解决是:

    除了按照

    Install Visual Studio 2017. All desktop editions of Visual Studio 2017 can build UE4, including Visual Studio Community 2017, which is free for small teams and individual developers. To install the correct components for UE4 development, check the “Game Development with C++” workload, and the “Unreal Engine Installer” and “Nuget Package Manager” optional components.”

    执行外,还需要勾选:

    VS2017编译UE4源码_第1张图片

你可能感兴趣的:(虚幻引擎)