forked from islem19/C-VideoPlayer-BasedSDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme
29 lines (22 loc) · 743 Bytes
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
working audio in zip file
compile cmd
gcc -o videoplayer videoplayer.c -lswresample -lavformat -lavcodec -lswscale -lavutil -lSDL -lz -lm
Use libswresampler in gcc: -D\_\_RESAMPLER\_\_ -D\_\_LIBAVRESAMPLE\_\_
videoplayer.c
works just fine
check #start of islem patch
SDL:
https://stackoverflow.com/questions/10772875/how-to-build-sdl-libraries-for-android
SDL error:
include <SDL/SDL.h>
include <SDL/...>
Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= main.c
LOCAL_CFLAGS := -D__RESAMPLER__ -D__LIBSWRESAMPLE__
LOCAL_CFLAGS := -lz -lm
LOCAL_LDLIBS := -lz -lm
LOCAL_MODULE := vidplayer
LOCAL_SHARED_LIBRARIES := libswresample libavformat libavcodec libswscale libavutil SDL2
include $(BUILD_EXECUTABLE)