windows打包ipa?x86架构和arm架构?Toolchain

电脑杂谈  发布时间:2016-07-06 05:00:23  来源:网络整理
Languages:

English العربية Български Česky Dansk Deutsch Esperanto Eesti Español فارسی Suomi Français עברית Magyar Italiano 한국어 Nederlands ‪Norsk (bokmål)‬ Polski Português Română Русский Svenska Slovenčina Українська ‪中文(中国大陆)‬ ‪中文(台灣)‬ Euskara Català


Contents

Introduction

A toolchain is a set of tools that allows you to compile code. For Openmoko, we have to differentiate between the following use-cases:

(a) Developing a single application (or a kernel or a bootloader) For this, you should use a prebuilt toolchain from the Openmoko project. On this page you can find a recipe to get started with this toolchain leading you through a series of steps to compile a project and run it on your target device. (You might have heard about OpenEmbedded, however as an application programmer, you should not be using OpenEmbedded.) (b) System Integration and customizing a distribution For this task, you should use OpenEmbedded which builds its own cross compiler during the bootstrapping/build process. System Integration and customizing a distribution is out of scope of this page. Basic toolchain usage

Prerequisites

You should be reasonably familiar with Linux and its command line tools, have an x86-compatible computer with at least 1G of free disk space. You should have experience with compiling programs from source using your local compiler. The remainder of this document will also assume you have write access in your home directory (~) and /usr/local/ (becoming root if needed). If any of this is not the case, please call your local administrator for help.

Last but not least you should have a working setup that allows you to compile native software packages using the autotools build system (the triad of ./configure, make, make install).

A (partial) list of required packages -- please append as necessary:

  • For most Linux version you might only need to install the packages
  • autoconf, automake
  • binutils, gcc, gcc-c++
  • libtool
  • ccache
  • intltool
  • For Ubuntu 8.04 ( Previous versions don't support libmokoui2 ) the following is required:
  • sudo apt-get install gcc g++ autoconf automake binutils libtool libglib2.0-dev \ ccache libxrender-dev intltool libmokoui2-dev libgconf2-dev mtools fakeroot alien check
  • For Ubuntu 8.10 the following is additionally required, install also those above:
  • sudo apt-get install uboot-mkimage
  • For Fedora-Core the following is required, while logged in as root:
  • yum install gcc gcc-c++ autoconf automake binutils libtool glib2-devel \ ccache libXrender-devel intltool GConf2-devel mtools gettext-devel

    Fedora-Core does not appear to have libmokoui2 available.

  • For Debian (Sid) do (as root):
  • apt-get install build-essential ccache autoconf automake autotools-dev libtool \ gettext intltool curl uboot-mkimage mtools fakeroot alien check libglib2.0-dev \ libxrender-dev libgconf2-dev

    Downloading and installing

    NOTE: If you wish to improve an existing Openmoko application and you are running Debian or Ubuntu i386 (i.e. you can install a .deb), you may wish to skip the below and instead use:

    Openmoko application development in 5 minutes by Andreas Dalsgaard. (based on the 2007.2 stack)


    The prebuilt toolchain can be downloaded from downloads.openmoko.org:

  • Creating a destination directory can be anywhere, but for example:
  • mkdir ~/sources cd ~/sources
  • Download the latest package:
  • Be careful to download the correct version, you get problems later on. 32bit version should still be the default.

    32bit

    wget

    64bit

    wget

    Next, you want to extract it on your filesystem. This toolchain is not relocatable, it needs to be installed into /usr/local/openmoko/. Now you have the following options:

  • Extract it directly as root, so use command "su" first (or prefix the tar command with "sudo" when you are using Debian/Ubuntu):
  • cd / tar -xjvf ~/sources/openmoko-XYZ-arm-linux-gnueabi-toolchain.tar.bz2
  • On Debian-based systems (e.g. Ubuntu), you can use alien(+fakeroot) to create an easy-to-uninstall package from this .tar.bz2:
  • bunzip2 openmoko-*-armv4t-linux-gnueabi-toolchain*.tar.bz2 gzip openmoko-*-armv4t-linux-gnueabi-toolchain*.tar fakeroot alien -d openmoko-*-armv4t-linux-gnueabi-toolchain*.tar.gz sudo dpkg -i openmoko-*-armv4t-linux-gnueabi-toolchain*.deb
  • The prebuilt toolchain is for x86_64 or i686. If you wanted, you could build it on your own with OE, using BitBake:
  • bitbake meta-toolchain-openmoko


    本文来自电脑杂谈,转载请注明本文网址:
    https://www.pc-fly.com/a/ruanjian/article-12004-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 晋平公姬彪
        晋平公姬彪

        也就是看是否属于无害通过

      热点图片
      拼命载入中...