Biicode is a file-oriented Dependencies Manager for C and C++ developers. Install both Biicode and the cross compiling tools for Raspberry PI to get started.
Download Biicode Installer and double-click the downloaded package to install it.
Open the terminal and make sure biicode is installed:
~$ bii --version
Check alternative installations for:
To start, install required tools like CMake or GCC:
$ bii setup:rpi
Re-run
bii setup:rpi
command to verify everything is installed.
Any issues, contact us at our forum, and feel free to ask any questions.
Manually install the cross-compiling tools. Go through this section if something failed during the automatic installation explained before. Any issues, please contact us at our forum, and we’ll try to solve it as soon as possible.
Install the required development tools as root:
$ sudo apt-get install build-essential cmake
If your are using a 64-bit version of Linux as development environment, follow the next steps.
Install lib32z1 (only for 64-bit linux versions)
To find if your Linux is 32 or 64 bits, just type:
$ uname -m
This command may throw one of the following outputs:
x86_64
==> 64-bit kerneli686
==> 32-bit kernelIf you are using a 64-bit OS, you need to install the support for 32 bit applications. These libraries are required to use the cross compilers supplied by Raspberry Pi from their Github repository.
$ sudo apt-get install lib32z1
It is possible that you encounter some of the following errors:
If it does not find the package, you may need to add a 32-bits architecture to your package list:
$ sudo dpkg --add-architecture i386 $ sudo apt-get update $ sudo apt-get install ia32-libs
If you get:
The following packages have unmet dependencies: ia32-libs : Depends: ia32-libs-multiarch E: Unable to correct problems, you have held broken packages.execute:
$ sudo apt-get install libgl1-mesa-dri:i386 $ sudo apt-get install ia32-libs-multiarch:i386 $ sudo apt-get install ia32-libs-multiarch $ sudo apt-get install ia32-libs
If you get:
Some packages could not be installed. This may mean that you have requested an impossible situation the following packages have unmet dependencies: ia32-libs : Depends: ia32-libs-multiarchjust install the dependencies manually like any other package:
$ sudo apt-get install ia32-libs-multiarch $ sudo apt-get install ia32-libs
One essencial step for cross-compiling your programs is downloading the Raspberry Pi tools from this Github repository. You’ll need Git installed on your Linux system. You can install an existing package on your Ubuntu platform with the following command:
$ sudo apt-get install git
Now, you need to clone this Git repo in this folder: ~/.biicode_env/raspberry_cross_compilers
. To do so, execute the following command:
$ git clone https://github.com/raspberrypi/tools.git ~/.biicode_env/raspberry_cross_compilers
After a while, the RPi cross-compiling tools will be available in your system. To verify that biicode is able to find and use the compilers, run the following command, and check that you receive a success output message:
$ bii setup:rpi
INFO: The arm gnu is already downloaded
If you have any questions, we are available at biicode's forum. You can also write us for suggestions and feedback.