Statistics
| Branch: | Revision:

chunker-player / compile_localffmpeg.static @ 63c21257

History | View | Annotate | Download (3.43 KB)

1 2ea35695 GiuseppeTropea
echo ""
2
echo "-------------------------------"
3
echo "Napa-Wine project"
4
echo "Diego Reforgiato, Giuseppe Tropea"
5
echo "Email: {diegoref,giuseppe.tropea}@lightcomm.it"
6
echo "-------------------------------"
7
echo ""
8
echo "------------"
9
echo "Compiling..."
10
11
12
rm recondechunk.mpg
13
rm original.mpg
14
15
rm chunker_streamer
16
rm chunker_player
17
rm chunker_streamer_NH
18
rm chunker_player_NH
19
rm *.o
20
21 63c21257 GiuseppeTropea
#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
33 2ea35695 GiuseppeTropea
LOCAL_AVCODEC="$LOCAL_FFMPEG/libavcodec"
34
LOCAL_AVDEVICE="$LOCAL_FFMPEG/libavdevice"
35
LOCAL_AVFILTER="$LOCAL_FFMPEG/libavfilter"
36
LOCAL_AVFORMAT="$LOCAL_FFMPEG/libavformat"
37
LOCAL_AVUTIL="$LOCAL_FFMPEG/libavutil"
38
LOCAL_POSTPROC="$LOCAL_FFMPEG/libpostproc"
39
LOCAL_SWSCALE="$LOCAL_FFMPEG/libswscale"
40
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"
42
43 9ebbb2ab GiuseppeTropea
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"
44
45 63c21257 GiuseppeTropea
#SDL config here
46 9ebbb2ab GiuseppeTropea
#LOCAL_SDL_ENV="-I$LOCAL_SDL/include"
47
#LOCAL_SDL_FLAGS="/usr/local/lib/libSDL.a /usr/lib/libdl.a"
48
#LOCAL_SDL_FLAGS="`sdl-config --libs --cflags`"
49 63c21257 GiuseppeTropea
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"
50 2ea35695 GiuseppeTropea
51 63c21257 GiuseppeTropea
#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"
55 2ea35695 GiuseppeTropea
56 63c21257 GiuseppeTropea
#CURL config here
57 2ea35695 GiuseppeTropea
LOCAL_CURL_ENV=""
58
LOCAL_CURL_FLAGS="-lcurl"
59
60 63c21257 GiuseppeTropea
#microhttpd config here
61 2ea35695 GiuseppeTropea
LOCAL_MHD_ENV="-I$LOCAL_MHD -I$LOCAL_MHD/src/daemon -I$LOCAL_MHD/src/include -L$LOCAL_MHD/src/daemon"
62
#LOCAL_MHD_FLAGS="-lmicrohttpd"
63
LOCAL_MHD_FLAGS="$LOCAL_MHD/src/daemon/.libs/libmicrohttpd.a"
64
65 63c21257 GiuseppeTropea
#confuse here
66 2ea35695 GiuseppeTropea
LOCAL_CONFUSE_FLAGS="/usr/lib/libconfuse.a"
67
68 9ebbb2ab GiuseppeTropea
LOCAL_ENV="$LOCAL_VIDEO_ENV $LOCAL_SDL_ENV $LOCAL_GRAPES_ENV $LOCAL_CURL_ENV $LOCAL_MHD_ENV"
69
LOCAL_FLAGS="$LOCAL_VIDEO_FLAGS $LOCAL_SDL_FLAGS $LOCAL_GRAPES_FLAGS $LOCAL_CURL_FLAGS $LOCAL_MHD_FLAGS $LOCAL_CONFUSE_FLAGS"
70 2ea35695 GiuseppeTropea
71
echo "USING LOCAL ENVIRONMENT $LOCAL_ENV"
72
echo "USING LOCAL FLAGS $LOCAL_FLAGS"
73
74
gcc $LOCAL_ENV chunk_puller.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -pthread -g -O0 -o chunker_player
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
76
77 63c21257 GiuseppeTropea
#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
79 2ea35695 GiuseppeTropea
80
echo ""
81
echo "done!"