1>LINK : fatal error LNK1181: 无法打开输入文件“optimized.lib”
可以到http://forum.osgearth.org搜索相关帖子,gwaldron说这很可能是CMake3.0以上版本的问题:
I solved this problem like this:
CMake (3+) comes with a built-in FindZLIB.cmake library for locating the ZLib dependency. But it is introducing this problem. So I copied the old FindZLIB.cmake from the OSG distribution into osgEarth/CMakeModules, and the problem disappeared. |
如果不管用的话,换CMake版本2.8
或者删除C:\Program Files (x86)\CMake\share\cmake-3.4\Modules\FindZLIB.cmake