---
title: "[UE4]服务端构建后启动错误：GlobalShaderCache-PCD3D_SM5.bin  is missing"
author: "aigo"
date: "2016-04-15T19:28:33Z"
tags: []
categories: ["开源软件"]
slug: "ue4-globalshadercache-pcd3d-sm5-bin-is-missing"
draft: false
lastmod: "2016-04-16T11:36:17Z"
id: 2291625
url: "https://aigo.iteye.com/blog/2291625"
---

原文作者：@玄冬Wong

构建独立服务端后启动报错：

\[2016.04.15-11.22.50:980]\[  0]LogMaterial:Error: The global shader cache file 'F:/EpicGames/UnrealEngine-4.11.0-release/Engine/GlobalShaderCache-PCD3D\_SM5.bin' is missing.

 

Your application is built to load COOKED content. No COOKED content was found; This usually means you did not cook content for this build.

It also may indicate missing cooked data for a shader platform(e.g., OpenGL under Windows): Make sure your platform's packaging settings include this Targeted RHI.

 

Alternatively build and run the UNCOOKED version instead.

![](http://dl2.iteye.com/upload/attachment/0116/6740/32045e99-d281-34c2-8a96-16e1bc1da09c.jpg)  
 

原因：没有先构建client模式，也就是没有执行官方wiki步骤上的第5步

[https://wiki.unrealengine.com/Dedicated\_Server\_Guide\_(Windows\_%26\_Linux)#5.\_Create\_.3CMyGame.3EServer.Target.cs](https://wiki.unrealengine.com/Dedicated_Server_Guide_%28Windows_%26_Linux%29#5._Create_.3CMyGame.3EServer.Target.cs)

构建完client之后，再添加文档上面提到的&lt;Game&gt;Server.Target.cs配置文件，然后重新生成VS工程文件（Generate Visual Studio project file），然后再选择需要的Server模式（development或者shipping等）构建server，然后再启动。