jb-alvarado / compile-ffmpeg-osx-linux Goto Github PK
View Code? Open in Web Editor NEWBuild scripts for compiling ffmpeg under OSX / Linux
License: GNU General Public License v3.0
Build scripts for compiling ffmpeg under OSX / Linux
License: GNU General Public License v3.0
Im compiling this code in a clean Ubuntu 16.04 .
Im getting the "gcc cannot create executable file" when compiling ffmpeg.
I disabled all optional libraries.
What can I do?
How do I do this compilation and do I need to download the ffmpeg repository and download the script and run it?
Ubuntu 22.04 , default install
test_ld cc
test_cc
BEGIN /tmp/ffconf.2jZRRZTb/test.c
1 int main(void){ return 0; }
END /tmp/ffconf.2jZRRZTb/test.c
gcc -I/home/XXX/compile-ffmpeg-osx-linux/local/include -fPIC -static-libstdc++ -static-libgcc -I/home/XXX/compile-ffmpeg-osx-linux/local/include -mtune=generic -O2 -static-libstdc++ -static-libgcc -fPIC -march=generic -I/usr/local/cuda/include -c -o /tmp/ffconf.2jZRRZTb/test.o /tmp/ffconf.2jZRRZTb/test.c
cc1: error: 'generic' CPU can be used only for '-mtune=' switch
cc1: error: '-fcf-protection=full' is not supported for this target
C compiler test failed.
Solved by commenting
#EXTRA_CFLAGS="-march=$tune"
Hi,
I'm trying to build a portable version of the ffmpeg binary with decklink support so that I can distribute it on different systems (for personal use of coarse). When I build ffmpeg on macos 10.14, and try to run the compiled binary on macos 10.13, i get a dependency error stating that liblzma is an incompatible version, 8.0.0 is required, while 5.0.0 is provided.
I have set ffmpeg_shared="", so it should build a version that has all static libs included right?
Related, I would like to include sdl2 support, but when compiling the same problem comes up. When running the compiled binary on other systems it states that the sdl2 dylib is missing from the system. I could live without sdl support, so this is not a big issue, but it's probably related.
Kind regards,
Nick
HEAD is now at 947122f libavfilter: Fix fate-source after 072788c46e36a21ca9e8f1e3cc19a1944db5b89c
From https://github.com/FFmpeg/FFmpeg
* branch master -> FETCH_HEAD
Already up to date.
install prefix /root/playout/ffplayout_engine/compile-ffmpeg-osx-linux/local
.......
.......
......
libavdevice/avdevice.c: In function ‘avdevice_configuration’:
./config.h:4:30: error: missing terminating " character
#define FFMPEG_CONFIGURATION "--disable-debug --disable-shared --disable-doc --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avfilter --enable-zlib --enable-pic
^
./config.h:4:30: note: in definition of macro ‘FFMPEG_CONFIGURATION’
#define FFMPEG_CONFIGURATION "--disable-debug --disable-shared --disable-doc --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avfilter --enable-zlib --enable-pic
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavdevice/avdevice.c:44:5: warning: ‘return’ with no value, in function returning non-void
return FFMPEG_CONFIGURATION;
^~~~~~
libavdevice/avdevice.c:42:14: note: declared here
const char * avdevice_configuration(void)
^~~~~~~~~~~~~~~~~~~~~~
ffbuild/common.mak:70: recipe for target 'libavdevice/avdevice.o' failed
make: *** [libavdevice/avdevice.o] Error 1
-------------------------------------------------
build ffmpeg-git failed...
delete the source folder under '/root/playout/ffplayout_engine/compile-ffmpeg-osx-linux/build' and start again,
or if you know there is no dependences hit enter for continue it
first close the batch window, then the shell window
On Ubuntu 22.04 , standard install, rav1e do not compile
Cloning into 'rav1e-git'...
remote: Enumerating objects: 25582, done.
remote: Counting objects: 100% (1717/1717), done.
remote: Compressing objects: 100% (731/731), done.
remote: Total 25582 (delta 1122), reused 1428 (delta 982), pack-reused 23865
Receiving objects: 100% (25582/25582), 16.92 MiB | 22.42 MiB/s, done.
Resolving deltas: 100% (18231/18231), done.
error: no such subcommand: `cinstall`
Did you mean `install`?
-------------------------------------------------
build rav1e-git failed...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.