Im trying to link the libqsqlmysql.dylib to be included when run my compiled program but it says "Driver not loaded".

The dylib file is located in my .app in Plugins/sqldrivers.

How and where to i link this to be correctly loaded