`
cloudhe
  • 浏览: 107679 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Installing packages to N800 from source

阅读更多
For example, get a package called "gst-plugins-good0.10":
Terminal 代码
  1. [sbox-SDK_ARMEL: ~] fakeroot apt-get update   
  2. [sbox-SDK_ARMEL: ~] fakeroot apt-get build-dep gst-plugins-good0.10    
  3. [sbox-SDK_ARMEL: ~] fakeroot apt-get source gst-plugins-good0.10   
  4. [sbox-SDK_ARMEL: ~] cd gst-plugins-good0.10-0.10.4-osso2  

Edit debian/control file for installation:

Terminal 代码
  1. [sbox-SDK_ARMEL: ~/gst-plugins-good0.10-0.10.4-osso2] vim debian/control  

The default file is prepared for Linux desktop, not N800.  

So change "Sections: utils" into "Sections: user/utils" in each package of control file.

It is because N800 puts all user datas under "user/" directory, while as other system folders are not visible.

All other sections written in control should alse be changed.

Known sections: utils, libs, devel...

Next, to build ded package which would be installable on N800:

Terminal 代码
  1. [sbox-SDK_ARMEL: ~/gst-plugins-good0.10-0.10.4-osso2] dpkg-buildpackage -rfakeroot -b  

It will take some time.

After that, *.deb (could be 2 files or more) will appear in the home folder of scratchbox. (that is /scratchbox/user/cloud/home/cloud/)

Copy your own *.deb into N800.

If you see "Unable to install. Imcompatible package" while installing, mostly, your control file is not working correctly.

Check it out and do the packaging again.


We don't need to run:

Terminal 代码
  1. [sbox-SDK_ARMEL: ~/gst-plugins-good0.10-0.10.4-osso2] ./configure   
  2. [sbox-SDK_ARMEL: ~/gst-plugins-good0.10-0.10.4-osso2] make  

before dpkg-buildpackage, since it automatically runs both of them before packaging by default, which is controlled in /debian/rules.

However, if the sources have been modified, to save some time probably, run make to find errors before dpkg-buildpackage.


Another way of packaging:

The deb packaging process (dpkg-buildpackage) is totally controlled by the debian/ directory. But, some sources not from apt-get (got from www.debian.org) maybe doesn't contain the directory. So dh_make will be needed to create a widely usable template debian/, which includes default changelog, control, rules, etc. Dpkg-buildpackage can be runned after modified debian/control (change sections) and debian/rules (remove installdocs). But none of packages created this way have been proved effective, though normally installable.

Steps:

Terminal 代码
  1. $ sudo apt-get install dh-make dpkg-dev g++ patch make libc6-dev fakeroot libgtk2.0-dev   
  2. [sbox-SDK_ARMEL: ~/test0.1] dh_make -e your@email.com -f ../SourceFileName.tar.gz   
  3. [sbox-SDK_ARMEL: ~/test0.1] vim debian/control   
  4. [sbox-SDK_ARMEL: ~/test0.1] vim debian/rules   
  5. [sbox-SDK_ARMEL: ~/test0.1] dpkg-buildpackage -rfakeroot -b  

Note:

dh-make is a tool package including dh_make, dh_installdocs, etc. Mostly dh-make is used in apt-get install. Pay attention to the difference between dh-make and dh_make

分享到:
评论

相关推荐

    PyPA Installing Packages.rar

    在PyPA Installing Packages.rar这个压缩包中,我们可以找到关于如何在Python环境中正确安装PyPA包的详细指南。下面将对这个主题进行深入的探讨。 1. **理解PyPA和PyPI** PyPA是Python打包社区的核心,它维护了一...

    installing-asterisk-from-source

    Now it's time to compile and install Asterisk. Let's change to the directory which contains the Asterisk source code. 从源代码安装 asterisk sipserver VOIP RTP pjsip webrtc

    The Linux-HA User’s Guide

    Building and installing Cluster Glue from source 3.1.1. Cluster Glue build prerequisites 3.1.2. Downloading Cluster Glue sources 3.1.3. Building Cluster Glue 3.1.4. Building Packages 3.2. ...

    Ansible.From.Beginner.to.Pro.1484216601

    In less than 250 pages, this book takes you from knowing nothing about configuration management to understanding how to use Ansible in a professional setting. You will learn how to create an Ansible...

    MySQL V5.5帮助文档

    2.9.2. Installing MySQL from a Standard Source Distribution 2.9.3. Installing MySQL from a Development Source Tree 2.9.4. MySQL Source-Configuration Options 2.9.5. Dealing with Problems Compiling ...

    Beyond Spreadsheets with R: A beginner’s guide to R and RStudio

    Beyond Spreadsheets with R shows you how to take raw data and transform it for use in computations, tables, graphs, and ...Installing and working with R packages Tidying, refining, and plotting your data

    TeeChart2013_130818_SourceCode

    SOFTWARE to the place from which you purchased it in accordance with the return policies of that place. II. YOUR LICENSE TO DEVELOP AND TO DISTRIBUTE. Detailed below, this EULA grants you three ...

    TeeChart8.01 FullSource

    Problems when installing packages in Delphi / C++ Builder arise when old or duplicate *.bpl (*.dpl) files are still located in the system path (\Windows\System or \WinNT\System32). Other causes are...

    Apache Oozie Essentials(PACKT,2015)

    Apache Oozie Essentials starts off with the basics right from installing and configuring Oozie from source code on your Hadoop cluster to managing your complex clusters. You will learn how to create ...

    Guidelines to installing ITSM 7.0 patche005

    Guidelines to installing ITSM 7.0 patche005

    How to Cheat at Securing a Wireless Network

    He has contributed to several other Syngress publications, including Penetration Tester's Open Source Toolkit (ISBN: 1-5974490210), Stealing the Network: How to Own an Identity (ISBN: 1597490067), ...

    Beginning.Ruby.From.Novice.to.Professional.3rd.Edition.1484212797

    Based on the bestselling first and second editions, Beginning Ruby, Third Edition is a leading guide to learn Ruby from the ground up. The new edition of this book provides the same excellent ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Components realize technology to store component properties to/from settings storage such as ini files, registry etc. TMemTableEh component dataset, which hold data in memory. Its possible consider...

    sourceinsight4.0版本

    After installing and launching Source Insight, please select "Begin a Trial" when prompted. You do not need a serial number to run in Trial mode. If you purchase a license, you simply need to enter ...

    Empowering everyone to build reliable and efficient software

    Installing from Source The Rust build system uses a Python script called x.py to build the compiler, which manages the bootstrapping process. It lives at the root of the project. It also uses a file ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Components realize technology to store component properties to/from settings storage such as ini files, registry etc. TMemTableEh component dataset, which hold data in memory. Its possible consider...

    PostgreSQL.for.Data.Architects.1783288604

    The book covers PostgreSQL from a data architect's perspective – covering topics from installation from source to designing tables using SQL Power Architect, as well as deciding replication and ...

    表格控件Vcl TopGrid.v3.01

    If you already have an older version of the TopGrid installed, first remove the old packages from Delphi before installing the new ones. Also make sure the library path no longer points to the old ...

    wxWidgets-3.0.2-docs-html.zip

    When installing wxWidgets on Windows or OS X, we always recommend building the library from source yourself, and only provide the source package for most platforms. On some platforms, we have provided...

    Oracle Solaris 11.1 Quick Start Guide to Installing Oracle Solar

    Oracle Solaris 11.1 Quick Start Guide to Installing Oracle Solaris11.1-8

Global site tag (gtag.js) - Google Analytics