Home > Uncategorized > Building from git on Ubuntu

Building from git on Ubuntu

Ok, time to have some fun with Searduino again. In prep for a lecture tomorrow I am making sure Searduino is working on Ubuntu which most of the students are using.

Download Searduino from savannah:

git clone git://git.savannah.nongnu.org/searduino.git

Install necessary packages

cd searduino
sudo bin/setup-ubuntu.sh

Create configure script

make -f Makefile.git

Set up environment

DEFAULT_JAVA_PATH=/usr/lib/jvm/java-8-openjdk-amd64/include/
export CFLAGS="-I${DEFAULT_JAVA_PATH} -I${DEFAULT_JAVA_PATH}/linux/"
export CXXFLAGS="-I${DEFAULT_JAVA_PATH} -I${DEFAULT_JAVA_PATH}/linux/"
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

Connfigure

./configure --prefix=/opt --disable-python --disable-pearduino

Build

make

Install

sudo make install


Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: