Articles (edit)VIM (edit)SkinRSS Feeds
|
Articles /
Compile GPSHow to compile the newest gpsThe following description shows how to compile your very own GPS environment. It makes the following assumptions:
If you want it any other way you need, use your brain to change the commands appropriately. Important: Neither GPS nor GtkAda has been developed by me. For all questions but typing mistakes on my side you should join the appropriate mailing list and ask your questions there (monitor gps-devel):
Please note that it took me more than half a dozen tries and just as many mails on the gps-devel mailing list.
'''Only try it if you are an experienced developer! If you are not: just download the pre-compiled old version!
The CompilerFor GPS you need the sources of the gcc 3.5 – not 3.4.2. But it is enough to download it, you don't need to compile and install a stable development version. Get the CompilerFirst you need the get the compiler. CVS_RSH=ssh CVSROOT=:ext:<A HREF="mailto:anoncvs@savannah.gnu.org">anoncvs@savannah.gnu.org</A>:/cvsroot/gcc mkdir --parents /work/gnu_3.5 cd /work/gnu_3.5 cvs -qz4 checkout -P gcc/gcc/ada Now you have the newest sources in “/work/gnu_3.5/gcc”. You may cut your Internet connection now. GtkAdaGPS is based on GtkAda – so you need this last one first: Get GtkAdaGet the newest version from the AdaCore's Libre site. (http://libre.adacore.com(approve sites) ) CVS_RSH=ssh CVSROOT=:pserver:anoncvs@libre.adacore.fr:/anoncvs mkdir --parents /work/act cd /work/act cvs -qz4 checkout -P -r gps-2_0_1 GtkAda ConfigureThere is no fancy “configure” needed here: cd /work/act/GtkAda configure –prefix=/opt/ada The configure script might tell you about a version mismatch with your Gtk+ version. Well it worked for me to just remove the check, but it's also a good option to try to get a correct version. How to remove the GTK+ Version checkOpen configure with a text editor, at about line 2833 starts a C program. Look for the “return 1” command and replace it with “return 0”. Call configure again. Compile</H3>Like with most AdaCore Libraries you need to reset the include paths. Apart from that quite easy: declare -x ADA_OBJECTS_PATH= declare -x ADA_INCLUDE_PATH= make InstallJust as easy. Don't forget to set your include paths again.
make install
ADA_INCLUDE_PATH=${ADA_INCLUDE_PATH}:/opt/ada/include/gtkada
GPSNow we are ready to compile the GNAT Programming System. Get GPSAgain, get the newest version from the Libre site. CVS_RSH=ssh CVSROOT=:pserver:anoncvs@libre.act-europe.fr:/anoncvs cd /work/act cvs -qz4 checkout -P -r gps-2_0_1 gps ConfigureAgain nothing fancy here: cd /work/act/gps configure –prefix=/opt/ada CompileGPS grasps some of the original GNAT sources to implement the project manager support for which a symbolic is needed. Also, for gcc 3.4.1 you need a special patch. If you have wget installed the following commands will do: cd /work/act/gps ln -s ../../gnu_3.4/gcc/gcc/ada gnat_src wget --output-file=common/src/stubs.c http://ada.krischik.com/stubs.c declare -x ADA_OBJECTS_PATH= declare -x ADA_INCLUDE_PATH= make InstallIf you are lucky, and it did compile, then install is easy again. make install © 2005,2006 Martin Krischik, Content is available under GNU Free Documentation License. |