Deploy and distribute OpenCV applications with Xcode4 on Mac OSX

前端 未结 2 1339
闹比i
闹比i 2020-12-31 22:13

I\'m working on an OpenCV application and my question is how can I deploy and distribute the application on non-development-machines, machines where OpenCV isn\'t installed?

2条回答
  •  天命终不由人
    2020-12-31 22:19

    What i would advise is to use a cross platform compilation builder (like an improved autotool). A very common one is CMake which is not so easy to handle but not so difficult, not only a common one, it is used by OpenCV...

    • 1) Write your application on your development machine and write a Cmake (don't forget to write a part to use the OpenCV Cmake)

    • 2) Provide your cmake files and the opencv library to the non-development machine

    • 3) Build with CMake script the application on the target platform, if you wrote it correctly it can build opencv (using the own OpenCV Cmake), and build your application (with the one you wrote)

    If you want to go further, you can create an install wizard or a package with CPack in order to automatize everyting.

    Here is the link where you can download it

    Julien,

提交回复
热议问题