2013-02-06 2 views
4

OpenWrt 용 libxerces 패키지를 만들려고합니다. 이 사이트 http://wiki.openwrt.org/doc/devel/packages의 지시에 따라 패키지 디렉토리에 libxerces-c라는 폴더를 만들고 간단한 Makefile을 만들어 make menuconfig에 나열된 패키지를 만들었지 만 아직 일어나지 않았습니다.makeconfig에서 만든 패키지를 만드는 방법은 무엇입니까?

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를 실행 한 후에도 패키지를 볼 수 없습니다.

답변

0

당신은 당신의 feeds.conf.default에 패키지로 공급을 추가하거나 feeds.conf

  • 다음 ./scripts/feeds update -a는 (모든 피드를 업데이트 만들

    1. 필요 ... 당신은 단지 피드의 이름을 설정할 수 있습니다 -a을 대신 사용)

    2. 다음 ./scripts/feeds install foobar

    [...] ... 당신은 분명히 당신의 패키지가 libxerces라고하면서 libxerces-c에 설치라는

    ?

  • +0

    $ buildroot/packages/dir에 Makefile과 함께 폴더를 추가하기 만하면됩니다. – 0xception

    0

    아마도 아직 검색하지 않고 있지만 여기에 답이 있습니다.

    define Package/libxerces 
    SECTION:=libs 
        CATEGORY:=Libraries 
        TITLE:=Validating XML parser written in a portable subset of C++. 
        URL:=http://xerces.apache.org/ 
    endef 
    
    0
    :

    MENU:1 
    

    은 따라서 귀하의 메이크의이 부분은 다음과 같이 표시됩니다 패키지가 menuconfig를에 TUI를 표시하려면 당신은 정의 패키지 절 안에 당신의 Makefile에 다음 옵션을 추가 할 필요가

    make menuconfig을 수행하고 'libxerces'패키지에 대한 오류 메시지가 표시되는지 확인하십시오. 사용자 정의 패키지 내 설치가 같은 것입니다 : 없습니다 오류 메시지 menuconfig를 만들/메이크업에 인쇄해야합니다 경우 메이크 파일이 올바른 경우

    mkdir package/custom 
    mkdir package/custom/ 
    ln -s /path/to/package/libxerces/ package/custom/ 
    

    , 다음 Libraries-> libxerces는 menuconfig를에 나타납니다. make package/libxerces/compile 등도 할 수 있습니다. 참고 : 패키지 이름은 libxerces가 아니라 libxerces-c입니다.

    관련 문제