How to compile and install OpenCPN 4.2.0 from source code (via Github) in Ubuntu 14.04 LTS 64-bit

Posted: 2016/02/17 in Ubuntu
Tags: , , , , , , , , , ,
# How to compile and install OpenCPN 4.2.0 from source code (via Github) in Ubuntu 14.04 LTS 64-bit:
cd
sudo apt-get update
sudo apt-get install gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev
sudo apt-get install libcurl3 curl cmake git plplot12-driver-wxwidgets libalien-wxwidgets-perl checkinstall build-essential
sudo rm -rf OpenCPN
git clone https://github.com/OpenCPN/OpenCPN.git 
cd OpenCPN
mkdir build
cd build
cmake ../
sudo make
sudo checkinstall 
# during checkinstall process, press 2 and manually change name from build to opencpn
apt-cache show opencpn
# if you forgot to change the name of the newly built package, you need to use this command instead:
apt-cache show build
/usr/local/bin/opencpn

Source: http://opencpn.org/ocpn/book/export/html/28

Advertisements

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