[FFmpeg-user] how to compile ffmpeg with some arguments in bash script file?

Ferdi Scholten ferdi at sttc-nlp.nl
Wed Jun 15 10:01:38 EEST 2022


my operating system is ubuntu-22.04-desktop-amd64.iso
> bash script file is 'compile.sh'. content of the file is bellow:
> #!/bin/bash
>
> ## set some flags
> DEBUG_FLAG='--extra-cflags="-g -O0" --extra-cxxflags="-g -O0"'
>
> CC="gcc" CXX="g++" LD="ld" AR="ar" CCAS="gcc -c" RANLIB="ranlib"
> STRIP="strip" ./configure $DEBUG_FLAG
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
> when i run it: ./compile.sh, error happen:
> ./configure: 1: eval: Syntax error: Unterminated quoted string
>
>
> What should I do now?
Remove the DEBUG_FLAG and put those parameters directly after the 
./configure command. It is being passed as a single string to 
./configure, not as different parameters.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list