LNK1181 Error: cannot open input file ... UE4-TargetPlatfrom.lib

在工程打包时出现:未打到 UE4-TargetPlatfrom.lib,查找相关模块的 .cs后发现有一处引用"TargetPlatfrom"相关的地方,删除后打包成功。

PublicDependencyModuleNames.AddRange(
            new string[]
            {
          // ... add other public dependencies that you statically link with here ...
                "Core",
                "RenderCore",
                "TargetPlatform",                
          }
);

原因可能是在打包时,UE4会遍历所有需要加载的模块并查找当前模块所添加的(PublicDependencyModuleNames)依赖项,依赖项可能就是相关的

*.lib或*.dll。在PublicDependencyModuleNames列表中存在但Binaries目录下没找到,就会提示错误。<以上目前只是猜测...>

猜你喜欢

转载自www.cnblogs.com/-sev-/p/10044104.html