I'm developing a c++ app in Ubuntu Desktop 16.04. I have created an executable c++ file with eclipse. Furthermore I'm using external libraries like poco and avro which I link dynamically. I need to try my app on a cubietruck that runs on Lubuntu Desktop 12.10. My approach it to install only the desired g++ compiler on Lubuntu because I want to install as less as possible on the board. Then to transfer there the same folder structure which resides in Ubuntu that contains the executable file as well as the external libraries'.so files and its headers. Since I have almost no experience in boards and transfer between linux distro's is my approach an efficient one?
I think the main problem is the different architecture. Your board is ARM while your Desktop is x86. Your application needs to be compiled on the board. Also you need to get the library files for arm.