mirror of https://github.com/sipwise/jitsi.git
Provides (1) a README on the subject of configuring the dependencies of the FFMPEG JNI library and (2) a Makefile to build the FFMPEG JNI library on Windows.
parent
78d321e505
commit
c5ae58636d
@ -0,0 +1,17 @@
|
||||
FFMPEG_HOME=/Users/Lubomir/src/ffmpeg
|
||||
JAVA_HOME=C:/PROGRA~1/jdk
|
||||
X264_HOME=/Users/Lubomir/src/x264-snapshot-20090105-2245
|
||||
|
||||
TARGET=../../../lib/native/windows/ffmpeg.dll
|
||||
|
||||
CC=gcc
|
||||
CPPFLAGS=-DJNI_IMPLEMENTATION \
|
||||
-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/win32 \
|
||||
-I$(FFMPEG_HOME)
|
||||
LDFLAGS=-Wl,--kill-at -shared
|
||||
LIBS=-L$(FFMPEG_HOME)/libavformat -L$(FFMPEG_HOME)/libavcodec -L$(FFMPEG_HOME)/libavutil \
|
||||
-L$(X264_HOME) \
|
||||
-lavformat -lavcodec -lavutil -lx264
|
||||
|
||||
$(TARGET): net_java_sip_communicator_impl_media_codec_video_FFMPEG.c net_java_sip_communicator_impl_media_codec_video_FFMPEG.h
|
||||
$(CC) $(CPPFLAGS) $< $(LDFLAGS) -o $@ $(LIBS)
|
||||
@ -0,0 +1,27 @@
|
||||
1. x264-snapshot-20090105-2245
|
||||
|
||||
- Windows
|
||||
|
||||
./configure --disable-pthread
|
||||
|
||||
- Linux, Mac OS X
|
||||
|
||||
./configure --enable-pic
|
||||
|
||||
2. ffmpeg-r16801
|
||||
|
||||
- Windows
|
||||
|
||||
./configure \
|
||||
--target-os=mingw32 \
|
||||
--disable-mmx --enable-memalign-hack \
|
||||
--enable-static --disable-shared --shlibdir=. \
|
||||
--disable-encoders --disable-decoders --disable-muxers --disable-demuxers \
|
||||
--disable-parsers --disable-bsfs --disable-protocols --disable-devices \
|
||||
--disable-network \
|
||||
--enable-libx264 --enable-gpl --enable-parser=h264 --enable-encoder=libx264 \
|
||||
--enable-decoder=h264 --enable-muxer=h264 --enable-demuxer=h264 \
|
||||
--extra-ldflags=-L$X264_HOME --extra-cflags=-I$X264_HOME \
|
||||
--disable-debug \
|
||||
--disable-ffserver --disable-ffplay --disable-ffmpeg \
|
||||
--disable-pthreads --enable-w32threads
|
||||
Loading…
Reference in new issue