Compiling qt application

Hi
After compiling a qt application and installing it, I’m getting the following error:

This application failed to start because it could not find or load the Qt platform plugin “xcb” in “”.

when installing my app and going to:

/snap/myapp/current/bin/

and running it, it works! I’ve tried adding this path to th path but it didn’t help either, what can I try next?
Thanks
Ohad

for future users: