網路城邦
上一篇 回創作列表 下一篇   字體:
Basic tutorial - cross compile
2020/09/25 17:24:53瀏覽54|回應0|推薦0

basic cross compile tutorial

target: 
forlinx-ok5718

//---install pkg for downloading source code

sudo apt-get install dpkg-dev

.

//---find source code by apt-cache

apt-cache search tree

gcat@gcatpc:~$ apt-cache depends tree
tree
  Depends: libc6

apt-get source tree

#note,

#ubuntu 12, download tree_1.5.3

#ubuntu 14, download tree_1.6.0

apt-get source htop

#note,

#ubuntu 12, download htop-1.0.1

#ubuntu 14, download htop-1.0.2

//---tree

[forlinx-ok5718]:~/0915/tree-1.6.0> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-



//---htop
[forlinx-ok5718]:~/0915/htop-1.0.2> ./configure --help
[forlinx-ok5718]:~/0915/htop-1.0.2> ./configure --host=arm
[forlinx-ok5718]:~/0915/htop-1.0.2> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-


If this document helps you, buy a fish can for street cats.

( 不分類不分類 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=150937130