Ubuntu 24.04 installing blitzmax libs/packages to successfully build and run

Started by William, September 21, 2024, 16:42:12

Previous topic - Next topic

dawlane

@William What Ron is basically saying is "If you build your application on Ubuntu 24.04 LTS, then don't expect it to run on something as old as Ubuntu 16.04". Plus not all Linux distributions will use the latest glibc.

Ideally you should build applications on a Linux distribution that's been around for 3 years. Or use docker, chroot, or a virtual machine running a suitable build environment.
Blitzmax will work on a later version of Ubuntu, providing that the packaging versions are correct. e.g. packages development packages for gtk2 can be installed etc.

William

im still interested in game app development even if its oldschool. i have ideas i want to try myself in this project if i can ever accomplish it.

William

@dawlane oh ok that makes sense. With linux though my advice 6 months is good. Just that with  3 is 2/third it's updates lifecycle support. Ubuntu anyway. It's pretty much stable rn it gets better every release in stability and improvements. Ofc it took about 2_3 years for the new Nvidia gpu card to work successfully. I was told that's on Nvidia end but who knows. This time around I chose amd and it's been really great. And they've said they are working sooner Nvidia and linux recently to work together it was an article with a interview regarding Linus and people in Europe for linux event. I don't remember what was said but that's what the impression I got from it
im still interested in game app development even if its oldschool. i have ideas i want to try myself in this project if i can ever accomplish it.

dawlane

Quote from: William on September 27, 2024, 21:47:10With linux though my advice 6 months is good.
Not if you intend for your application to reach a wide audience. For that, you should be using Ubuntu 20.04 LTS as an environment on a build machine. That release of Ubuntu still has 7 months standard support, and any application pretty much should work on nearly every major distribution.

Quote from: William on September 27, 2024, 21:47:10It's pretty much stable rn it gets better every release in stability and improvements.
If you are updating because of this, and don't want to deal with having to setup a build environment for an older distribution. Then you should consider looking at one of the other main programming languages that are much better supported, preferably one with financial backing, than using BlitzMax. Which historically was always an after though on Linux under BRL. The chances of someone updating any BlitzMax modules to work with a later distribution will be slim.

Derron

Brucey is a Mac/Linux user, I am a Linux user, Scaremonger is a Linux user - guess Starfish is more a Windows user and "MinGW" (user) is also more Windows centric.

So from the people "using" BlitzMax more indepth (module wise) the majority is Linux affine. The issue you will more likely see is with the rare used modules amongst these users - and this will be "maxGUI" and thus the GTK-binding (gtk2 and 3 are sooner or later ... the culprit).


Regarding "what ubuntu to use" - there are consortiums/groups having a kind of standard on what to use for industry compatible software. I assume they are "< Ubuntu 20" now. Would have to look for the url (posted about it here in the forums already - am sure)

Edit:
https://vfxplatform.com/

For 2024 they mention glibc 2.28 - which is eg:
- Cent OS 8 (Released 2019) - you know the alternatives ... Rocky etc - so Rocky Linux 8
- Debian 10 (Buster) (Released 2019)
- Fedora 29 (Released 2018)
- Ubuntu 18 (Released 2018) was 2.27 and Ubuntu 20 (Released 2020) is already 2.31

So they suggest to use a distro which can be up to 6 years old. Dawlane's suggested "Ubuntu 20" is not that far (as you see). Yet _I_ would simply use Ubuntu 16 or 18 (with 16 being the ones we use with NG auto-builds and they "should" work). Nonetheless you will always have to run multiple OSes (pay attention to switch virtual GPU to virtio in Ubuntu 24 VMs ... Qemu or KVM seems to run into issues with QXL (default).



bye
Ron

William

@dawlane alright but i was able to use blitzmax 24.4 out of the box its just that i had to enable x11 mode (thankfully i dont need to set this every OS restart.) and install dependencies, thankfully the dependencies didn't require any major hacks to install and work. and for the application of mine it required no dependencies but graphics drivers which i were unable to use with the latest ubuntu in 2022 2021 graphics card nvidia until sometime in 2023 i think ubuntu needed to update. or maybe it was nvidia that fixed the software drivers, critical OS errors.

apologies for the direction the conversation has turned out. i think a lot of people prefer to update their systems to get the latest software. but its interesting @Derron  thank you, worth consideration perhaps that there are many with old installations & older model machines. i guess its just standard.

sorry i dont have anything constructive to add. its great i may use max (i've looked at moving to cerberus).
im still interested in game app development even if its oldschool. i have ideas i want to try myself in this project if i can ever accomplish it.

Derron

As Mentioned I installed the latest Ubuntu (24) in a VM - so a fresh OS, installed the blitzmax dependencies as suggested and was able to compile my stuff.
What I did not test was, if my _binaries_ (I compiled) run in a fresh Ubuntu 24.

You should test similar. Which is another point for VMs ("untouched") - as your development OS for sure gets things installed "others don't have".


bye
Ron