4

OpenWrt 用の libxerces パッケージを作成しようとしています。このサイトhttp://wiki.openwrt.org/doc/devel/packagesの指示に従って、packages ディレクトリ内に libxerces-c というフォルダーと、パッケージを make menuconfig にリストする単純な Makefile を作成しましたが、そうではありませんハプニング。

Makefile は次のように定義されています。

#
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

# Name and release number of this package
PKG_NAME:=xerces-c
PKG_VERSION:=3.1.1
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://apache.mirror.pop-sc.rnp.br/apache//xerces/c/3/sources/
PKG_CAT:=zcat

include $(INCLUDE_DIR)/package.mk

# Specify package information for this program. 
# The variables defined here should be self explanatory.
define Package/libxerces
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Validating XML parser written in a portable subset of C++.
  URL:=http://xerces.apache.org/
endef

define Package/libxerces/description
  Xerces-C++ is a validating XML parser written in a portable subset of
  C++.  Xerces-C++ makes it easy to give your application the ability
  to read and write XML data. A shared library is provided for parsing,
  generating, manipulating, and validating XML documents. Xerces-C++ is
  faithful to the XML 1.0 recommendation and associated standards (DOM
  1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
  Part 2).  It also provides experimental implementations of XML 1.1
  and DOM Level 3.0.  The parser provides high performance, modularity,
  and scalability.
endef     

CONFIGURE_ARGS+= --host=mips-openwrt-linux

define Build/Configure
  $(call Build/Configure/Default)    
endef

define Build/Compile
  $(call Build/Compile/Default)
endef

define Package/libxerces/install
endef

$(eval $(call BuildPackage,libxerces))

私はすでにインストールスクリプトを実行しようとしました

./scripts/feeds install libxerces-c

しかし、何も起こりませんでした。make menuconfig を実行した後もパッケージが表示されません。

4

3 に答える 3

0

おそらくあなたはまだそれを探していませんが、ここに答えがあります。パッケージを menuconfig TUI に表示するには、define Package 句内の Makefile に次のオプションを追加する必要があります。

MENU:1

したがって、Makefile のこの部分は次のようになります。

define Package/libxerces
SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Validating XML parser written in a portable subset of C++.
  URL:=http://xerces.apache.org/
endef
于 2014-11-19T18:48:11.583 に答える
0

必要がある

  1. パッケージを含むフィードをあなたに追加するfeeds.conf.defaultか、feeds.conf

  2. 次に./scripts/feeds update -a(すべてのフィードを更新します... を使用する代わりに、フィードの名前を設定することもできます-a)

  3. それから./scripts/feeds install foobar

[...]

libxerces-c...パッケージが呼び出されている間に、明らかに install onを呼び出しましたlibxercesか?

于 2013-03-05T20:32:37.670 に答える