Statistics
| Branch: | Revision:

chunker-player / compile_localffmpeg @ 1e69ae95

History | View | Annotate | Download (2.34 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
rm ingestion
12
rm ingestion_CLI
13
rm dechunkization
14
rm dechunkizationVideoQueue
15
rm dechunkizationVideoQueue_CLI
16
rm player
17
rm recondechunk.mpg
18
rm original.mpg
19

    
20
rm chunker_streamer
21
rm chunker_player
22
rm *.o
23

    
24
LOCAL_FFMPEG=./ffmpeg-export-2010-01-04
25
LOCAL_AVCODEC="$LOCAL_FFMPEG/libavcodec"
26
LOCAL_AVDEVICE="$LOCAL_FFMPEG/libavdevice"
27
LOCAL_AVFILTER="$LOCAL_FFMPEG/libavfilter"
28
LOCAL_AVFORMAT="$LOCAL_FFMPEG/libavformat"
29
LOCAL_AVUTIL="$LOCAL_FFMPEG/libavutil"
30
LOCAL_POSTPROC="$LOCAL_FFMPEG/libpostproc"
31
LOCAL_SWSCALE="$LOCAL_FFMPEG/libswscale"
32

    
33

    
34
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"
35

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

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

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

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

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

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

    
55
#gcc $LOCAL_ENV ingestion.c $LOCAL_FLAGS -o ingestion
56
#gcc $LOCAL_ENV ingestion_CLI.c $LOCAL_FLAGS -o ingestion_CLI
57
#gcc $LOCAL_ENV dechunkization.c $LOCAL_FLAGS -o dechunkization
58
#gcc $LOCAL_ENV dechunkizationVideoQueue.c $LOCAL_FLAGS -o dechunkizationVideoQueue
59
#gcc $LOCAL_ENV dechunkizationVideoQueue_CLI.c $LOCAL_FLAGS -o dechunkizationVideoQueue_CLI
60
gcc $LOCAL_ENV chunk_puller.c chunker_player.c external_chunk_transcoding.c $LOCAL_FLAGS -g -O0 -o chunker_player
61
gcc $LOCAL_ENV chunk_pusher.c chunker_metadata.c external_chunk_transcoding.c chunker_streamer.c $LOCAL_FLAGS -g -O0 -o chunker_streamer
62

    
63
echo ""
64
echo "done!"