c++ - How can i use Opencv build in one Linux PC to the other? -
i trying create c++ application opencv , share application other user donot have opencv installed on pc. how can that?
i tried :
- i copied header files, source files , libraries in /home/myfolder path.
- i created application , link files stored in /home/myfolder.
- set environment variable ld_library_path point /home/myfolder in .bashrc file application can find libraries during run time.
i able compile on pc, when share folder other pc , link libraries, undefined reference error opencv.
thanks
the answer static linking. if don't care executable size , target machine doesn't have required libraries, supply them inside executable. please @ this question reference.
wiki
Comments
Post a Comment