How to build Qt Shared Library using Digi ESP for Embedded Linux?

I’m developing Qt based applications using Digi ESP for Embedded Linux 5.2

I’m using the ConnectCore Wi-9M 2443 development board.

Now I cannot figure out to how set up a Qt project that outputs a shared library.

Any help will be much appreciated.