Prompt [Q] Help Running a C++ Application via Terminal

I have a C++ Application that work on Ubuntu/any Distro via Terminal, And all what i want is to run it on my Android.

I have a Compressed file of the source code, So if i Followed these:

HTML Code:
cd /src
it will work on Ubuntu like a charm, now the thing i Copied this to my Droid, i had some problems with noexec, so i moved it to /data/tmp and now i don't have this issue anymore, now i get an "Magic 7F bla bla.." Error, I Think this because the source code has been compiled for Intel Architecture, so how can i Compile it for ARM?
Using Tapatalk