Skip to content

Instantly share code, notes, and snippets.

@zarosath
Last active October 3, 2024 19:15
Show Gist options
  • Save zarosath/a2130c1609078f8471b958545d2d1d99 to your computer and use it in GitHub Desktop.
Save zarosath/a2130c1609078f8471b958545d2d1d99 to your computer and use it in GitHub Desktop.
Ubuntu 22.04 Blitzmax 0.138 Dependencies from GWRon
sudo apt install g++ libglu1-mesa-dev libasound2-dev libfreetype6-dev libxpm-dev libxft-dev libxxf86vm-dev libpulse-dev libopenal-dev libwebkit2gtk-4.0-dev libgtk-3-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxss-dev libgl1-mesa-dev libdbus-1-dev libudev-dev libaudio-dev curl
sudo apt install libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libdbus-1-dev libudev-dev
@zarosath
Copy link
Author

zarosath commented Sep 21, 2024

on ubuntu 24.04 for libfreetype6-dev it was necessary for Depends: libfreetype-dev (= 2.11.1+dfsg-1build1)

sudo apt-get install libfreetype6=2.11.1+dfsg-1build1

@zarosath
Copy link
Author

zarosath commented Sep 21, 2024

and to run blitzmax i had to use this workaround to install libwebkit2gtk-4.0-dev

ubuntu 24.04

tauri-apps/tauri#9662

OR GWRon has noted the symlink needs to be working for 4.1 which is pre-installed with ubuntu 24.04

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37

@zarosath
Copy link
Author

zarosath commented Sep 21, 2024

for the latest blitzmax linux release, these packages also needed to be installed to successfully compile some modules

sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev

@zarosath
Copy link
Author

zarosath commented Sep 21, 2024

also this for gtk3maxgui.mod

sudo apt-get install libgtk-3-dev

i was able to build modules 100% with these. note: with the gist above i had to do sudo apt install g++ because it didnt get installed.

@zarosath
Copy link
Author

i forgot gcc, sudo apt install gcc for the compiler to install that to compile.

@zarosath
Copy link
Author

zarosath commented Oct 1, 2024

until blitzmax modules are updated for gcc/g++ 14 for ubuntu 24.10 until blitzmax is updated for gcc/g++ versions 14 you will need to use this work around. dont ask on the discord, instead try building modules first. you may even need to install build-essential package/s to completely compile you can google errors although this will also install versions 14 which at this time and date blitzmax needs updated to successfully compile modules.

but for gcc/g++ 13 heres what you do to run blitzmax now on ubuntu 24.10/later


sudo apt install gcc-13
sudo apt install g++-13

next we update so that these versions are prioritized and used otherwise it will use version 14 or say that gcc is missing/not installed.

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 10

now you should be able to compile and/or google readable errors. the 10 at the end is the priority so that may be a different version could have a higher priority and used. there is a update-alternatives config command to look and check this. to check the g++ or gcc used versions in the terminal type for instance gcc --version

sudo update-alternatives --config gcc

sudo update-alternatives --config g++

@zarosath
Copy link
Author

zarosath commented Oct 3, 2024

i went back to ubuntu 24.04.1 and i needed to install

sudo apt-get install libxxf86vm-dev for missing x11 component. Make sure you get all packages from the gist above installed to build all modules, on ubuntu it will throw messages like somethings already installed or a package version isnt available and it will not install the other packages in the list. so make sure you try installing each one if you run into an error.

i was able to build all modules successfully with these packages 100% on ubuntu 24.04.1 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment