Closed SkeLLLa closed 6 years ago
For simplicity I would say, simply delete the sources and files you don't need manually after the build, if the size is really a concern for you.
@justadudewhohacks I've tried but seems it's not very easy. After deleting several folders that look like just sources and then face-recognition or opencv4nodejs refused to build or work. Now I'm trying also to build clean docker image with "external" opencv and dlib. Something like in https://github.com/justadudewhohacks/opencv4nodejs-docker-images but with dlib and based on Debian (that has less size than Ubuntu-based). But there are also some issues with dlib, because face-recognition fails to build without libx11-dev that requires a lot of deps.
The only thing required after the build are the include, lib and bin folders in opencv-build/opencv/build/
. Everything else could be deleted I think.
That's a different story for dlib-build as the source folder also servers as the include folder.
Hi. I've noticed that after building opencv directory with files have size ~1.6Gb. There are many files inside, including sources.
Is there any way to reduce it by removing unnecessary files after build which are not required to run opencv.
I've also complied opencv on my system (I use gentoo) and installed opencv size:
That's without contrib.
And with contrib and some other deps (
-lib
stands for compile without it):