[patch] More fully disable test and debug in thirdparty components
I think something like this patch can be applied to automated builds, where you generally don't look into directories for debug, just want you binary package fast. I was trying to build CinelerraGG from source in just ~700 Mb compressed btrfs image on Live DVD from Linux Mint 18, 32-bit (from ~early 2016). With total 2Gb of memory for my virtual machine. It worked after I disabled ffmpeg's debug symbols, programs, and few other things in Cinelerra itself. Feel free to adapt to your needs. after applying this and opencv trim patch full 32-bit build eats around 2913M instead of 3650M or so. (uncompressed) PS: what exactly this file in thirdparty/src does, I can't find reference to it? -rw-r--r-- 32600440 cimg-source.txz ? --- diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile index e343f39a..c4c6c4ad 100644 --- a/cinelerra-5.1/thirdparty/Makefile +++ b/cinelerra-5.1/thirdparty/Makefile @@ -131,6 +131,7 @@ esound.ldflags=" -lm -lstdc++" fftw.cfg_params= --disable-fortran --enable-shared=no ffmpeg.cfg_params= \ --enable-pthreads --enable-gpl --disable-ffplay \ + --disable-debug --disable-programs --disable-doc \ $(call if_want,VAAPI,--enable-vaapi,--disable-vaapi) \ $(call if_want,VDPAU,--enable-vdpau,--disable-vdpau) \ $(call if_want,NV, --enable-nvenc --enable-nvdec --enable-ffnvcodec) \ @@ -199,7 +200,7 @@ lame.cfg_vars?= CFLAGS+=" -O" lame.cfg_params?=--enable-shared=no lame.mak_params?= ; cd $(call bld_path,lame,include); ln -sf . lame libaom.cfg_vars?=$(call cmake_config,aom-master) -libaom.cfg_params?= -DENABLE_SHARED=no -DCMAKE_INSTALL_LIBDIR=lib \ +libaom.cfg_params?= -DENABLE_SHARED=no -DENABLE_TESTS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_TOOLS=OFF -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=$(call bld_path,libaom)/usr/local libaom.mak_params?= ; $(MAKE) -C libaom* install dav1d.cfg_vars?=echo "echo dav1d custom make" >> configure; chmod +x ./configure; @@ -242,6 +243,7 @@ opencv.cfg_vars?=$(call cmake_config,.) opencv.cfg_params?= -DBUILD_SHARED_LIBS:BOOL=OFF openexr.cfg_vars?=true; \# openexr.mak_vars?=true; \# +opus.cfg_params?= --disable-doc --disable-extra-programs speech_tools.mak_params?=-j1 tiff.cfg_vars+=LIBS+=" -lpthread" tiff.cfg_params+= --enable-shared=no --disable-zstd $(call if_pkg,libwebp,\ @@ -251,7 +253,8 @@ twolame.cfg_params?=--enable-shared=no x264.cfg_params?= --enable-static --enable-pic x265.cfg_vars?=$(call cmake_config,source) x265.cfg_params?= -DENABLE_SHARED=no -libvpx.cfg_params?= --enable-pic +libvpx.cfg_params?= --enable-pic --disable-unit-tests --disable-examples --disable-tools + DS:=$$$$$$$$ pkg_cfg=$(call bld_path,$(1),usr/local/lib/pkgconfig):
Andrew: On Sun, Mar 29, 2020 at 9:39 AM Andrew Randrianasulu < [email protected]> wrote:
I think something like this patch can be applied to automated builds, where you generally don't look into directories for debug, just want you binary package fast.
I was trying to build CinelerraGG from source in just ~700 Mb compressed btrfs image on Live DVD from Linux Mint 18, 32-bit (from ~early 2016). With total 2Gb of memory for my virtual machine. It worked after I disabled ffmpeg's debug symbols, programs, and few other things in Cinelerra itself.
Feel free to adapt to your needs.
OK, Thanks!
PS: what exactly this file in thirdparty/src does, I can't find reference to it? -rw-r--r-- 32600440 cimg-source.txz
This is the famous greycstoration (spelling?) plugin code.
В сообщении от Sunday 29 March 2020 20:20:59 Phyllis Smith написал(а):
Andrew:
On Sun, Mar 29, 2020 at 9:39 AM Andrew Randrianasulu < [email protected]> wrote:
I think something like this patch can be applied to automated builds, where you generally don't look into directories for debug, just want you binary package fast.
I was trying to build CinelerraGG from source in just ~700 Mb compressed btrfs image on Live DVD from Linux Mint 18, 32-bit (from ~early 2016). With total 2Gb of memory for my virtual machine. It worked after I disabled ffmpeg's debug symbols, programs, and few other things in Cinelerra itself.
Feel free to adapt to your needs.
OK, Thanks!
PS: what exactly this file in thirdparty/src does, I can't find reference to it? -rw-r--r-- 32600440 cimg-source.txz
This is the famous greycstoration (spelling?) plugin code.
Ah ... I just deleted it and everything (?) still worked with minimal build. Isn't this file (header) enough for compilation? https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra... ah, i don't have it by default ..:/ there is remark in makefile: https://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra... 172 173 # too costly 174 # findobject \ 175 # greycstoration \ 176 # not finished 177 # denoisemjpeg \ 178 # duplicate 179 # vocoder \ does this mean plugin disabled in default builds? I can try to enable it :}
participants (2)
-
Andrew Randrianasulu -
Phyllis Smith