<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > ubuntu下安裝ARM交叉編譯工具

          ubuntu下安裝ARM交叉編譯工具

          作者: 時間:2016-11-11 來源:網(wǎng)絡(luò) 收藏
          1,添加一個源到我們的/etc/apt/sources.list下,這樣我么才可以sudo apt-get install gcc-armxxx;

          源地址:deb http://www.emdebian.org/debian/ stable main

          本文引用地址:http://www.ex-cimer.com/article/201611/316813.htm

          將上面的地址加到我們的/etc/apt/sources.list下;

          手動將 deb http://www.emdebian.org/debian/ stable main添加到 /etc/apt/sources.list 一般用戶的權(quán)限是不夠的,所以需要在你的 編輯器前加上sudo的呢。

          2,千萬別忘了

          sudo apt-get update

          3.更新成功后

          sudo apt-get install gcc-4.4-arm-linux-gnueabi

          Ok,如果有什么問題,請跟貼聯(lián)系。

          4,境在執(zhí)行第二步的時候,遇到這樣的問題:

          sudo apt-get update

          W: GPG error: http://www.emdebian.org stable Release: The following signatures couldnt be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
          解決辦法:

          sudo apt-get install emdebian-archive-keyring

          sudo apt-get update

          答疑:

          有人在sudo apt-get install gcc-4.4-arm-linux-gnueabi時,遇到了這樣的問題:

          @ubuntu:~$sudo apt-get install gcc-4.3-arm-linux-gnueabi
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          You might want to run `apt-get -f install to correct these:
          The following packages have unmet dependencies:
          gcc-4.3-arm-linux-gnueabi: Depends: gcc-4.3-arm-linux-gnueabi-base (= 4.3.5-4) but it is not going to be installed
          Depends: cpp-4.3-arm-linux-gnueabi (= 4.3.5-4) but it is not going to be installed
          Depends: binutils-arm-linux-gnueabi (>= 2.19.1) but it is not going to be installed
          Recommends: libc6-dev-armel-cross (>= 2.5) but it is not going to be installed
          libmpfr4: Depends: libgmp10 but it is not installable
          E: Unmet dependencies. Try apt-get -f install with no packages (or specify a solution).
          既然遇到了這個犯人的問題,那我們只好硬著頭皮去解決了,解決辦法:

          @ubuntu:~$sudo apt-get install libc6-dev-armel-cross

          @ubuntu:~$sudo apt-get install binutils-arm-linux-gnueabi

          安裝libmpfr4,下載地址:http://www.anheng.com.cn/debian/pool/main/m/mpfr4/libmpfr4_3.0.0-9_i386.deb

          @ubuntu:~$sudo dpkg -ilibmpfr4_3.0.0-9_i386.deb

          @ubuntu:~$sudo apt-get install cpp-4.3-arm-linux-gnueabi

          安裝libgmp10,下載地址:http://www.anheng.com.cn/debian/pool/main/g/gmp/libgmp10_5.0.1+dfsg-7_i386.deb

          @ubuntu:~$sudo dpkg -ilibgmp10_5.0.1+dfsg-7_i386.deb

          @ubuntu:~$sudo apt-get install gcc-4.3-arm-linux-gnueabi-base

          @ubuntu:~$sudo apt-get install gcc-4.4-arm-linux-gnueabi

          搞定……



          關(guān)鍵詞: ubuntuARM交叉編譯工

          評論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();