Skip to content

alfkil/amiga-qt6

amiga-qt6

Qt 6.2.0 for AmigaOS 4.1 Final Edition - with optional support for OpenGLES2

Build instructions

First of all : Do not try to build on AmigaOS. Get Ubuntu and go to this page :

https://github.com/sba1/adtools

Follow the instructions here to set up the adtools cross toolchain. Qt6 is known to build and work with gcc 9 and 11.

Configure and build on linux

In order to cross-build Qt6 for amiga, you need a Qt6 host install. If you are lucky then

sudo apt install qt6-base-dev

will get you, what you need.

If successful, you might need to edit amiga-qt6/configure-amiga.sh in the following way :

DQT_HOST_PATH='edit this part to point to your Qt6 host install'

You also need an up-to-date version of cmake. Google 'install cmake ubuntu' to find instructions of that, in case there is not already a working version of cmake on your system.

The following steps will build the amiga version :

git clone https://github.com/alfkil/amiga-qt6.git

mkdir qt6-amiga-build

cd qt6-amiga-build

../amiga-qt6/configure-amiga.sh

make

sudo make install

This will install Qt6 into /qt6-amiga (in the root of your linux machine).

You need to copy this entire directory unto your amiga hd and create

assign qt6-amiga: yourhd:yourpath

on the amiga side.

Also you need to copy your truetype fonts from FONTS:_TrueType/ and into

qt6-amiga:lib/fonts

Qt6 will warn you of this last step, if you forget.

Shared object dependencies

To run Qt6 apps on OS4.1, you probably need to update the following files from adtools into SYS:sobjs/

  • libatomic.so
  • libgcc.so
  • libstdc++.so
  • libc.so

Remember to backup your files accordingly.


Recommended setup

Qt6 for amiga is known to work with the following setup :

  • X5000 (untested on other platforms)
  • exec-sg 54.54
  • dos.library 54.121
  • ramlib 54.2
  • elf.library 53.39
  • pthreads.library 53.12
  • newlib.library 53.83

How to build a Qt6 project

cd into the source directory containing the .pro file. Then do:

/qt6-amiga/bin/qmake

make

Transfer the resulting executable to the amiga and test. Good luck :).