Statistics
| Branch: | Revision:

chunker-player / compile_localffmpeg @ a7177cd5

History | View | Annotate | Download (1.92 KB)

1
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 *.o
18

    
19
LOCAL_FFMPEG=./ExternalDependancies/ffmpeg-export-2010-01-04
20
LOCAL_AVCODEC="$LOCAL_FFMPEG/libavcodec"
21
LOCAL_AVDEVICE="$LOCAL_FFMPEG/libavdevice"
22
LOCAL_AVFILTER="$LOCAL_FFMPEG/libavfilter"
23
LOCAL_AVFORMAT="$LOCAL_FFMPEG/libavformat"
24
LOCAL_AVUTIL="$LOCAL_FFMPEG/libavutil"
25
LOCAL_POSTPROC="$LOCAL_FFMPEG/libpostproc"
26
LOCAL_SWSCALE="$LOCAL_FFMPEG/libswscale"
27

    
28

    
29
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"
30

    
31
LOCAL_VIDEO_FLAGS="-lavdevice -lavformat -lavcodec -lavutil -lswscale -lz -lm -lpthread -ldl `sdl-config --libs --cflags` -DHAVE_OPENGL -lbz2 -lmp3lame -lx264"
32

    
33
LOCAL_GRAPES="../../GRAPES"
34
LOCAL_GRAPES_ENV="-I$LOCAL_GRAPES/ul -I$LOCAL_GRAPES/include -L$LOCAL_GRAPES/som"
35
LOCAL_GRAPES_FLAGS="-lsom"
36

    
37
LOCAL_CURL_ENV=""
38
LOCAL_CURL_FLAGS="-lcurl"
39

    
40
LOCAL_MHD="./ExternalDependancies/libmicrohttpd"
41
LOCAL_MHD_ENV="-I$LOCAL_MHD -I$LOCAL_MHD/src/daemon -I$LOCAL_MHD/src/include -L$LOCAL_MHD/src/daemon"
42
LOCAL_MHD_FLAGS="-lmicrohttpd"
43

    
44
LOCAL_ENV="$LOCAL_VIDEO_ENV $LOCAL_GRAPES_ENV $LOCAL_CURL_ENV $LOCAL_MHD_ENV"
45
LOCAL_FLAGS="$LOCAL_VIDEO_FLAGS $LOCAL_GRAPES_FLAGS $LOCAL_CURL_FLAGS $LOCAL_MHD_FLAGS"
46

    
47
echo "USING LOCAL ENVIRONMENT $LOCAL_ENV"
48
echo "USING LOCAL FLAGS $LOCAL_FLAGS"
49

    
50
gcc $LOCAL_ENV chunk_puller.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -g -O0 -o chunker_player
51
gcc $LOCAL_ENV chunk_pusher.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -g -O0 -o chunker_streamer
52

    
53
echo ""
54
echo "done!"