用CMAKE编译时,出现如下警告:
CMake Warning (dev) at D:/OSG/cmake-2.8.4-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake:29 (find_package):File D:/OSG/cmake-2.8.4-win32-x86/share/cmake-2.8/Modules/FindPNG.cmake includes F:/OSG/OpenSceneGraph-2.8.4/CMakeModules/FindZLIB.cmake (found via CMAKE_MODULE_PATH) which shadows D:/OSG/cmake-2.8.4-win32-x86/share/cmake-2.8/Modules/FindZLIB.cmake. This may cause errors later on .
Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:432 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it.
试过2.9.10版本,2.9.12版本,2.8.4等多个版本,均出现这样的问题。 用VS2010编译后,会出现错误:某某dll文件打不开,或者不能写入这类的,重新编译,别的dll文件又会相同的错误,请问怎么解决? |