Ok, Managed to get the contrib packages compiled and VLC to compile and run, but not without some modifications.
So for future reference, here's what I had to do:
Compiling contribs:
-----------------------
For some reason, pkgconfig wasn't picking up PKG_CONFIG_PATH, so I had to set the following environment variables: (i'll skip the error messages which prompted me to set these)
Code: Select all
$ export PNG_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include/libpng16
$ export PNG_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lpng16"
$ export FREETYPE_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include/freetype2
$ export FREETYPE_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lfreetype -lz"
$ export LIBXML2_CFLAGS="-I/build/vlc/contrib/x86_64-w64-mingw32/include/libxml2 -DLIBXML_STATIC"
$ export LIBXML2_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lxml2"
$ export FRIBIDI_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include/fribidi
$ export FRIBIDI_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lfribidi"
$ export FONTCONFIG_CFLAGS="-I/build/vlc/contrib/x86_64-w64-mingw32/include -I/build/vlc/contrib/x86_64-w64-mingw32/include/freetype2 -I/build/vlc/contrib/x86_64-w64-mingw32/include/libxml2 -DLIBXML_STATIC"
$ export FONTCONFIG_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lfontconfig"
$ export FT2_CFLAGS=$FREETYPE_CFLAGS
$ export FT2_LIBS=$FREETYPE_LIBS
$ export CSS_CFLAGS="-I/build/vlc/contrib/x86_64-w64-mingw32/include -I/build/vlc/contrib/x86_64-w64-mingw32/include/dvdcss"
$ export CSS_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -ldvdcss"
$ export DVDREAD_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include
$ export DVDREAD_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -ldvdread -ldvdcss"
$ export NETTLE_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include
$ export NETTLE_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lnettle"
$ export HOGWEED_CFLAGS="-I/build/vlc/contrib/x86_64-w64-mingw32/include"
$ export HOGWEED_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lhogweed"
$ export EBML_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include
$ export EBML_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lebml"
$ export ORC_CFLAGS=-I/build/vlc/contrib/x86_64-w64-mingw32/include/orc-0.4
$ export ORC_LIBS="-L/build/vlc/contrib/x86_64-w64-mingw32/lib -lorc-0.4"
Can't help but thinking that pkgconfig isn't set up correctly. This can't be necessary to set all of these, when other things seem to find the .pc files fine. Any suggestions?
Also had to install the following:
Code: Select all
$ sudo apt/get install ragel
$ sudo apt-get install ant
$ sudo apt-get install default-jre
$ sudo apt-get install default-jdk
$ sudo apt-get install protobuf-compiler
from https://groups.google.com/forum/#!topic/android-ndk/rQlkSq94fuA
$ sudo apt-get install g++
Compiling VLC:
------------------
in vlc/modules/access/Makefiles.am
- append ${CSS_LIBS) to the line: libdvdread_plugin_la_LIBADD = $(DVDREAD_LIBS)
- append -lgpg-error -lz to the line: libsftp_plug_la_LIBADD = ${SFTP_LIBS}
in vlc/modules/access_output/Makefile.am
- append -lvorbis -ltheora -lshout -logg -lvorbis -ltheora -lshout -logg to the line: libaccess_output_shout_plugin_la_LIBADD = $(SHOUT_LIBS) $(SOCKET_LIBS)
* actually, this didn't work so reconfigured with --disable-shout
in vlc/modules/codec/Makefile.am
- append -lfreetype to line: liblibass_plugin_la_LIBADD = $(LIBASS_LIBS) $(LIBS_libass) $(LIBS_freetype)
* actually, this didn't work so reconfigured with --disable-libass
had trouble compiling with my installed version protobuf (which had to install to get protobuf config to compile), so just to reconfigured with --disable-chromecast
After all of this, vlc compiled and I was able to run!
Now having trouble getting my own module to compile, but I'll make another post for that.