-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathSConstruct
More file actions
10 lines (9 loc) · 806 Bytes
/
SConstruct
File metadata and controls
10 lines (9 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
# Compile ffmpeg-example-bin
# Because FFmpeg 4.0 Depricates AVResample you have to change __LIBAVRESAMPLE__
# to __LIBSWRESAMPLE__ to make this compile
env = Environment(CPPPATH = ['.'], CCFLAGS='-Wall -Werror -std=c99 -fno-strict-aliasing -I/usr/include/ffmpeg -g -D__LIBSWRESAMPLE__ -std=c99')
# env = Environment(CPPPATH = ['.'], CCFLAGS='-Wall -Werror -std=c99 -fno-strict-aliasing -I/usr/include/ffmpeg -g -D__LIBAVRESAMPLE__ -std=c99')
#env.Program(target = "ffmpeg-example-bin", LIBS=["avresample" ,"avcodec", "avformat", "avutil", "m"],
# source = ["example1.c", "example2.c", "example3.c", "example4.c", "main.c"])
env.Program(target = "ffmpeg-example-bin", LIBS=["swresample" ,"avcodec", "avformat", "avutil", "m"],
source = ["example1.c", "example2.c", "example3.c", "example4.c", "main.c"])