Hi, you cant use your normal compiler, you need to set up your environment with a cross toolchain, also cross compile opencv and then cross compile your apps using your cross tolchain and indicate where your cross compiled opencv and other libs are.
If you have your enviroment correctly set you may try to check if you correctly can cross compile a hellow world before going with something more difficult. If everything go ok then you can doing more complex things like an app using special libraries, this involve set the header and linking references.
If you dont know or dont want to this fun stuff, then you can go the easy and less fun way, download the enviroment on your board and compile it directly on your board (host compilation)
Regards
--Allan