我在yocto上编译bitbake文件时遇到了问题。我正面临如下所述的错误。
| aarch64-oe-linux-gcc:错误:AM_CFLAGS:没有这样的文件或目录 | aarch64-oe-linux-gcc:错误:+ =:没有这样的文件或目录
我的bitbake文件如下所示:
inherit autotools qcommon
FILESPATH =+ "${WORKSPACE}:"
SRC_URI = "file://video/bin/mm-video-internal/"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/video/bin/mm-video-internal/"
PR = "r0"
PACKAGES = "${PN}"
DEPENDS = "glib-2.0 libxml2"
export TARGET_LIBRARY_SUPPRESS_LIST="libxml2"
EXTRA_OEMAKE += "DISABLE_GPU_UTF_PQ=true"
CFLAGS += "-I${STAGING_INCDIR}/libxml2/"
CFLAGS += "-include string.h"
CFLAGS += "-Dstrlcpy=g_strlcpy"
CFLAGS += "-Dstrlcat=g_strlcat"
LDFLAGS += "-lglib-2.0"
LDFLAGS += "-llog"
LDFLAGS += "-lxml2"
EXTRA_OEMAKE = "DEFAULT_INCLUDES= CFLAGS="-I. -I${STAGING_KERNEL_BUILDDIR}/usr/include -I${STAGING_KERNEL_BUILDDIR}/include -I${STAGING_INCDIR}/libxml2 -I${WORKSPACE}/kernel/msm-4.4/include/ -I${STAGING_KERNEL_DIR}/include/""
请读者帮助我。
答案 0 :(得分:0)
我在Makefile.am中犯了一个错误,我纠正过了。重复AM_CFLAGS。
AM_CFLAGS AM_CFLAGS + = -g -O3