Giter Club home page Giter Club logo

Comments (5)

rboy1 avatar rboy1 commented on September 24, 2024

Here is ht eoutput

configure:3412: $? = 0
configure:3401: i686-w64-mingw32-gcc -v >&5
Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/libexec/gcc/i686-w64-mingw32/4.8.0/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../source/gcc-4.8.0/configure --build=x86_64-unknown-linux-gnu --target=i686-w64-mingw32 --disable-shared --enable-static --disable-nls --disable-multilib --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686 --with-sysroot=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686 --with-mpc=/home/mcebuddy/Software/ffmpeg/sandbox/packages/gcc/packages/mpc/mpc-1.0.1-x86_64 --with-mpfr=/home/mcebuddy/Software/ffmpeg/sandbox/packages/gcc/packages/mpfr/mpfr-3.1.2-x86_64 --with-gmp=/home/mcebuddy/Software/ffmpeg/sandbox/packages/gcc/packages/gmp/gmp-5.1.1-x86_64 --with-host-libstdcxx='-lstdc++ ' --with-cloog=/home/mcebuddy/Software/ffmpeg/sandbox/packages/gcc/packages/cloog/cloog-0.18.0-x86_64 --with-isl=/home/mcebuddy/Software/ffmpeg/sandbox/packages/gcc/packages/isl/isl-0.11.1-x86_64 --enable-languages=c,c++ --enable-threads=win32 --enable-fully-dynamic-string
Thread model: win32
gcc version 4.8.0 (GCC)
configure:3412: $? = 0
configure:3401: i686-w64-mingw32-gcc -V >&5
i686-w64-mingw32-gcc: error: unrecognized command line option '-V'
i686-w64-mingw32-gcc: fatal error: no input files
compilation terminated.
configure:3412: $? = 1
configure:3401: i686-w64-mingw32-gcc -qversion >&5
i686-w64-mingw32-gcc: error: unrecognized command line option '-qversion'
i686-w64-mingw32-gcc: fatal error: no input files
compilation terminated.
configure:3412: $? = 1
configure:3432: checking whether the C compiler works
configure:3454: i686-w64-mingw32-gcc '-DLIBTWOLAME_STATIC' conftest.c >&5
i686-w64-mingw32-gcc: error: '-DLIBTWOLAME_STATIC': No such file or directory
configure:3458: $? = 1
configure:3496: result: no

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

try without the two quotes around the '-DLIBTWOLAME' ?

from ffmpeg-windows-build-helpers.

rboy1 avatar rboy1 commented on September 24, 2024

Thanks for your repsonse. I was able to isolate th problem with the help for another user. I will post back the entire changes to the script that finally made it work. Hopefully you can integrate those changes in your master script for other users.

Just a quick note in your script the ffmpeg configure parameter is enclosed in double quotes, so once cannot use double quotes again so this will not work
--extra-cflags="-DPTW32_STATIC_LIB -DLIBTWOLAME_STATIC"

and
--extra-cflags='-DPTW32_STATIC_LIB -DLIBTWOLAME_STATIC' is why the issue exists (single quotes don't work)

instead it should be
--extra-cflags=-DPTW32_STATIC_LIB --extra-cflags=-DLIBTWOLAME_STATIC

split them separately

from ffmpeg-windows-build-helpers.

rboy1 avatar rboy1 commented on September 24, 2024

First, roger you're a genuis. This build script is amazing.

Okay here goes to everyone who's trying to adding twolame to your build script (maybe you can add this in your script and folks can enable as required)

  1. Create a separate function to download, build and install twolame

build_twolame() {
#generic_download_and_install http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz libsndfile-1.0.25
generic_download_and_install http://sourceforge.net/projects/twolame/files/twolame/0.3.13/twolame-0.3.13.tar.gz/download twolame-0.3.13 "CPPFLAGS=-DLIBTWOLAME_STATIC"
}

  1. Change the ffmpeg configure flags to add support for libtwolame. Add the following options in build_ffmpeg() under config_options:
    --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC

So the final configure options for build_ffmpeg() will look like:

config_options="--arch=$arch --target-os=mingw32 --cross-prefix=$cross_prefix --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --prefix=$mingw_w64_x86_64_prefix $extra_configure_opts " # other possibilities: --enable-w32threads --enable-libflite

  1. Now add the function build_twolame to the list of build commands in build_dependencies(). So the list would look like
    ...
    build_libass # needs freetype, needs fribidi, needs fontconfig
    build_libopenjpeg
    build_twolame
    if [[ "$non_free" = "y" ]]; then
    build_fdk_aac

    build_faac # not included for now, too poor quality :)

    build_libaacplus # if you use it, conflicts with other AAC encoders , so disabled :)

fi
...

Hope this helps. I'm still facing issues with libzvbi which I'll post in a separate thread.

from ffmpeg-windows-build-helpers.

rdp avatar rdp commented on September 24, 2024

Nice! Attempted to add twolame in
f6d07144a5f4d1ec9eb70c3bc86052f644b010ecthank
you for your contribution.

On Mon, Sep 30, 2013 at 12:44 PM, rboy1 [email protected] wrote:

First, roger you're a genuis. This build script is amazing.

Okay here goes to everyone who's trying to adding twolame to your build
script (maybe you can add this in your script and folks can enable as
required)

  1. Create a separate function to download, build and install twolame

build_twolame() {
#generic_download_and_install
http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gzlibsndfile-1.0.25
generic_download_and_install
http://sourceforge.net/projects/twolame/files/twolame/0.3.13/twolame-0.3.13.tar.gz/downloadtwolame-0.3.13 "CPPFLAGS=-DLIBTWOLAME_STATIC"
}

  1. Change the ffmpeg configure flags to add support for libtwolame.
    Add the following options in build_ffmpeg() under config_options:
    --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC

So the final configure options for build_ffmpeg() will look like:

config_options="--arch=$arch --target-os=mingw32
--cross-prefix=$cross_prefix --pkg-config=pkg-config --enable-gpl
--enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame
--enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis
--enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls
--enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads
--enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
--enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx
--enable-libilbc --enable-iconv --enable-libtwolame
--extra-cflags=-DLIBTWOLAME_STATIC --prefix=$mingw_w64_x86_64_prefix
$extra_configure_opts " # other possibilities: --enable-w32threads
--enable-libflite

  1. Now add the function build_twolame to the list of build commands in
    build_dependencies(). So the list would look like ... build_libass # needs
    freetype, needs fribidi, needs fontconfig build_libopenjpeg build_twolame
    if [[ "$non_free" = "y" ]]; then build_fdk_aac # build_faac # not included
    for now, too poor quality :) # build_libaacplus # if you use it, conflicts
    with other AAC encoders , so disabled :) fi ...

Hope this helps. I'm still facing issues with libzvbi which I'll post in a
separate thread.


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-25391412
.

from ffmpeg-windows-build-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.