Removed execute bit from files that should not have it.
[gst-davinci.git] / make_tiplugins.sh
blobc61ca35aae2000aeab85add439a9c8689c2ec91b
1 # MVISTA_INSTALL_DIR should point to your Montavista directory installation
2 export MVISTA_INSTALL_DIR=/opt/dvevm/mv_pro_4.0/montavista
4 #FILESYS_DIR should point to NFS shared target root directory
5 export FILESYS_DIR=/home/user/workdir/filesys
7 #Location of DVEVM_PATH to point to DVEVM directory
8 export DVEVM_PATH=/home/user/dvevm_1_20
10 #Location of SED tool in your target root directory
11 export SED_DIR=$FILESYS_DIR/bin
13 #Location of Gstreamer compiled binaries
14 export GSTREAMER_DIR=$FILESYS_DIR/opt/gstreamer
16 #Location of Gstreamer libraries
17 export LD_LIBRARY_PATH=$GSTREAMER_DIR/lib
19 #Location of Gstreamer package config path
20 export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig
22 export PATH=$PATH:$MVISTA_INSTALL_DIR/pro/devkit/arm/v5t_le/bin
24 export TI_PLUGIN_DIR=$PWD
25 echo $TI_PLUGIN_DIR
28 export CE_PACKAGES_PATH=$DVEVM_PATH/codec_engine_1_10_01/packages
29 export XDC_PACKAGES_PATH=$DVEVM_PATH/xdc_2_94/packages
30 export XDAIS_PACKAGES_PATH=$DVEVM_PATH/xdais_5_10/packages
34 echo "Please follow these instructions before running the make script"
35 echo ""
36 echo "#1. Set MVISTA_INSTALL_DIR to point to your Montavista directory installation"
37 echo "#2. Set FILESYS_DIR to point to your NFS shared target filesystem"
38 echo "#3. Set DVEVM_PATH to point to your DVEVM installation directory"
39 echo "#4. Create soft links as per 2 commands below logged in as root/superuser"
40 echo " a) Command: ln -s $MVISTA_INSTALL_DIR /opt/montavista"
41 echo " b) Command: ln -s /bin/sed /opt/montavista/common/bin/sed"
42 echo""
43 echo""
46 export PATH=$PATH:/opt/montavista/common/bin:$CE_PACKAGES_PATH:$XDC_PACKAGES_PATH:$XDAIS_PACKAGES_PATH
47 cp -fr "$TI_PLUGIN_DIR/xdais" "$GSTREAMER_DIR/include"
48 cp -fr "$TI_PLUGIN_DIR/system_files_gstreamer" "$FILESYS_DIR/opt"
50 echo ""
51 echo "Do you want to compile AUDIO Decoder (adecoder package.. (y/n)"
52 read input
53 if [ "$input" = "y" ];
54 then
56 echo "*************************************************"
57 echo "Building adecoder "
58 echo "*************************************************"
61 cd "$TI_PLUGIN_DIR/ti_plugins/adecoder"
62 echo "I am in following directory"
63 echo $PWD
64 echo ""
67 CC=arm_v5t_le-gcc ./configure --build=i686-linux --host=arm-linux --prefix=$GSTREAMER_DIR CFLAGS=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS=-L"$FILESYS_DIR/opt/system_files_gstreamer"
68 make clean
69 make install
71 else
73 echo "You pressed n or some other key... adecoder package is not compiled"
78 echo ""
79 echo "Do you want to compile VIDEO Decoder (gdecoder package.. (y/n)"
80 read input
81 if [ "$input" = "y" ];
82 then
85 echo "*************************************************"
86 echo "Building gdecoder "
87 echo "*************************************************"
89 cd "$TI_PLUGIN_DIR/ti_plugins/gdecoder"
90 echo "I am in following directory"
91 echo $PWD
92 echo ""
94 CC=arm_v5t_le-gcc ./configure --build=i686-linux --host=arm-linux --prefix=$GSTREAMER_DIR CFLAGS=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS=-L"$FILESYS_DIR/opt/system_files_gstreamer"
95 make clean
96 make install
98 else
100 echo "You pressed n or some other key... gdecoder package is not compiled"
104 echo ""
105 echo "Do you want to compile Video Framebuffer Sink (fbvideosink package.. (y/n)"
106 read input
107 if [ "$input" = "y" ];
108 then
110 echo "*************************************************"
111 echo "Building fbvideosink "
112 echo "*************************************************"
114 cd "$TI_PLUGIN_DIR/ti_plugins/fbvideosink"
115 echo "I am in following directory"
116 echo $PWD
117 echo ""
119 CC=arm_v5t_le-gcc ./configure --build=i686-linux --host=arm-linux --prefix=$GSTREAMER_DIR CFLAGS=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS=-L"$FILESYS_DIR/opt/system_files_gstreamer"
120 make clean
121 make install
124 else
126 echo "You pressed n or some other key... fbvideosink package is not compiled"
130 echo ""
131 echo "Do you want to compile ASF Demuxer (tiasfplugin package.. (y/n)"
132 read input
133 if [ "$input" = "y" ];
134 then
136 echo "*************************************************"
137 echo "Building tiasfplugin "
138 echo "*************************************************"
140 cd "$TI_PLUGIN_DIR/ti_plugins/tiasfplugin"
141 echo "I am in following directory"
142 echo $PWD
143 echo ""
145 CC=arm_v5t_le-gcc ./configure --build=i686-linux --host=arm-linux --prefix=$GSTREAMER_DIR LIBS=-L"$FILESYS_DIR/opt/system_files_gstreamer"
146 make clean
147 make install
149 else
151 echo "You pressed n or some other key... tiasfplugin package is not compiled"
155 echo ""
156 echo "Do you want to compile AVI Demuxer (tiaviplugin package.. (y/n)"
157 read input
158 if [ "$input" = "y" ];
159 then
161 echo "*************************************************"
162 echo "Building tiaviplugin "
163 echo "*************************************************"
165 cd "$TI_PLUGIN_DIR/ti_plugins/tiaviplugin"
166 echo "I am in following directory"
167 echo $PWD
168 echo ""
170 CC=arm_v5t_le-gcc ./configure --build=i686-linux --host=arm-linux --prefix=$GSTREAMER_DIR LIBS=-L"$FILESYS_DIR/opt/system_files_gstreamer"
171 make clean
172 make install
174 else
176 echo "You pressed n or some other key... tiaviplugin package is not compiled"
180 echo "*************************************************"
181 echo "ALL TI PLUGINS BUILT SUCCESSFULLY "
182 echo "*************************************************"