[Gambas-user] On Ubuntu 20 no qt4 libraries?

Bruce Steers bsteers4 at gmail.com
Fri Dec 25 20:37:31 CET 2020


Team gambas repo has listed gb.pdf and gb.popler , are you sure you have
downloaded and installed the pdf/poppler components?
I do not think they auto-install when just selecting the Gambas3 install.
you have to select gb.pdf or gb.poppler to install.

Or use apt
*sudo apt-get install gambas3-gb-pdf gambas3-gb-poppler*

QT and GTK are programmed in gambas the same. there are slight differences
in behaviour.
Only real difference will be if you wanted a web viewer. before latest
Gambas there has only been the qt-webkit so if you wanted a web viewer it
had to be a QT app.
Otherwise it's best to use gb.gui as then program will run on anything
depending on the desktop. or at least have the choice of gui using the env
prefix.

BruceS


On Fri, 25 Dec 2020 at 17:08, Rolf-Werner Eilert <rwe-sse at osnanet.de> wrote:

> The thing is, I don't know for sure. I do remember there were some things
> in gb.qt4.ext I used to apply, so if they can still be operated from gb.gui
> it will be ok. Time will show, I just cannot test every function right now.
>
> Poppler is missing, at least I get a stroked-out gb.pdf component. What
> can I do here, do you have an idea? Can poppler be installed, or will I
> have to use some alternative library in my project? The wiki just tells me
> "deprecated"...
>
> Regards
> Rolf
>
>
> Am 25.12.20 um 14:25 schrieb Bruce Steers:
>
> gb.gui.qt will auto switch (or select with env) between qt4 and qt5.
> gb.gui will switch between gtk2 gtk3 qt4 and qt5
>
> If you do not require your program to be qt (as i would have assumed you
> would as you used the qt4 component explicitly) then use gb.gui
>
> Here's an explanation.
> http://gambaswiki.org/wiki/comp/gb.gui
> BruceS
>
>
>
>
> On Fri, 25 Dec 2020 at 13:14, Rolf-Werner Eilert <rwe-sse at osnanet.de>
> wrote:
>
>>
>> Am 25.12.20 um 13:46 schrieb Charlie Reinl:
>> > Am Freitag, den 25.12.2020, 13:24 +0100 schrieb Rolf-Werner Eilert:
>> >> Merry Christmas to everyone!
>> >>
>> >> I installed a brand new Kubuntu 20.04 on my Laptop and fetched
>> >> Gambas
>> >> 3.15.2 from the Gambas-team repo.
>> >>
>> >> Before running it, I copied .config/gambas3 from the old HDD to keep
>> >> my
>> >> old settings. Everything running smoothy so far.
>> >>
>> >> Now, when I load my projectthere is ns, Gambas says "gb.qt4 and
>> >> gb.qt4.ext
>> >> missing" and the projects do not run properly. The two libraries
>> >> aren't
>> >> there in the components list, that's true.
>> >>
>> >> But on my Ubuntu Mate 18.04 in the office, I have never experienced
>> >> any
>> >> problems with this, and I do not use the repos from Ubuntu for
>> >> Gambas
>> >> but the same version from Gambas-team. Shouldn't they be identical?
>> >>
>> >> So what can I do? Thank you for your help.
>> >>
>> >> Rolf
>> >>
>> >>
>> > Salut Rolf,
>> >
>> > qt4 is no longer delivered with 20.04, you have to change to qt5 (in
>> > project/properties/components) or better to gui.qt
>> >
>> Ah ok, so it adapts to missing libraries. I changed to gb.gui, and it
>> seems to run flawlessly. What would be the advantage of gb.gui.qt over it?
>>
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201225/8d5497f0/attachment-0001.htm>


More information about the User mailing list