XviD is an MPEG-4 compliant video CODEC.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz
Download SHA256 Sum: abbdcbd39555691dd1c9b4d08f0a031376a3b211652c0d8b3b8aa9be1303ce2d
Download MD5 sum: 5c6c19324608ac491485dbb27d4da517
Download size: 3,619.6 KB
Estimated disk space required: 6,404.1 KB
Estimated build time: less than 0.5 SBU
![[Note]](../images/note.png)
This package tarball expands to xvidcore, not the expected xvidcore-1.3.7.
First, fix a problem when building with gcc-15:
sed -i '/typedef int bool;/d' src/encoder.h
Prepare XviD by running the following commands:
cd build/generic sed -i 's/^LN_S=@LN_S@/& -f -v/' platform.inc.in ./configure --prefix=/usr
Now Install the package, as the root user:
make
This package does not come with a test suite.
Now Install the package, as the root user:
sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile make install chmod -v 755 /usr/lib/libxvidcore.so.4.3
To Install exaples and documentation as the root user issue:
install -v -m755 -d /usr/share/doc/xvidcore-1.3.7/examples
install -v -m644 ../../doc/* /usr/share/doc/xvidcore-1.3.7
install -v -m644 ../../examples/* \
/usr/share/doc/xvidcore-1.3.7/examplessed -i 's/^LN_S=@LN_S@/& -f -v/' platform.inc.in: Fix error during make install if reinstalling or upgrading.
sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile: This command disables installing the static library.