Ask Your Question
1

Deleting opencv github repo after successful building from source

asked 2018-03-29 05:00:01 -0500

GustavZ gravatar image

Is it save to delete the whole opencv github repo including the build dir after cloning and building it successfully to free the disk space? Or are there dependencies to the github repo after the installation?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2018-03-29 05:38:14 -0500

rwong gravatar image

updated 2018-03-29 05:39:19 -0500

You will need to backup the following:

  • Any source code changes you made. (If your changes are already pushed to another github repo, that's fine.)
  • The dynamic libraries (.so, .dll) and/or static libraries (.a, .lib), among others. Basically, any final products from the build.
  • Debug symbols or any other files needed to troubleshoot a problem that exist inside OpenCV code

To write C++ programs that can call into OpenCV API, you need the OpenCV include headers too.

When backing up the compiled library files, you will need a thorough understanding of everything that needs to be backed up. This means second-level, third-level, etc, dependencies; all must be backed up.

Check each of the OpenCV "modules" you use.

Check each of the OpenCV "3rdparty" modules as well.

In case you move the locations of static or dynamic libraries after building, you may need to modify the hard-coded links that are embedded into your application, using a tool called chrpath. See documentations

edit flag offensive delete link more
0

answered 2018-03-29 05:11:01 -0500

berak gravatar image

yes, this is possible.

but take a deep breath before doing that, e.g. you might want to save the examples

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-03-29 05:00:01 -0500

Seen: 61 times

Last updated: Mar 29 '18