[Gambas-user] Gambas 3.10 on Linux CentOS 6.9

Tobias Boege taboege at gmail.com
Thu Oct 19 15:50:34 CEST 2017


On Thu, 19 Oct 2017, Karl Reinl wrote:
> Am Donnerstag, den 19.10.2017, 13:44 +0200 schrieb Tobias Boege:
> > On Thu, 19 Oct 2017, Cristiano Calligaro wrote:
> > >                 Dear All,
> > > 
> > >  
> > > 
> > >                 I have some problems in compiling Gambas 3.10.0 on a Linux
> > > CentOS 6.9 (64 bit). Shall I try another release < 3.10.0?
> > > 
> > >                 The main problem si represented by SDL2 which seems to be
> > > available on CentOS 7 only.
> > > 
> > 
> > SDL2 was added in Gambas 3.7.0 from March 2015. I don't think you want to go
> > back further than that. If you don't intend to use SDL2, it's no problem if
> > you can't compile the SDL2 component. It is an optional library and shouldn't
> > stop you from compiling Gambas.
> > 
> > If it says at the end of ./configure that gb.sdl2 is disabled, just ignore
> > that and proceed with "make". If, on the other hand, there is an error, we
> > need the output of the configure script as described here:
> > 
> >   http://gambaswiki.org/wiki/doc/report#t3
> > 
> > Regards,
> > Tobi
> > 
> 
> Salut,
> 
> is it possible to split the end of the./configure output into 2 parts,
> one who says 
> || THESE COMPONENTS ARE DISABLED: but necessary 
> 	(like gb.qt4 for the IDE) 
> other says
> || THESE COMPONENTS ARE DISABLED: but optional
> 	(like gb.jit) 

To do that you have to get a list of the (recursive) dependencies of
the IDE. I quickly made a Gambas script that can do that (but it is
not completely bug-free because it's hard to determine which files
in the source tree describe a component and which are *templates* for
component description files!). If the immediate dependencies are
enough, it is a simple matter of:

  $ sed -n 's/Component=\(.*\)/\1/p' <app/src/gambas3/.project
  gb.image
  gb.gui.qt
  gb.form
  gb.clipper
  gb.db
  gb.db.form
  gb.debug
  gb.desktop.x11
  gb.desktop
  gb.eval
  gb.eval.highlight
  gb.form.dialog
  gb.form.editor
  gb.settings
  gb.form.mdi
  gb.form.stock
  gb.term
  gb.form.terminal
  gb.gui.qt.webkit
  gb.net
  gb.net.curl
  gb.markdown
  gb.signal
  gb.util

This could be built into the configure script, I suppose, and matched
against the list of disabled components.

There is also an explicit listing of the dependencies of the IDE at [1].
It currently matches the output of my script, so whoever maintains it
seems to be more dependable than I would have imagined :-)

However, I wouldn't call any component but gb necessary. I run a small
Gambas on a CentOS 6.9 server as well. It has neither the IDE nor most
of the necessary components. It has the hand full of components I need
though.

Regards,
Tobi

[1] http://gambaswiki.org/wiki/install#t13

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk



More information about the User mailing list