Export an old Gambas app to a new system

Post

Posted
Rating:
#1 (In Topic #1106)
Trainee
Hello, I would like to have some help concerning the port of a Gambas application installed on a dated Linux distribution to an up to date one.
The system is a Mageia 5, and impossible to update.
I tried exporting the application as an installation package for Fedora 38 and OpenSuse Tumbleweed/Leap. The installation went well, but when I launched it, I had some development problems, which I'm a total novice at.
I simply wanted to update the workstations to a more recent version of the system. I thought of doing an AppImage or a Flatpak but it was also complicated with this old version of Mageia (2015/2016).

Here's the info on the version of Gambas3 installed on Mageia 5:

Code

[System]
Gambas=3.6.2
OperatingSystem=Linux
Kernel=4.4.114-server-1.mga5
Architecture=x86
Distribution=Mageia 5
Desktop=KDE4
Theme=Oxygen
Language=fr_FR.UTF-8
Memory=3905M

[Libraries]
Cairo=libcairo.so.2.11400.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.8.14
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.403.0
GTK+3=libgtk-3.so.0.1400.8
GTK+=libgtk-x11-2.0.so.0.2400.26
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.46.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

And here's the error I encounter when installing on a more recent version of Linux (Fedora 38):

<IMG src="https://picsur.org/i/e85ba2db-1459-4791-b624-56be7f23addf.jpg"> </IMG>

It's highly likely that other errors of this type will occur if this one is corrected. No doubt linked to less permissive libraries or syntax changes in Gambas3 version 3.6.2 to 3.18.3. I tried to install the installation packages generated via the 2 versions without success.

Thanks in advance

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 I would simply transfer the source folder to the machine with newer gambas and load the project into the IDE.
Project/Make source archive


Then test and remake the executable from the more recent IDE.
that should help you to find any syntax errors.
Also making an installation package may work better with the more recent gambas.
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
vuott is in the usergroup ‘Regular’
I replaced the following Components:
- "gb.qt4" with "<COLOR color="#800000">gb.gui.qt</COLOR>"
- "gb.sdl.sound" with "<COLOR color="#800000">gb.sdl2.sound</COLOR>"
- "gb.report" with "<COLOR color="#800000">gb.report2</COLOR>"

When starting the project, I got no errors. (My distro: Linux Mint)
However, :? I didn't try everything else.

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’
Aah yes that will do it.

Newer systems use qt5 and do not have qt4

Using gb.gui.qt is much better than explicitly using a Qt version, it will stop that error ever happening again.

Seems like you've figured it out  8-)
Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Guru
cogier is in the usergroup ‘Guru’
Like vuott I managed to get the program to run with minor changes on Linux Mint 21.2 with Gambas 3.18.4

<IMG src="https://www.cogier.com/gambas/Neco1.png"> </IMG>

There are a lot of unused functions and variables, this is only one page!

<IMG src="https://www.cogier.com/gambas/Neco2.png"> </IMG>

I think the error you are getting is to do with a Database that was not supplied.

Try this:-
Attachment
Online now: No Back to the top
1 guest and 0 members have just viewed this.