Skip to content

nikwen/ubuntu-toxcore-cross-compilation-scripts

Repository files navigation

Scripts for cross-compiling the toxcore library for other architectures on Ubuntu

This repository contains a set of scripts to cross-compile the toxcore library for other architectures in a chroot on Ubuntu.

In order to be able to run the scripts, you need to install the Ubuntu SDK first. You can follow the instructions included in the Ubuntu SDK documentation for that: http://developer.ubuntu.com/start/ubuntu-sdk/installing-the-sdk/

Then you need to run the following command to set up a new click chroot for building toxcore or to update an already existing one with the required software:

./setup-toxcore-chroot.sh [arch]

Replace [arch] with the architecture you want to compile for (may be armhf, i386 or amd64).

Afterwards, you can build toxcore using this command:

./build-toxcore-in-chroot.sh [arch]

This script will execute the build-toxcore.sh script in the chroot we created. Never execute that script yourself! Always use the build-toxcore-in-chroot.sh script.

The library files can then be found in build/[arch]/libs/toxcore/lib. The include files reside in build/[arch]/libs/toxcore/include.

About

Scripts for cross-compiling the toxcore library for other architectures on Ubuntu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages