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 :

  1. i copied header files, source files , libraries in /home/myfolder path.
    1. i created application , link files stored in /home/myfolder.
    2. 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

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

Jenkins: find build number for git commit -

firebase - How to wait value in Ionic 2 -