Deploy Console App to Raspberry Pi

I am trying to deploy a simple console app to Raspberry Pi. When I try to execute I get the following message.

./MyApplication: error while loading shared libraries: cannot open shared object file: No such file or directory

I can however run it remotely and it works fine. Am I building the app incorrectly or do I need to install more libs on the raspi? I have installed the following on the raspi

sudo apt-get install libunwind8

I am building on a MAC with High Sierra
The Pi is 2B+ with a recent build of Raspian from the raspberry web page
I can run both gui and console apps remotely from Xojo on my MAC
The same console app will not run via an ssh terminal session.


Are you copying the libs folder as well?

The libs folder is on the machine and I have tried running from that folder but still no good. It seems as if the build is required the remote libs be used? For stand alone I would think that requirement get’s droped.