Difference between revisions of "Ubuntu 12.04 Multiarch"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
Ubuntu 12.04.4 LTS MultiArch
+
Ubuntu 12.04.4 LTS MultiArch (i386 <-> ARM Hard float)
  
We will learn about configure & install multi-arch packages in our host machine Ubuntu 12.04.4 LTS
+
We will learn about configure & install multi-arch packages in our host machine Ubuntu 12.04.4 LTS.
 +
This is required when we wish cross compile software using our host machine under Ubuntu/debian environment.
  
 
= Overview  =
 
= Overview  =
Line 12: Line 13:
  
 
This how to is done using 12.04.4 LTS (32 bits) in your host, you can download it from our server using this [http://downloads.isee.biz/pub/igepv5_ce/devel/iso/ubuntu-12.04.4-desktop-i386.iso link]&nbsp;or directly from Ubuntu (Canonical) website. You can install it in a Virtual Machine enviroment using any Virtualization software or directly in your PC.
 
This how to is done using 12.04.4 LTS (32 bits) in your host, you can download it from our server using this [http://downloads.isee.biz/pub/igepv5_ce/devel/iso/ubuntu-12.04.4-desktop-i386.iso link]&nbsp;or directly from Ubuntu (Canonical) website. You can install it in a Virtual Machine enviroment using any Virtualization software or directly in your PC.
 +
 +
== Host Configuration ==
 +
We will modify dpkg & apt for use a multi arch environment but what extacly is a multi arch environment?
 +
 +
* https://help.ubuntu.com/community/MultiArch
 +
 +
In our case we will add the architecture ARM Hard float and after that we can install the packages or cross compile packages using our host machine.
 +
 +
The first step is add the multi arch option in dpkg.
 +
 +
Go to /etc/dpkg/dpkg.cfg.d
 +
and if the directory is empty you must create one file named: multi arch
 +
and inside the file we will put this line:
 +
foreign-architecture armhf
 +
 +
So this is the result:

Revision as of 12:53, 20 May 2014

Ubuntu 12.04.4 LTS MultiArch (i386 <-> ARM Hard float)

We will learn about configure & install multi-arch packages in our host machine Ubuntu 12.04.4 LTS. This is required when we wish cross compile software using our host machine under Ubuntu/debian environment.

Overview

What we learn? Configure our environment and install cross packages in Ubuntu, after install the packages we will cross compile programs using our ubuntu host.

Host Enviroment

This how to is done using 12.04.4 LTS (32 bits) in your host, you can download it from our server using this link or directly from Ubuntu (Canonical) website. You can install it in a Virtual Machine enviroment using any Virtualization software or directly in your PC.

Host Configuration

We will modify dpkg & apt for use a multi arch environment but what extacly is a multi arch environment?

In our case we will add the architecture ARM Hard float and after that we can install the packages or cross compile packages using our host machine.

The first step is add the multi arch option in dpkg.

Go to /etc/dpkg/dpkg.cfg.d and if the directory is empty you must create one file named: multi arch and inside the file we will put this line: foreign-architecture armhf

So this is the result: