I decided to redesign the principle of building a package,
I first unload qt I compile it statically, build a binary with static qt and add it to the snap.
but I had a problem.
the package was built successfully but after the startup I get the following error:
/snap/hanoi-towers/x3/command-hanoi-towers.wrapper: 5: exec: /snap/hanoi-towers/x3/bin/hanoi-towers: not found
my yaml file: snapcraft.yaml