Difference between revisions of "Linux development"
(New page: This is a small reference guide for compiling and running Navit on an Ubuntu Linux laptop. It is intended as a quick reference, and assumes that you are somewhat used to compiling software...) |
(finish the tutorial) |
||
Line 5: | Line 5: | ||
= Getting Navit from the Subversion (SVN) repository = | = Getting Navit from the Subversion (SVN) repository = | ||
− | + | First, let's make sure we are in our home directory: this is only for the sake of making this tutorial simple to follow. You can save that directory anywhere you want, but you will have to adapt the rest of the instructions of this guide to your particular case. | |
+ | cd ~ | ||
− | svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ | + | Now, let's grab the code from SVN. This assumes that you have subversion installed. |
+ | svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ '''navit''' | ||
+ | |||
+ | = Compiling = | ||
+ | Go to the directory where you checked out the svn repository: | ||
+ | cd '''navit''' | ||
+ | |||
+ | Start the make dance: | ||
+ | ./autogen.sh && ./configure && make | ||
+ | |||
+ | It is better to use autogen and configure before make, due to the heavy flux of changes in the svn version. Also, putting them all in one command ensures that they go through the next step only if the previous step succeeded. In the end, hopefully, you get a fully compiled navit binary in the navit/ subfolder (so basically, it looks like ~/'''navit'''/navit/navit. Yeah.) | ||
+ | |||
+ | = Running the compiled binary = | ||
+ | Here, I am skipping the usual "make install" (in my case, "sudo checkinstall make install") step, because I don't care about installing navit systemwide. I run navit directly from its svn folder, and it makes things much simpler (and safer). | ||
+ | |||
+ | To execute navit, you can simply click on the binary file (if you are sure it is compiled properly) and it should launch. If you prefer to launch it from a terminal, you need to go into the directory containing the binary, first, like so: | ||
+ | cd ~/'''navit'''/navit/ | ||
+ | ./navit | ||
+ | |||
+ | = Configuring the beast = | ||
+ | This is [[Configuring Navit|an entirely different matter]], young padawan. Good luck :) |
Revision as of 15:19, 7 November 2008
This is a small reference guide for compiling and running Navit on an Ubuntu Linux laptop. It is intended as a quick reference, and assumes that you are somewhat used to compiling software already. This guide also assumes that you want to run the bleeding-edge SVN (development) version. If you find any missing detail/step, feel free to add it to this page. --Kiddo 16:05, 7 November 2008 (CET)
Contents
Taking care of dependencies
See the Dependencies page for a list of software packages required to build Navit. If any are missing, please update those pages.
First, let's make sure we are in our home directory: this is only for the sake of making this tutorial simple to follow. You can save that directory anywhere you want, but you will have to adapt the rest of the instructions of this guide to your particular case.
cd ~
Now, let's grab the code from SVN. This assumes that you have subversion installed.
svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ navit
Compiling
Go to the directory where you checked out the svn repository:
cd navit
Start the make dance:
./autogen.sh && ./configure && make
It is better to use autogen and configure before make, due to the heavy flux of changes in the svn version. Also, putting them all in one command ensures that they go through the next step only if the previous step succeeded. In the end, hopefully, you get a fully compiled navit binary in the navit/ subfolder (so basically, it looks like ~/navit/navit/navit. Yeah.)
Running the compiled binary
Here, I am skipping the usual "make install" (in my case, "sudo checkinstall make install") step, because I don't care about installing navit systemwide. I run navit directly from its svn folder, and it makes things much simpler (and safer).
To execute navit, you can simply click on the binary file (if you are sure it is compiled properly) and it should launch. If you prefer to launch it from a terminal, you need to go into the directory containing the binary, first, like so:
cd ~/navit/navit/ ./navit
Configuring the beast
This is an entirely different matter, young padawan. Good luck :)