OpenWrt Forum Archive

Topic: Ignoring feed 'packages' - index missing

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I had succeed on compiling my - OpenWRT SDK 25875 - target RT3883 - with lots of package per-exciting.

Now I'm trying to cross-compile a c program.

my project files are placed like this:
/home/ubuntu/Desktop/openwrt-na9xx-r25875-20121204/package/fr-recognizer/makefile
/home/ubuntu/Desktop/openwrt-na9xx-r25875-20121204/package/fr-recognizer/src/makefile
/home/ubuntu/Desktop/openwrt-na9xx-r25875-20121204/package/fr-recognizer/src/fr-recognizer.c

I tested the program it run on my pc. so it's ready for crosscompiling.

but when I com to cross compiling my package wouldn't appear in the menuconfig tool.
here is the OpenWRT makefile :
#--------------------------------------------------------------------------------begin makefile
include $(TOPDIR)/rules.mk

PKG_NAME:=fr-recognizer
PKG_RELEASE:=1

PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/fr-recognizer
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=fr-recognizer -- excute spoken utterances
    DESCRIPTION:=\
    Users may spok commands,\\\
    program identify the spokken words,\\\
    program search the corespendent command and excute it.
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef

define Package/fr-recognizer/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/fr-recognizer $(1)/bin/
endef

$(eval $(call BuildPackage,fr-recognizer))

#--------------------------------------------------------------------------------end makefile

I searched on the net and I run this commands :
$./scripts/feeds update –a
$./scripts/feeds install –a

$./scripts/feeds install fr-recognizer
>>Collecting package info: done
>>Ignoring feed 'packages' - index missing

How can I fix that problem ?

(Last edited by louwi on 25 Mar 2014, 16:56)

Hi louwi

Try to move the content of your DESCRIPTION variable to a block like this:
define Package/fr-recognizer/description
...
endef

and as you put you code already into "openwrt/package/" you don't need the feeds!

(Last edited by tl71 on 25 Mar 2014, 20:48)

I made that change and still be the same problem. it don't apear in the menu config and
this is what I get when I excute the cross-compiling toolchaine:

$ make package/fr-recognizer/compile
+ mkdir -p /home/amir/Bureau/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32
+ cd /home/amir/Bureau/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32
+ mkdir -p stamp lib usr/include usr/lib
make[4]: Entering directory `/home/amir/Bureau/openwrt/target/linux'
make[5]: Entering directory `/home/amir/Bureau/openwrt/target/linux/ramips'
make[6]: Entering directory `/home/amir/Bureau/openwrt/target/linux/ramips/image'
make[6]: Leaving directory `/home/amir/Bureau/openwrt/target/linux/ramips/image'
make[5]: Leaving directory `/home/amir/Bureau/openwrt/target/linux/ramips'
make[4]: Leaving directory `/home/amir/Bureau/openwrt/target/linux'
make[1] package/fr-recognizer/compile
make -r package/fr-recognizer/compile: build failed. Please re-run make with V=99 to see what's going on
make: *** [package/fr-recognizer/compile] Error 1

#-------------------------------------------OpenWRT makefile
include $(TOPDIR)/rules.mk

PKG_NAME:=fr-recognizer
PKG_RELEASE:=1

PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

include $(INCLUDE_DIR)/package.mk

define Package/fr-recognizer
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=fr-recognizer -- excute spoken utterances
endef

define Package/fr-recognizer/description
    DESCRIPTION:=\
    Users may spok commands,\\\
    program identify the spokken words,\\\
    program search the corespendent command and excute it.
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef

define Package/fr-recognizer/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/fr-recognizer $(1)/bin/
endef

$(eval $(call BuildPackage,fr-recognizer))

The discussion might have continued from here.