[Gambas-user] Generating component for Debian

Bruce Steers bsteers4 at gmail.com
Sun Jan 31 14:42:47 CET 2021


Things to make sure of the get
 a program made on a newer gambas to work on an older gambas.

you cannot use ANY code that only exists in the newer gambas.

for example...
*Property MyProperty As Variant Use $Property*
the "Use" keyword did not exist in gambas 3.12 so you cannot use that code

there are other techniques that did not exist in gambas 3.12

Also there is an undocumented "trick" to get a program backward compatible
with older gambas.
Set this Environment variable in the project settings..
GB_PCODE = 3.8
GB_PCODE will stop an older gambas refusing to run a newer app.
It does no code checking so you need to make sure no newer code exists.

Also i found setting GB_PCODE = 3.12 did not work for me on 3.12 i had to
set it to 3.8

BruceS


On Sun, 31 Jan 2021 at 08:53, Olivier Coquet <ocoquet at 3d-phenomen.fr> wrote:

> Hello everyone,
>
> My http server component is now functional and stable.
> To release it, I try to create packages for several distributions.
> The UBUNTU version is perfectly operational and can be installed. But
> for the Debian version, I have some problems. If I generate the package
> from my UBUNTU machine and specify that the minimum version of gambas is
> 3.12, the package installs well on the DEBIAN machine but when I want to
> declare the class it contains in a program somewhere, Gambas puts a
> message asking me to upgrade it to the new version?
> When I load the source on the DEBIAN machine and generate the package
> from this machine, the component works perfectly well.
> Does anyone have an idea ?
>
> UBUNTU Machine => Gambas 3.15.2
>
> DEBIAN Machine => Gambas 3.12.1
>
>
> Best regards to all
> Olivier Coquet
>
> Translated with www.DeepL.com/Translator (free version)
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210131/06b14f6e/attachment.htm>


More information about the User mailing list