-
Notifications
You must be signed in to change notification settings - Fork 11
Compiling the code
David Lechner edited this page Mar 6, 2017
·
8 revisions
Get the code (beware of the git submodule):
git clone --recursive https://github.com/ev3dev/grx
Get the build dependencies:
* For now, you have to do this manually:
head grx/debian/control
# look for Build-Depends:
# install the packages listed
sudo apt-get install <package> <package> ...
* TODO: once we publish a package, you can use the ev3dev.org package repository:
sudo apt-add-repository --enable-source "deb http://archive.ev3dev.org/debian jessie main"
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 2B210565
sudo apt-get udpate
sudo apt-get builddep grx
Now create a build directory, preferably outside of the source directory:
mkdir build
cd build
Then build it:
# If the build directory is not a sibling of the source code directory,
# replace `..` with the actual path to the source code.
cmake ../grx -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$(pwd)/install
make
make install
Note: Since this library uses plugins, we need to install it locally to be able to actually use it. The commands above install it in the build directory instead of globally.