编译osgEarth2.8+VS2013+CMake3.4.0在Release版本的问题

时间:2024-04-18 22:36:37

1>LINK : fatal error LNK1181: 无法打开输入文件“optimized.lib”

可以到http://forum.osgearth.org搜索相关帖子,gwaldron说这很可能是CMake3.0以上版本的问题:

编译osgEarth2.8+VS2013+CMake3.4.0在Release版本的问题 gwaldron
Reply | Threaded | More 编译osgEarth2.8+VS2013+CMake3.4.0在Release版本的问题   编译osgEarth2.8+VS2013+CMake3.4.0在Release版本的问题
Jun 24, 2016; 9:45pm

Re: Build error

 
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

相关文章