Statistics
| Branch: | Revision:

chunker-player / compile_localffmpeg.stdio @ 70ee24d2

History | View | Annotate | Download (1.97 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

    
20
LOCAL_LIBEVENT=~/local/git/GRAPES/libevent-2-build/64bit/
21

    
22
LOCAL_FFMPEG=ffmpeg
23
LOCAL_AVCODEC="$LOCAL_FFMPEG/libavcodec"
24
LOCAL_AVDEVICE="$LOCAL_FFMPEG/libavdevice"
25
LOCAL_AVFILTER="$LOCAL_FFMPEG/libavfilter"
26
LOCAL_AVFORMAT="$LOCAL_FFMPEG/libavformat"
27
LOCAL_AVUTIL="$LOCAL_FFMPEG/libavutil"
28
LOCAL_POSTPROC="$LOCAL_FFMPEG/libpostproc"
29
LOCAL_SWSCALE="$LOCAL_FFMPEG/libswscale"
30

    
31

    
32
LOCAL_VIDEO_ENV="-I$LOCAL_LIBEVENT/include -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

    
34
LOCAL_VIDEO_FLAGS="-lavdevice -lavformat -lavcodec -lavutil -lswscale -lz -lm -lpthread -ldl `sdl-config --libs --cflags` -DHAVE_OPENGL -lbz2 -lmp3lame"
35
# -lx264"
36

    
37
LOCAL_GRAPES="GRAPES"
38
LOCAL_GRAPES_ENV="-I$LOCAL_GRAPES/ul -I$LOCAL_GRAPES/include -L$LOCAL_GRAPES/som"
39
LOCAL_GRAPES_FLAGS="-lsom"
40

    
41
LOCAL_CURL_ENV=""
42
LOCAL_CURL_FLAGS="-lcurl"
43

    
44
LOCAL_MHD="./libmicrohttpd"
45
LOCAL_MHD_ENV="-I$LOCAL_MHD -I$LOCAL_MHD/src/daemon -I$LOCAL_MHD/src/include -L$LOCAL_MHD/src/daemon -L$LOCAL_MHD/src/daemon/.libs/"
46
LOCAL_MHD_FLAGS="-lmicrohttpd"
47

    
48
LOCAL_ENV="$LOCAL_VIDEO_ENV $LOCAL_GRAPES_ENV $LOCAL_CURL_ENV $LOCAL_MHD_ENV"
49
LOCAL_FLAGS="$LOCAL_VIDEO_FLAGS $LOCAL_GRAPES_FLAGS $LOCAL_CURL_FLAGS $LOCAL_MHD_FLAGS"
50

    
51
echo "USING LOCAL ENVIRONMENT $LOCAL_ENV"
52
echo "USING LOCAL FLAGS $LOCAL_FLAGS"
53

    
54
gcc $LOCAL_ENV chunk_puller.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -g -O0 -o chunker_player
55
gcc $LOCAL_ENV chunk_pusher.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -g -O0 -o chunker_streamer
56

    
57
echo ""
58
echo "done!"