Creating Custom QGC AppImage

I am trying to create a custom QGroundControl AppImage using It gets created. But when I try to execute that, I get

QFactoryLoader::QFactoryLoader() checking directory path “/tmp/.mount_CustomsyoTTQ/platforms” …
qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

I do have all the libraries in /usr/lib/x86_64-linux-gnu/qt5(plugins/platforms/

Could anyone please help me with this.