Skip to content

Commit

Permalink
build: try fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 26, 2024
1 parent 8010d93 commit 45aadb1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
25 changes: 13 additions & 12 deletions ffmpeg/cppbuild-linux-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export AS="nasm"
export CC="gcc -m32 -fPIC -msse2"
export CXX="g++ -m32 -fPIC -msse2"
export LD="g++ -m32 -fPIC"
export LDFLAGS="-m32"
echo ""
echo "--------------------"
Expand All @@ -11,7 +12,7 @@ echo "--------------------"
echo ""
cd zimg-release-$ZIMG_VERSION
autoreconf -iv
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -20,7 +21,7 @@ echo "Building zlib"
echo "--------------------"
echo ""
cd ../$ZLIB
./configure --prefix=$INSTALL_PATH --static
./configure --prefix=$INSTALL_PATH --static CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -29,7 +30,7 @@ echo "Building LAME"
echo "--------------------"
echo ""
cd ../$LAME
./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -38,7 +39,7 @@ echo "Building XML2"
echo "--------------------"
echo ""
cd ../$XML2
./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG
./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -47,23 +48,23 @@ echo "Building speex"
echo "--------------------"
echo ""
cd ../$SPEEX
PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPUS
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPENCORE_AMR
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$VO_AMRWBENC
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPENSSL
./Configure linux-elf -m32 -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib
CC=gcc CXX=g++ LD=g++ ./Configure linux-elf -m32 -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib
make -s -j $MAKEJ
make install_sw
cd ../srt-$LIBSRT_VERSION
Expand All @@ -73,7 +74,7 @@ make install
cd ../openh264-$OPENH264_VERSION
make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar ARCH=x86 USE_ASM=No install-static
cd ../$X264
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../x265-$X265/build/linux
Expand Down Expand Up @@ -108,15 +109,15 @@ make install
# ----
cd ../../../
cd ../libvpx-$VPX_VERSION
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=x86-linux-gcc --as=nasm
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=x86-linux-gcc --as=nasm CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ
make install
cd ../libwebp-$WEBP_VERSION
CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG .
make -j $MAKEJ V=0
make install
cd ../freetype-$FREETYPE_VERSION
./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ
make install
LIBS=
Expand Down
25 changes: 13 additions & 12 deletions ffmpeg/cppbuild-linux-x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ export AS="nasm"
export CC="gcc -m64 -fPIC"
export CXX="g++ -m64 -fPIC"
export LDFLAGS="-m64"
export LD="g++ -m64 -fPIC"
echo ""
echo "--------------------"
echo "Building zimg"
echo "--------------------"
echo ""
cd zimg-release-$ZIMG_VERSION
autoreconf -iv
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -20,7 +21,7 @@ echo "Building zlib"
echo "--------------------"
echo ""
cd ../$ZLIB
./configure --prefix=$INSTALL_PATH --static
./configure --prefix=$INSTALL_PATH --static CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -29,7 +30,7 @@ echo "Building LAME"
echo "--------------------"
echo ""
cd ../$LAME
./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-frontend --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -38,7 +39,7 @@ echo "Building XML2"
echo "--------------------"
echo ""
cd ../$XML2
./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG
./configure --prefix=$INSTALL_PATH $LIBXML_CONFIG CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
echo ""
Expand All @@ -47,23 +48,23 @@ echo "Building speex"
echo "--------------------"
echo ""
cd ../$SPEEX
PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
PKG_CONFIG= ./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPUS
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPENCORE_AMR
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$VO_AMRWBENC
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../$OPENSSL
./Configure linux-elf -m64 -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib
CC=gcc CXX=g++ LD=g++ ./Configure linux-elf -m64 -fPIC no-shared --prefix=$INSTALL_PATH --libdir=lib
make -s -j $MAKEJ
make install_sw
cd ../srt-$LIBSRT_VERSION
Expand All @@ -73,7 +74,7 @@ make install
cd ../openh264-$OPENH264_VERSION
make -j $MAKEJ DESTDIR=./ PREFIX=.. AR=ar ARCH=x86 USE_ASM=No install-static
cd ../$X264
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-opencl CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ V=0
make install
cd ../x265-$X265/build/linux
Expand Down Expand Up @@ -108,15 +109,15 @@ make install
# ----
cd ../../../
cd ../libvpx-$VPX_VERSION
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=x86-linux-gcc --as=nasm
./configure --prefix=$INSTALL_PATH --enable-static --enable-pic --disable-examples --disable-unit-tests --target=x86-linux-gcc --as=nasm CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ
make install
cd ../libwebp-$WEBP_VERSION
CFLAGS="-I$INSTALL_PATH/include/" CXXFLAGS="-I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" $CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $WEBP_CONFIG .
make -j $MAKEJ V=0
make install
cd ../freetype-$FREETYPE_VERSION
./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic
./configure --prefix=$INSTALL_PATH --with-bzip2=no --with-harfbuzz=no --with-png=no --with-brotli=no --enable-static --disable-shared --with-pic CC="$CC" CXX="$CXX" LD="$LD" LDFLAGS="$LDFLAGS"
make -j $MAKEJ
make install
LIBS=
Expand Down

0 comments on commit 45aadb1

Please sign in to comment.