makefile - 错误255(目标失败的配方)

时间:2016-06-18 09:16:34

标签: makefile

我正在阅读OpenGL4的ogldev教程(http://ogldev.atspace.co.uk/),并从网站上下载了所有教程的源代码。在包中有一个文件夹" Common"在哪里可以找到许多ogldev函数和makefile的实现(可能用于构建库?)。似乎需要从Common文件夹中找到的源代码构建一个lib,因为教程需要" Common.lib"被纳入项目。所以我尝试使用Common文件夹中的makefile构建库。我打开cmd(我在Windows 7上),导航到正确的目录并运行命令" make",但它给了我"错误255":

nbproject/Makefile-impl.mk:90: recipe for target '.validate-impl' failed 
make: *** [.validate-impl] Error 255

我之前从未使用过make,我不知道问题是什么。我试过谷歌搜索它,但我找不到任何对我有用的东西。

这是Makefile-impl.mk的代码:

#
# Generated - do not edit!
#
# NOCDDL
#
CND_BASEDIR=`pwd`
CND_BUILDDIR=build
CND_DISTDIR=dist
# Debug configuration
CND_PLATFORM_Debug=GNU-Linux-x86
CND_ARTIFACT_DIR_Debug=dist/Debug/GNU-Linux-x86
CND_ARTIFACT_NAME_Debug=libcommon.a
CND_ARTIFACT_PATH_Debug=dist/Debug/GNU-Linux-x86/libcommon.a
CND_PACKAGE_DIR_Debug=dist/Debug/GNU-Linux-x86/package
CND_PACKAGE_NAME_Debug=Common.tar
CND_PACKAGE_PATH_Debug=dist/Debug/GNU-Linux-x86/package/Common.tar
# Release configuration
CND_PLATFORM_Release=GNU-Linux-x86
CND_ARTIFACT_DIR_Release=dist/Release/GNU-Linux-x86
CND_ARTIFACT_NAME_Release=libcommon.a
CND_ARTIFACT_PATH_Release=dist/Release/GNU-Linux-x86/libcommon.a
CND_PACKAGE_DIR_Release=dist/Release/GNU-Linux-x86/package
CND_PACKAGE_NAME_Release=Common.tar
CND_PACKAGE_PATH_Release=dist/Release/GNU-Linux-x86/package/Common.tar
#
# include compiler specific variables
#
# dmake command
ROOT:sh = test -f nbproject/private/Makefile-variables.mk || \
    (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk)
#
# gmake command
.PHONY: $(shell test -f nbproject/private/Makefile-variables.mk || (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk))
#
include nbproject/private/Makefile-variables.mk

0 个答案:

没有答案