Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Compiling on Linux

Yifan Lu edited this page May 4, 2013 · 2 revisions

The following has been performed on a brand new Ubuntu 12.04 installation, but should apply for other Linux or Unix-based systems.

You can either get the source from Github or you can download a tar.gz source package. If you are starting from the Github code, there needs to be some extra work.

First, if the system doesn't have git support, install it now.

sudo apt-get install git

Go to the directory you want to work in and clone the repository.

git clone git://github.com/yifanlu/VitaMTP.git

cd VitaMTP

If you downloaded a source .tar.gz, you can skip the next step. Otherwise, you have to generate the autohell configs.

sudo apt-get install libtool autoconf automake gettext

./autogen.sh

Install the required libraries to compile libVitaMTP.

sudo apt-get install libxml2-dev libusb-1.0-0-dev

Configure libVitaMTP. Here, on this system, the headers for libxml2 and libusb-1.0 are not stored in the default include paths, so they are specified manually. You may or may not have to do this for your system.

CFLAGS="-I/usr/include/libxml2 -I/usr/include/libusb-1.0" ./configure

Finally, you can build the project.

make

Clone this wiki locally