[Gambas-devel] Edit/Install component

Benoit Minisini gambas at ...1...
Wed Aug 9 12:03:14 CEST 2006


On Wednesday 09 August 2006 09:49, Ron Onstenk wrote:
> Hi Benoit,
>
> Please give me a hint how to quick install the gb.form.mda component
> I do now 'make install' in the root dir of gambas source code
> after editing the component and 'make executable'.
>
> I believe it should be sufficient to copy the gb.form.mda.gambas to
> {gambasdir}/lib/gambas2/ where the others are.
> But how to make exactly the info part for the component ?
> The Makefile is now so big I can't follow all the stubs inside.
>
> TIA
>
> Ron

Never read the Makefile, you are mad? Read just the first two lines: they say 
that it is automatically generated from Makefile.in, that is automatically 
generated from Makefile.am. So you just have to read Makefile.am, which is 
shorter :-)

Well:

1) The C/C++ part of a component (gb.xxx.so, gb.xxx.so.0.0.0 and gb.xxx.la) 
must be installed in {gambasdir}/lib/gambas2.

2) The Gambas part of a component (gb.xxx.gambas) must be installed in the 
same place.

3) The gb.xxx.component file must be installed in the same place too.

4) Once done, the info files are generated by running 'gbi2 gb.xxx' in a 
shell.

Everything must be done as root.

Or you can put your component in the Gambas source tree:

1) Copy your component project into {gambas-source-dir}/comp/src, with the 
others.

2) Modifies the 'order' file accordingly. This file is a list of all 
components in {gambas-source-dir}/comp/src, in compilation order. Components 
are compiles and install during the 'make install' phase.

Try the method you want :-)

Regards,

-- 
Benoit Minisini





More information about the Devel mailing list