[gps-devel] gps compilation & static gtkada

Lambourg Jerome jerome.lambourg@free.fr
19 Jul 2003 15:01:03 +0200


Hi all,

I successfully managed to compile gps (gnat 3.15p / mdk 9.1), and this
was not as easy as said in INSTALL file:

- you have to change gtkada Makefiles in order to link with gps specific
gnat library in gps-1.2.2/common/obj and gps-1.2.2/obj directories
- if you don't want to recompile gtk, just use "CC=/usr/bin/gcc
./configure" in gtkada and gps directories (if gnat was installed in
another directory, of course...)
- some other difficulties might appear and need to be resolbed by hand

After this, everything worked fine, but gps is hardly usable as is (for
me). In fact, its specific gtkada library compiled with specific gnatlib
is not what I want in my project, but becomes automatically the linked
library when you compile with gps (the gps wrapper redefines
LD_LIBRARY_PATH when launching).

The solution for this would be to statically link gps with its gtkada
library, but I'm not a specialist of .gpr files and couldn't figure how
to do this easily... Can someone help me with this ?

- Jerome Lambourg