Qt6

Post your Gambas programming questions here.
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Qt6

Post by BruceSteers »

Ahh then i'd guess you are missing some dependencies.
There's a list or requirements here...
https://gambaswiki.org/wiki/install#t1
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.


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

If at first you don't succeed , try doing something differently.
BruceS
User avatar
cogier
Site Admin
Posts: 1127
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Qt6

Post by cogier »

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: Select all

sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Qt6

Post by BruceSteers »

cogier wrote: ↑Thursday 21st December 2023 3:28pm 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: Select all

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
If at first you don't succeed , try doing something differently.
BruceS
AndyGable
Posts: 363
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Qt6

Post by AndyGable »

I did do a apt install qtbase5-dev but it's still saying no qt files

I'm about 10mins away from the office and when I bet there I shall try the echo command listed above
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Qt6

Post by BruceSteers »

try this command i used the wiki dependency list to get these names and removed x11 and gl as they give many search results but this should help...

for s in Qt5Core Qt5Gui Qt5Widgets Qt5Svg Qt5PrintSupport Qt5OpenGL Qt5Network Qt5Xml Qt5WebKit Qt5WebKitWidgets Qt5PrintSupport Qt5WebEngineWidgets Qt5X11Extras x11-xcb;do apt-cache search "$s"; done


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
If at first you don't succeed , try doing something differently.
BruceS
User avatar
grayghost4
Posts: 187
Joined: Wednesday 5th December 2018 5:00am
Location: Marengo, Illinois usa

Re: Qt6

Post by grayghost4 »

I just installed Debian 12 Gnome yesterday and installed Gambas3 ... I get exactly the same result as you did above.

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:~$
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Qt6

Post by BruceSteers »

That command gives more results than you need.

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.
I did do a apt install qtbase5-dev
Yes but that's for compiling gambas is the -dev package. Do you have the actual package qtbase5 installed ?

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. 😎
If at first you don't succeed , try doing something differently.
BruceS
AndyGable
Posts: 363
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Qt6

Post by AndyGable »

This is the result of the 2 commands you asked me to run for you

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
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Qt6

Post by BruceSteers »

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 😁
(Or fix your program so it works on gtk πŸ˜‰)

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.
If at first you don't succeed , try doing something differently.
BruceS
AndyGable
Posts: 363
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Qt6

Post by AndyGable »

BruceSteers wrote: ↑Thursday 21st December 2023 9:56pm 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 😁
I am grateful for all the help you all have given me so far.
BruceSteers wrote: ↑Thursday 21st December 2023 9:56pm (Or fix your program so it works on gtk πŸ˜‰)
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 wrote: ↑Thursday 21st December 2023 9:56pm Btw did you try apt install gambas3-gb-qt5 ?
I am about to try that
BruceSteers wrote: ↑Thursday 21st December 2023 9:56pm 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
Post Reply