获取错误makefile:45:条件中的语法无效.停止
Getting error Makefile:45: invalid syntax in conditional. Stop
现在我正在学习C 。在尝试执行makefile时,我会遇到这样的错误
makefile:45:条件中的语法无效。停止。我的系统配置是:
- OS: - Ubuntu
- OpenWrt SDK
我正在尝试在 ubuntu OS 系统中构建SDK。在这里,我添加了我尝试过的makefile代码。
include $(TOPDIR)/rules.mk
PKG_NAME:=helloworld
PKG_VERSION:=0.0.1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/helloworld
SECTION:=base
CATEGORY:=Utilities
DEFAULT:=n
TITLE:=This is my first project
URL:=http://unwireddevices.com
# Other packages your program needs (our doesn't need anything, so let's comment it out)
# DEPENDS:=+libstdcpp
endef
define Package/helloworld/description
This! Is! My! First! Project!
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef
define Package/helloworld/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/usr/bin/
endef
$(eval $(call BuildPackage, helloworld))
在您的makefile中,第一行似乎被过度指出。遵循"制作文件指南",并正确使用标签和空间。
相关文章:
- 1d 智能指针不适用于语法 (*)++
- 助记符和指向成员语法的指针
- 有人能分解一下这个c++模板的语法吗
- C++避免重复声明的语法是什么
- Openssl 1.1.1d无效使用不完整的类型"struct dsa_st"
- 无法访问嵌套类.类的使用无效
- QMetaObject invokeMethod的基于函数指针的语法
- 这个语法std::class<>{}(arg1, arg2) 在C++中是什么意思?
- 如果用户输入无效,如何使用字符串变量-C++重复输入命令
- 为什么包含windows.h会产生语法错误,从而阻止类的实例化?(C2146,C2065)
- 如何解决错误:SCIP C++中的 SCIP 阶段无效 <10>
- 在没有参数列表的情况下使用模板名称"Event"无效,模板问题
- FFMPEG配置文件级别id大小无效
- 无效删除运算符语法
- 获取错误makefile:45:条件中的语法无效.停止
- 未知语法无效(类型::m_function)()
- 如何处理传递给构造函数的语法有效但逻辑无效的参数
- 为什么模板化类的模板化typef是无效语法
- int a[]{(functioncall(a1,a2),0)..};(无效(a));这个语法是什么意思
- Unordered_map - {{key,value},{key,value}}语法无效