Qt6
Posted
#1
(In Topic #1157)
Enthusiast

Does anyone know if Gambas works with qt6?
I have a clean install of Debian 12 and I have install gambas3 from the apt
But when I run one of my apps I get a message saying qt5 could not be found
So when I did whereis qt5 I get a result
And I have tried with qt6 (full install) and im getting the same result qt5. Not found
So does Gambas not work with qt6 yet?
Posted
Guru

you'll have to install qt5.
the gambas apt install "should" have installed the qt5 dependencies??
I have debian bookworm and had no problems. qt5 was already installed :-\
did you mean Debian13 (Trixie)? I've not tried 13
maybe if you install the dependencies for debian autotools install method it will work?
/install - Gambas Documentation
I assume you did apt update and apt upgrade before installing gambas?
Posted
Enthusiast

BruceSteers said
there is no gb.qt6 yet
you'll have to install qt5.
the gambas apt install "should" have installed the qt5 dependencies??
I have debian bookworm and had no problems. qt5 was already installed :-\
did you mean Debian13 (Trixie)? I've not tried 13
maybe if you install the dependencies for debian autotools install method it will work?
/install - Gambas Documentation
I assume you did apt update and apt upgrade before installing gambas?
Yea I did a clean install as well as apt update etc and a full gambas3 install but it keeps saying no qt5 found.
My development PC is using gambas 3.18.90 (Development version) could that be what's up?
Posted
Guru

is it just using the default gnome on wayland?
What happens if you type this in a terminal..
<HIGHLIGHT highlight="shell">
echo -e 'use "gb.gui"\nPrint Env["GB_GUI"]' | env GB_GUI=gb.qt5 gbs3
</HIGHLIGHT>
I use MATE desktop , if you just installed the default gnome then it probably hasn't even got Xorg / X11
gambas sucks on wayland , well to be more specific, wayland sucks for gambas, i'd recommend installing the xorg version of gnome.
Or a program called x-wayland
gambas should make a qt5-wayland component but maybe it needs the x11/xorg libs?
did you use the following to install ALL gambas components…
sudo apt install gambas3*
are your programs set to explicitly use gb.qt5 ? if yes then on wayland you'll need to change it to gb.gui.qt or gb.gui then it will choose the qt5-wayland component or gtk depending on setting.
on my deb 12 wayland i do not see gb.qt5 component to choose so explicitly using gb.qt5 will not work.
using gb.gui.qt works okay though.
Posted
Guru

Set up the os, default gnome. did update/upgrade , then apt install gambas3*
i could load gambas3 fine and the gambas "about" page showed it was using wayland gtk
i could load and run my programs that use gb.gui (all my programs use gb.gui)
I then used synaptic and installed MATE and MATE-extras MATE-core etc.
Then when i rebooted it seemed wayland was gone. Both MATE and my default gnome was now using X11 gtk and i no longer had all or any of the wayland issues.
Posted
Enthusiast

I started with a minimum install of Debian 12
Install x11 and openbox
Installed gambas3
The about screen is saying I am using "X11" and "GTK3"
For some reason I could never get the keyboard to work in a gtk3 app that is using a workspace otherwise I would just switch to gtk3
Posted
Guru

Posted
Enthusiast

I have even used apt install qtbase5-dev and i am getting the following error message when I try to load a Gambas application
gb.gui.qt: Error 'gb.qt5' Component not found, unable to find any QT replacement components
I am not sure what to do so if anyone has any ideas I am all open
Like I said I would use the GTK graphics BUT for some reason when I am using a workspace in an application any form inside the workspace is not working with the keyboard when GTK is selected.
Posted
Guru

I don't understand why it's not working for you, like i say gambas and qt works okay on my fresh debian12
Did you try installing a desktop that uses X not wayland like MATE?
you don't have to use the MATE desktop but installing it should set up qt5 for you.
Posted
Enthusiast

BruceSteers said
post a copy of one of the failing applications and i'll see if i can get it to work here or not.
I don't understand why it's not working for you, like i say gambas and qt works okay on my fresh debian12
Did you try installing a desktop that uses X not wayland like MATE?
you don't have to use the MATE desktop but installing it should set up qt5 for you.
All I have installed is a mini version of Debian with no desktop
Then I use apt install xorg openbox to install the X11 and openbox window manager
Posted
Guru

There's a list or requirements here…
/install - Gambas Documentation
gb.qt5 Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport
gb.qt5.ext Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets x11
gb.qt5.opengl Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets Qt5OpenGL gl x11
Note: Qt5OpenGL is not needed if your Qt version is >= 5.4.0
gb.qt5.wayland Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets
gb.qt5.webkit Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets Qt5Network Qt5Xml Qt5WebKit Qt5WebKitWidgets Qt5PrintSupport
gb.qt5.webview Qt5Core >= 5.5.0 Qt5WebEngineWidgets
gb.qt5.x11 Qt5Core >= 5.3.0 Qt5Gui Qt5Widgets Qt5X11Extras x11-xcb
not sure what else to suggest.
(except do a proper desktop install like apt install mate-desktop-environment , it's likely normal desktop installs are installing a lot more than you are)
installing gambas via autotools might help.
the dependency install might install missing qt5 packages and the ./configure command should report and problems with missing things.
<HIGHLIGHT highlight="shell">
sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git libssl-dev
./reconf-all
./configure -C -q –disable-keyring –disable-sqlite2 –disable-qt4
make -j$(nproc)
# if all has gone well you must remove apt gambas now.
sudo apt remove gambas3*
# now install compiled version..
sudo make install
</HIGHLIGHT>
Posted
Guru

Code
sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
Posted
Guru

cogier said
If you install an Ubuntu based distribution, e.g. Linux Mint you can then install the Gambas ppa, and Gambas, in Terminal with the command below. It will give you the latest Gambas stable version 3.18.4. I think you will find this will simply work.Code
sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
I'm not so sure.
I think he is missing qt5 libraries. the gambas ppa install will make gb.qt5 component only if it finds all it's qt5 requirements,
it will not install qt5 for you if it's not there.
Respects
Posted
Enthusiast

I'm about 10mins away from the office and when I bet there I shall try the echo command listed above
Posted
Guru

<HIGHLIGHT highlight="shell">
for s in Qt5Core Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport Qt5OpenGL Qt5Network Qt5Xml Qt5WebKit Qt5WebKitWidgets Qt5PrintSupport Qt5WebEngineWidgets Qt5X11Extras x11-xcb;do apt-cache search "$s"; done
</HIGHLIGHT>
gives this result on mint…
libqt5core5a - Qt 5 core module
libqt5gui5 - Qt 5 GUI module
libqt5gui5-gles - Qt 5 GUI module — OpenGL ES variant
libfcitx-qt5-1 - Free Chinese Input Toy of X - D-Bus client libraries for Qt5
libqt5widgets5 - Qt 5 widgets module
libqt5svg5 - Qt 5 SVG module
libqt5svg5-dev - Qt 5 SVG module development files
libqt5printsupport5 - Qt 5 print support module
libqt5opengl5 - Qt 5 OpenGL module
libqt5opengl5-dev - Qt 5 OpenGL library development files
libqt5network5 - Qt 5 network module
libqt5networkauth5 - online account access for Qt apps - Library
libqt5networkauth5-dev - online account access for Qt apps - Development Files
libqt5xml5 - Qt 5 XML module
libqt5xmlpatterns5 - Qt 5 XML patterns module
libqt5xmlpatterns5-dev - Qt 5 XML patterns development files
libqt5webkit5 - Web content engine library for Qt
libqt5webkit5-dev - Web content engine library for Qt - development files
libqt5printsupport5 - Qt 5 print support module
libqt5webenginewidgets5 - Web content engine library for Qt - Widget
libqt5x11extras5 - Qt 5 X11 extras
libqt5x11extras5-dev - Qt 5 X11 extras development files
libx11-xcb-dev - Xlib/XCB interface library (development headers)
libx11-xcb1 - Xlib/XCB interface library
libx11-xcb-perl - perl bindings for libxcb
That should be all the libs required for gambas qt5 to install properly. (on mint, your debian results might differ)
x11 and gl also should be installed
Posted
Enthusiast

my program runs just fine running wayland … only thing I noticed is the "ME.Center" does not work
If I switch to X then ME.center work
mhc@MarvGnome:~$ for s in Qt5Core Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport Qt5OpenGL Qt5Network Qt5Xml Qt5WebKit Qt5WebKitWidgets Qt5PrintSupport Qt5WebEngineWidgets Qt5X11Extras x11-xcb;do apt-cache search "$s"; done
libqt5core5a - Qt 5 core module
libqt5gui5 - Qt 5 GUI module
libqt5gui5-gles - Qt 5 GUI module — OpenGL ES variant
libfcitx-qt5-1 - Free Chinese Input Toy of X - D-Bus client libraries for Qt5
libqt5widgets5 - Qt 5 widgets module
libqt5svg5 - Qt 5 SVG module
libqt5svg5-dev - Qt 5 SVG module development files
libqt5printsupport5 - Qt 5 print support module
libqt5opengl5 - Qt 5 OpenGL module
libqt5opengl5-dev - Qt 5 OpenGL library development files
libqt5network5 - Qt 5 network module
libqt5networkauth5 - online account access for Qt apps - Library
libqt5networkauth5-dev - online account access for Qt apps - Development Files
libqt5xml5 - Qt 5 XML module
libqt5xmlpatterns5 - Qt 5 XML patterns module
libqt5xmlpatterns5-dev - Qt 5 XML patterns development files
libqt5webkit5 - Web content engine library for Qt
libqt5webkit5-dev - Web content engine library for Qt - development files
libqt5printsupport5 - Qt 5 print support module
libqt5webenginewidgets5 - Web content engine library for Qt - Widget
libqt5x11extras5 - Qt 5 X11 extras
libqt5x11extras5-dev - Qt 5 X11 extras development files
libx11-xcb-dev - Xlib/XCB interface library (development headers)
libx11-xcb1 - Xlib/XCB interface library
libx11-xcb-perl - perl bindings for libxcb
mhc@MarvGnome:~$
Posted
Guru

You can omit various ones (like Chinese keyboards stuff and other non relevant results)
It is a good guide though.
Like I said using autotools compile and install method will give clear results.
Running these commands in the gb.qt5 folder…
./reconf
./configure -C -q
will show exactly what's missing to get gb.qt5 working in gambas.
Yes but that's for compiling gambas is the -dev package. Do you have the actual package qtbase5 installed ?I did do a apt install qtbase5-dev
Although see the list above to see what other packages you might need.
Later I might try a minimal deb install like you and get it all running.
Good luck. <EMOJI seq="1f60e" tseq="1f60e">😎</EMOJI>
Posted
Enthusiast

libqt5core5a - Qt 5 core module
libqt5gui5 - Qt 5 GUI module
libqt5gui5-gles - Qt 5 GUI module — OpenGL ES variant
libfcitx-qt5-1 - Free Chinese Input Toy of X - D-Bus client libraries for Qt5
libqt5widgets5 - Qt 5 widgets module
libqt5svg5 - Qt 5 SVG module
libqt5svg5-dev - Qt 5 SVG module development files
libqt5printsupport5 - Qt 5 print support module
libqt5opengl5 - Qt 5 OpenGL module
libqt5opengl5-dev - Qt 5 OpenGL library development files
libqt5network5 - Qt 5 network module
libqt5networkauth5 - online account access for Qt apps - Library
libqt5networkauth5-dev - online account access for Qt apps - Development Files
libqt5xml5 - Qt 5 XML module
libqt5xmlpatterns5 - Qt 5 XML patterns module
libqt5xmlpatterns5-dev - Qt 5 XML patterns development files
libqt5webkit5 - Web content engine library for Qt
libqt5webkit5-dev - Web content engine library for Qt - development files
libqt5printsupport5 - Qt 5 print support module
libqt5webenginewidgets5 - Web content engine library for Qt - Widget
libqt5x11extras5 - Qt 5 X11 extras
libqt5x11extras5-dev - Qt 5 X11 extras development files
libx11-xcb-dev - Xlib/XCB interface library (development headers)
libx11-xcb1 - Xlib/XCB interface library
libx11-xcb-perl - perl bindings for libxcb
gb.gui warning 'gb.qt5' component not found, using gb.gtk3 instead
gb.gtk3
Sorry for the delay I had to change the CMOS battery as it had died and reset the thing lol
Posted
Guru

sudo apt install libqt5gui5 libqt5core5a
And various others.
That's your job now to figure out exactly what's needed <EMOJI seq="1f601" tseq="1f601">😁</EMOJI>
(Or fix your program so it works on gtk <EMOJI seq="1f609" tseq="1f609">😉</EMOJI>)
Btw did you try apt install gambas3-gb-qt5 ?
I wondered if explicitly installing gb.qt5 may force install the needed packages. No guarantee that'll work though.
Posted
Enthusiast

BruceSteers said
Those commands do not install anything Andy it's a (rough) list of packages you need to get qt5 and gambas working.
sudo apt install libqt5gui5 libqt5core5a
And various others.
That's your job now to figure out exactly what's needed <EMOJI seq="1f601" tseq="1f601">😁</EMOJI>
I am grateful for all the help you all have given me so far.
BruceSteers said
(Or fix your program so it works on gtk <EMOJI seq="1f609" tseq="1f609">😉</EMOJI>)
I have no idea why it does not work on gkt3 if the form with in a workspace needs keyboard input (I have a single form key capture program that tells me what key code was pressed and that works fine on GTK3)
BruceSteers said
Btw did you try apt install gambas3-gb-qt5 ?
I am about to try that
BruceSteers said
I wondered if explicitly installing gb.qt5 may force install the needed packages. No guarantee that'll work though.
I keep getting message saying gb.qt5 not found
If you want to replicate what I have done so far This is how I did it
use a Network install of Debian 12 and when it asked to select a Desktop I have un-ticked both the Debian desktop environment and Xfce and Ticked SSH server and standard system Utilities
Once the system has installed and rebooted I run the following apt command
sudo apt –no-install-recommends install xserver-xorg xserver-xorg-video-fbdev xserver-xorg-video-intel xinit openbox mousepad -y
And then i installed Gambas with sudo apt install gambas3
Posted
Enthusiast

<LIST>
- <LI>apt install gambas3-qb-qt5
apt install gambas3-qb-qt5-x11</LI>
But now when I run a program I get the following message on the screen
<IMG src="https://algpos.co.uk/gambas/IMG_5707.jpeg">
</IMG>I am not sure what to do? should I wipe the machine and start again?
Posted
Guru

If not..
you'll need some kind of desktop (gui environment) to run a gui application
type
apt-cache search openbox
the will be a list of sessions.
lxde is minimal
sudo apt install openbox-lxde-session
If you do have a desktop , what type is it?
Posted
Enthusiast

BruceSteers said
So you don't have a desktop at all?
If not..
you'll need some kind of desktop (gui environment) to run a gui application
type
apt-cache search openbox
the will be a list of sessions.
lxde is minimal
sudo apt install openbox-lxde-session
If you do have a desktop , what type is it?
I have the standard OpenBox installed
I can run Gambas on the machine but i still get the error messages saying about the driver and then Gambas loads
Posted
Guru

if you read the main openbox hompage http://openbox.org/wiki/Main_Page it says all about using openbox with your "desktop environment"
without a desktop environment installed I think you can't use gambas gui applications.
(certainly not properly without errors)
(EDIT: )
Sorry i was wrong about this. see post below where i found a solution.
install openbox-lxde-session or openbox-gnome-session to get a desktop environment then your gui applications includng gambas IDE should run properly.
Or you'll just have to work out what libraries/packages are missing from the error messages.
Posted
Guru

How my deb install differed to yours….
i also install xorg and not just specific parts like xserver-xorg xserver-xorg-video-fbdev xserver-xorg-video-intel
apt install xorg
installed openbox config (and qt specific version) and some things to get a working openbox environment..
apt install obconf obconf-qt firefox-esr caja mate-terminal
caja for a file browser and mate-terminal as hitting the "terminal emulator" menu in openbox didn't work.
install complete gambas to ensure all qt stuff goes in….
apt install gambas3*
sudo reboot
on boot launch x
$ startx
gambas works and so does gb.qt5
1 guest and 0 members have just viewed this.




