Revision 63c21257 compile_localffmpeg.static

View differences:

compile_localffmpeg.static
18 18
rm chunker_player_NH
19 19
rm *.o
20 20

  
21
LOCAL_FFMPEG=./ExternalDependancies/ffmpeg-export-2010-01-04
21
#YOUR config starts here
22
EXT_DEPS=./ExternalDependancies
23
LOCAL_GRAPES=../Streamers-build/Streamers/GRAPES
24
LOCAL_ABS_SDL=/mnt/hgfs/triplo/dipartimento/napawine/napasoftwareSVN/trunk/Applications/StreamerPlayerChunker/ExternalDependancies/SDL-1.2.14/my_SDL_deploy
25

  
26
LOCAL_FFMPEG=$EXT_DEPS/ffmpeg-export-2010-01-04
27
LOCAL_X264=$EXT_DEPS/x264
28
LOCAL_MHD=$EXT_DEPS/libmicrohttpd
29
#YOUR config ends here
30

  
31

  
32
#default FFMPEG STUFF here
22 33
LOCAL_AVCODEC="$LOCAL_FFMPEG/libavcodec"
23 34
LOCAL_AVDEVICE="$LOCAL_FFMPEG/libavdevice"
24 35
LOCAL_AVFILTER="$LOCAL_FFMPEG/libavfilter"
......
27 38
LOCAL_POSTPROC="$LOCAL_FFMPEG/libpostproc"
28 39
LOCAL_SWSCALE="$LOCAL_FFMPEG/libswscale"
29 40

  
30
LOCAL_X264=./ExternalDependancies/x264
31

  
32 41
LOCAL_VIDEO_ENV="-I$LOCAL_FFMPEG -L$LOCAL_AVCODEC -L$LOCAL_AVDEVICE -L$LOCAL_AVFILTER -L$LOCAL_AVFORMAT -L$LOCAL_AVUTIL -L$LOCAL_POSTPROC -L$LOCAL_SWSCALE -L$LOCAL_X264 -Wl,--warn-common -Wl,--as-needed -Wl,-Bsymbolic"
33 42

  
34 43
LOCAL_VIDEO_FLAGS="$LOCAL_AVDEVICE/libavdevice.a $LOCAL_AVFORMAT/libavformat.a $LOCAL_AVCODEC/libavcodec.a $LOCAL_AVUTIL/libavutil.a $LOCAL_SWSCALE/libswscale.a -lz -lm -lpthread -ldl -DHAVE_OPENGL /usr/lib/libbz2.a /usr/lib/libmp3lame.a $LOCAL_X264/libx264.a"
35 44

  
36
#LOCAL_SDL="./ExternalDependancies/SDL-1.2.14/my_SDL_deploy"
45
#SDL config here
37 46
#LOCAL_SDL_ENV="-I$LOCAL_SDL/include"
38 47
#LOCAL_SDL_FLAGS="/usr/local/lib/libSDL.a /usr/lib/libdl.a"
39 48
#LOCAL_SDL_FLAGS="`sdl-config --libs --cflags`"
40
LOCAL_SDL_FLAGS="-L/home/triplo/napawine/napasoftwareSVN/trunk/Applications/StreamerPlayerChunker/ExternalDependancies/SDL-1.2.14/my_SDL_deploy/lib -Wl,-rpath,/home/triplo/napawine/napasoftwareSVN/trunk/Applications/StreamerPlayerChunker/ExternalDependancies/SDL-1.2.14/my_SDL_deploy/lib /home/triplo/napawine/napasoftwareSVN/trunk/Applications/StreamerPlayerChunker/ExternalDependancies/SDL-1.2.14/my_SDL_deploy/lib/libSDL.a -lpthread -lm -ldl -lpthread -I/home/triplo/napawine/napasoftwareSVN/trunk/Applications/StreamerPlayerChunker/ExternalDependancies/SDL-1.2.14/my_SDL_deploy/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
41

  
49
LOCAL_SDL_FLAGS="-L$LOCAL_ABS_SDL/lib -Wl,-rpath,$LOCAL_ABS_SDL/lib $LOCAL_ABS_SDL/lib/libSDL.a -lpthread -lm -ldl -lpthread -I$LOCAL_ABS_SDL/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
42 50

  
43
LOCAL_GRAPES="../../GRAPES"
44
LOCAL_GRAPES_ENV="-I$LOCAL_GRAPES/ul -I$LOCAL_GRAPES/include -L$LOCAL_GRAPES/som -L$LOCAL_GRAPES/ml"
45
LOCAL_GRAPES_FLAGS="$LOCAL_GRAPES/som/libsom.a -lml -levent"
51
#GRAPES config here
52
#LOCAL_GRAPES_ENV="-I$LOCAL_GRAPES/ul -I$LOCAL_GRAPES/include -L$LOCAL_GRAPES/som -L$LOCAL_GRAPES/ml"
53
LOCAL_GRAPES_ENV="-I$LOCAL_GRAPES/../NAPA/ul -I$LOCAL_GRAPES/include"
54
LOCAL_GRAPES_FLAGS="$LOCAL_GRAPES/som/libgrapes.a"
46 55

  
56
#CURL config here
47 57
LOCAL_CURL_ENV=""
48 58
LOCAL_CURL_FLAGS="-lcurl"
49 59

  
50
LOCAL_MHD="./ExternalDependancies/libmicrohttpd"
60
#microhttpd config here
51 61
LOCAL_MHD_ENV="-I$LOCAL_MHD -I$LOCAL_MHD/src/daemon -I$LOCAL_MHD/src/include -L$LOCAL_MHD/src/daemon"
52 62
#LOCAL_MHD_FLAGS="-lmicrohttpd"
53 63
LOCAL_MHD_FLAGS="$LOCAL_MHD/src/daemon/.libs/libmicrohttpd.a"
54 64

  
65
#confuse here
55 66
LOCAL_CONFUSE_FLAGS="/usr/lib/libconfuse.a"
56 67

  
57 68
LOCAL_ENV="$LOCAL_VIDEO_ENV $LOCAL_SDL_ENV $LOCAL_GRAPES_ENV $LOCAL_CURL_ENV $LOCAL_MHD_ENV"
......
63 74
gcc $LOCAL_ENV chunk_puller.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_player
64 75
gcc $LOCAL_ENV -UNHIO chunk_pusher.c chunk_pusher_curl.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_streamer
65 76

  
66
gcc $LOCAL_ENV $LOCAL_GRAPES/som/net_helper-ml.o chunk_puller_nh.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_player_NH
67
gcc $LOCAL_ENV -DNHIO $LOCAL_GRAPES/som/net_helper-ml.o chunk_pusher.c chunk_pusher_nh.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_streamer_NH
77
#gcc $LOCAL_ENV $LOCAL_GRAPES/som/net_helper-ml.o chunk_puller_nh.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_player_NH
78
#gcc $LOCAL_ENV -DNHIO $LOCAL_GRAPES/som/net_helper-ml.o chunk_pusher.c chunk_pusher_nh.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_streamer_NH
68 79

  
69 80
echo ""
70 81
echo "done!"

Also available in: Unified diff