Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Ubuntu 16.04 LTS Toolchain

1,373 bytes added, 23:19, 22 June 2019
Install apps, libraries or dev packages
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted</pre>
Note: armel is not provided in ubuntu 16.04 if you needed we suggested use debian stretch.
 
==Install apps, libraries or dev packages==
To install a package of the non-default architecture just specify that architecture on the command line:
 
<pre>apt-get install package:architecture</pre>
That package's dependencies will be installed automatically for the correct architectures (same-arch library deps, machine-arch for other deps) e.g
 
<pre>apt-get install links:armhf</pre>
<pre>dpkg -i package_version_architecture.deb
dpkg -r package:architecture</pre>
 
===Installing cross-dependencies===
To install build-dependencies of a package before cross-building:
 
<pre>apt-get build-dep -a </pre>
This only works when all the 'tools' packages depended-on are marked <tt>Multi-Arch: foreign</tt>, any depended-on libraries which are also needed on the BUILD machine, and -dev packages which are needed for both HOST and BUILD architectures are made co-installable ('Multi-Arch: same' with arch-qualified paths), and any exceptions to the default rules are marked <tt>package:any</tt> or <tt>package:native</tt> in the package source. This process is ongoing.
 
When it doesn't work you can often get the dependencies installed with a manual apt-get line: e.g instead of
 
<pre>apt-get build-dep -a armhf acl</pre>
, do
 
<pre>apt-get install autoconf automake debhelper gettext libtool libattr1-dev:armhf</pre>
 
[[Category:Ubuntu]][[Category:Software distributions]]