Ubuntu12.04 Cocos2d-x-3.4当我构建测试项目时,出现了一些错误:
It appears you are builing natively for Linux with GCC
-- OpenGL include dirs: /usr/include
**CMake Error at cmake/Modules/CocosBuildHelpers.cmake:44** (find_package):
**Could not find module FindGLEW.cmake or a configuration file for package
GLEW**.
Adjust CMAKE_MODULE_PATH to find FindGLEW.cmake or set GLEW_DIR to the
directory containing a CMake configuration file for GLEW. The file will
have one of the following names:
GLEWConfig.cmake
glew-config.cmake
Call Stack (most recent call first):
CMakeLists.txt:159 (cocos_find_package)我已经检查了路径cmake/Modules/。没有FindGLEW.cmake文件。但我不知道我可以从哪里得到它,或者我如何解决这个问题。
发布于 2015-03-30 15:06:35
但CMake 2.8.10或更高版本包含该测试,请参阅its documentation。测试在3.1中得到了改进。您可以更新您的CMake安装,它将工作。
发布于 2015-03-30 16:14:28
我修复了it.But,我还不清楚它的意思。我在路径"cmake/Modules“中创建了一个文件"FindGLEW.cmake”,作为该文件的内容,就像url所说的那样。http://www-i8.informatik.rwth-aachen.de/svnrepo/OpenFlipper/branches/Free/cmake/FindGLEW.cmake
发布于 2018-08-23 22:30:33
我遇到了一个类似的问题,即cmake找不到"FindGlew.cmake“,错误如下:By not providing "FindGlew.cmake" in CMAKE_MODULE_PATH this project...
很奇怪因为我确实有那个模块..。只有它被称为FindGLEW.cmake (驻留在Fedora/Linux的/usr/share/cmake/Modules/中)。
因此,我必须使用sudo ln -sf /usr/share/cmake/Modules/FindGLEW.cmake /usr/share/cmake/Modules/FindGlew.cmake建立到FindGlew.cmake的链接
为了安全起见,我运行了一个我准备好的小脚本,它生成了FindGlew中所有大小写字母的排列列表,并建立了所有这些排列的链接。只是在处理浪费时间的准程序员创建更大更好的make时的预防措施。是啊,对..。
附注:如果您的系统中不存在FindGLEW.cmake,则需要升级cmake和/或安装其他模块glew-devel。
https://stackoverflow.com/questions/29339844
复制相似问题