I have been having a lot of trouble compiling to enable the SnapShot functionality on Android. I have been referring to two forum posts https://forum.videolan.org/viewtopic.ph ... ot#p413287, and https://forum.videolan.org/viewtopic.php?f=32&t=122963. From what I can gather from these two posts, I should be able to take a snapshot by adding --enable-encoder=png to /vlc/contrib/src/ffmpeg/rules.mak and then enabling the sout module in configure.sh.
So far I have been unable to successfully compile with these parameters. I am having a few issues. Firstly, I don't have a file called configure.sh, or if I do I can't find it. I do have a file called configure.ac and I have tried removing --disable-sout from this file. This didn't work so I undid my changes, did a make clean, and then I found the list of VLC configuration parameters within compile-libvlc.sh so I removed --disable-sout from there. Still no success, and I also tried changing it to --enable-sout. I have deleted and re-cloned my vlc directory a few seperate times, and now I have reverted my changes and compilation still doesn't finish.
I get the same error every time, this is the relevant parts of the console output:
make[4]: Entering directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
CXX stream_out/chromecast/libstream_out_chromecast_plugin_la-cast.lo
CCLD libclone_plugin.la
CCLD libwall_plugin.la
In file included from ../../include/vlc_common.h:38:0,
from ../../modules/stream_out/chromecast/cast.cpp:40:
../../modules/stream_out/chromecast/cast.cpp: In function 'int Open(vlc_object_t*)':
../../include/vlc_config.h:46:35: error: 'INT64_C' was not declared in this scope
#define CLOCK_FREQ INT64_C(1000000)
^
../../modules/stream_out/chromecast/cast.cpp:288:44: note: in expansion of macro 'CLOCK_FREQ'
const mtime_t deadline = mdate() + 6 * CLOCK_FREQ;
^
make[4]: *** [stream_out/chromecast/libstream_out_chromecast_plugin_la-cast.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/android/android/vlc/build-android-arm-linux-androideabi'
make: *** [all] Error 2
vlc: make failed
Can anyone give me some insight?
Also note that before attempting these changes I was able to successfully build the application.
EDIT: I did a fresh pull of the project to start from scratch, made my changes and now I see the following error:
make[3]: Entering directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[2]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
make[1]: Leaving directory `/home/seniordesign/Documents/android/vlc/contrib/contrib-android-arm-linux-androideabi/lame'
touch .lame
contribs: make failed