Ask Your Question
0

Always run CMake after updating OpenCV from github?

asked Feb 5 '13

gitgat gravatar image

updated Feb 5 '13

sammy gravatar image

When should I re-run cmake? for example do I need to run cmake each time I update my opencv code (pull) through Github? If not, so in what cases I should absolutely run cmake after updating opencv through Github?

I ask this, since running cmake and rebuilding all the debug and release libraries is very time consuming and I need to know when I should do this after updates!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Feb 5 '13

sammy gravatar image

CMake re-generates project files for your compiler. You should re-run it if there are some new/deleted files in the update.

Now, the really time-consuming part of the process is compilation. And this is something you have to do each time you update - unless how can the linker have the updated libraries?

But, unless you are fixing bugs in OpenCV, looking for a specific patch, or want to know the latest, bleeding-edge from OpenCV, you do not need to update and compile each day. It's a waste of time.

For most developers, the latest release version is just enough. So should it be for you.

Preview: (hide)

Question Tools

Stats

Asked: Feb 5 '13

Seen: 633 times

Last updated: Feb 05 '13