<div dir="ltr"><div><div>Hi<br><br>Sorry for the big massage<br><br>I am trying to compile vlc for android in RHEL 6.4 (Santiago). I am following the instructions given in this page <a href="https://wiki.videolan.org/AndroidCompile">https://wiki.videolan.org/AndroidCompile</a>. I am getting some errors.<br><br>First is when I build this, I get error in git.<br><br>error: unknown switch `B'. refer <a href="http://txt.do/6tjh">http://txt.do/6tjh</a> for log<br><br>I changed the  git checkout -B android ${TESTED_HASH} to  git checkout -b android ${TESTED_HASH}. Then this error does not come<br><br>Then when I run sh compile.sh, I get following errors (refer <a href="http://tny.cz/bb552912">http://tny.cz/bb552912</a> I have removed some part of log which had code to download packages like automake, protobuf, ragel etc)<br><br>rmdir: failed to remove /root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype/config': No such file or directory<br><br>make[1]: [install] Error 1 (ignored)<br><br>rmdir: failed to remove `/root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype': No such file or directory<br>make[1]: [install] Error 1 (ignored)<br><br>Then if I again run sh compile.sh, weird things happen. I don't get this error again, but it builds some library and then stops.<br><br>First it build libdvdcss and then stops (refer <a href="http://tny.cz/5f3ab58f">http://tny.cz/5f3ab58f</a>)<br>It ends like<br><br>Libraries have been installed in:<br>   /root/Documents/android/android/vlc/contrib/arm-linux-androideabi/lib<br><br>If you ever happen to want to link against installed libraries<br>in a given directory, LIBDIR, you must either use libtool, and<br>specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:<br><br>   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution<br><br>   - add LIBDIR to the `LD_RUN_PATH' environment variable<br>     during linking<br>   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag<br>   - have your system administrator add LIBDIR to `/etc/ld.so.conf'<br><br>----------------------------------------------------------------------<br>make[2]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss'<br>make[1]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss'<br>touch .dvdcss<br><br><br>Then each time I run "sh compile.sh" it build one more library and then stops.<br>it has build following libraries<br><br>1. libopenjpeg  (<a href="http://tny.cz/86236e8b">http://tny.cz/86236e8b</a>)<br>2. libgpg-error   <a href="http://tny.cz/26c5626b">http://tny.cz/26c5626b</a>)<br>3. ffmpeg         (<a href="http://tny.cz/1f05aa0f">http://tny.cz/1f05aa0f</a>)<br>4. gmp         <br>5. libgcrypt   <br>6. iconv <br>7. nettle   <br>8. libjpeg   <br><br>Finally I get an following error and I am not able to do any after that (<a href="http://tny.cz/ed7798ea">http://tny.cz/ed7798ea</a>)<br><br>autopoint: * The AM_GNU_GETTEXT_VERSION declaration in your <a href="http://configure.ac">configure.ac</a>               file requires the infrastructure from gettext-0.18 but this version               is older. Please upgrade to gettext-0.18 or newer.<br><br>autopoint: * Stop.<br><br>autoreconf: autopoint failed with exit status: 1<br><br><a href="http://configure.in:20">configure.in:20</a>: error: possibly undefined macro: AM_PROG_LIBTOOL<br><br>      If this token and others are legitimate, please use m4_pattern_allow.<br>      See the Autoconf documentation.<br><br>autoreconf: /root/Documents/android/android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1<br>make: *[.ogg] Error 1<br><br>I am not able to find gettext package with version > .18 for RHEL 6.4. Maximum available is .17 which is installed<br><br>1. Is not this weird. Should not doing "sh compile.sh" build all libraries and I should not have to do this again and again.<br>2. Also Is RHEL 6.4 (Santiago) compatible for building vlc android<br>2. Any help for these errors<br><br></div>Regards<br></div>Pankaj Bansal<br><div><div><br></div></div></div>