[Gambas-user] cannot load component 'gb.qt5' - WSL Ubuntu 20.04

Bruce adamnt42 at gmail.com
Sun May 2 10:29:26 CEST 2021


On 2/5/21 2:24 pm, Safiur Rahman wrote:
> Hi
> 
> 1) When I installed a QT5 gambas app in Windows 10 WSL (version 1)
> running on Ubuntu 20.04 with xubuntu-core I got the error:
> 
> "Cannot load component 'gb.qt5': libQt5Core.so.5: cannot open shared
> object file: No such file or directory"
> 
> I fixed the issue by executing following:
> $ sudo strip --remove-section=.note.ABI-tag
> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
> 
> 2) Then there was OpenGL issue which I fixed by adding a line
>        export LIBGL_ALWAYS_INDIRECT=1
> to file /etc/bash.bashrc
> 
> 3) Now after running
>    $ export DISPLAY=:0
> I can execute my application. The free forms (eg. frm.Show or
> frm.SHowModal) work fine but the forms embedded in WorkSpace are not
> usable. You cannot write anything to forms embedded in WorkSpace.
> 
> Is there any way to solve the issue with forms embedded in workspaces?
> 

Firstly Rahman I must congratulate you on creating something that I can 
only describe as the "Ultimate Fish Milkshake" of an operating 
environment! But have to ask the obvious question - WHY?

Getting to your question at 3) though, that env command looks 
suspiciously like an Xorg tpe of syntax. Now I would presume that would 
have little effect in an environment that works the other way up i.e. 
the operating system is part of the graphics server, So are you sure 
that this is what enabled the (ahem) "app" to run? (N.B. "app" is a term 
for a bunch of **** that runs in google-land i.e. Android. They are 
nothing at all technically like the things we have here which are called 
"executables" or more correctly "executable archives".)

 From my quick and horrified reading of some of the WSL version 1 
advertising, oh alright "documentation", I really couldn't expect a 
linux based  executable, other than a CLI only executable to actually 
work at all, let alone to get it as far as you have. Maybe WSL 2 may help.

But that is only a guess as I was horrified enough reading the version 1 
... "stuff that comes out of the south end of a northbound male bovine" 
(hope that translates OK for you).

Absolute best wishes
bruce


More information about the User mailing list