V851S Tina 错误的 libAWIspApi 生成文件
-
当尝试编译 libAWIspApi 时,您可能会收到编译错误,make 抱怨“all”目标没有构建候选者,这是因为 libAWIspApi makefile 不正确(或者我认为是这样),而不是这样:
/tina-v853-open/openwrt/openwrt/package/subpackage/allwinner/vision/libAWIspApi/Makefileinclude $(TOPDIR)/rules.mk -include machinfo/$(LICHEE_IC)/build.mk PKG_NAME:=libAWIspApi PKG_VERSION:=1 PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/$(PKG_NAME) SUBMENU:=Vision SECTION:=allwinner CATEGORY:=Allwinner TITLE:=camera VIN ISP api for Allwinner endef define Package/$(PKG_NAME)/description camera VIN ISP api for allwinner endef define Build/Prepare $(INSTALL_DIR) $(PKG_BUILD_DIR)/src $(CP) ./src/$(ISP_DIR)/* $(PKG_BUILD_DIR)/src endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src\ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ C_LIB_TYPE="$(CONFIG_LIBC)$(if $(CONFIG_EXT_TOOLCHAIN_GCC_8_3_0),-gcc8_3_0)" \ CPU_VARIANT="$(TARGET_CPU_VARIANT)$(if $(CONFIG_COMPLILE_KERNEL64_USER32),-user-32bit)" \ all endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ endef define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ endef $(eval $(call BuildPackage,$(PKG_NAME)))
它应该是这样的:
include $(TOPDIR)/rules.mk -include machinfo/$(LICHEE_IC)/build.mk PKG_NAME:=libAWIspApi PKG_VERSION:=1 PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/$(PKG_NAME) SUBMENU:=Vision SECTION:=allwinner CATEGORY:=Allwinner TITLE:=camera VIN ISP api for Allwinner endef define Package/$(PKG_NAME)/description camera VIN ISP api for allwinner endef define Build/Prepare $(INSTALL_DIR) $(PKG_BUILD_DIR)/src/isp600 $(CP) ./src/isp600/$(ISP_DIR)/* $(PKG_BUILD_DIR)/src/isp600 endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src/isp600\ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ C_LIB_TYPE="$(CONFIG_LIBC)$(if $(CONFIG_EXT_TOOLCHAIN_GCC_8_3_0),-gcc8_3_0)" \ CPU_VARIANT="$(TARGET_CPU_VARIANT)$(if $(CONFIG_COMPLILE_KERNEL64_USER32),-user-32bit)" \ all endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ endef define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ endef $(eval $(call BuildPackage,$(PKG_NAME)))
这对我有用。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号