Commit 49dea2a0 authored by Jan Gerber's avatar Jan Gerber
Browse files

more helpful error message

parent a54a0354
......@@ -103,6 +103,9 @@ def CheckPKG(context, name):
context.Result( ret )
return ret
def print_xiph_install():
print 'To install the required packages via apt-get, run this:\n\tsudo apt-get install libtheora-dev libvorbis-dev libogg-dev'
env.PrependENVPath ('PATH', os.environ['PATH'])
conf = Configure(env, custom_tests = {
......@@ -116,6 +119,7 @@ if env["build_ffmpeg"]:
else:
TryAction("./build_ffmpeg.sh")
if not env.GetOption('clean'):
pkgconfig_version='0.15.0'
if not conf.CheckPKGConfig(pkgconfig_version):
......@@ -124,25 +128,30 @@ if not env.GetOption('clean'):
if not conf.CheckPKG("ogg >= 1.1"):
print 'ogg >= 1.1 missing'
print_xiph_install()
Exit(1)
if not conf.CheckPKG("vorbis"):
print 'vorbis missing'
Exit(1)
print_xiph_install()
Exit(1)
if not conf.CheckPKG("vorbisenc"):
print 'vorbisenc missing'
print_xiph_install()
Exit(1)
if not conf.CheckPKG("theoraenc >= 1.1.0"):
print 'theoraenc >= 1.1.0 missing'
print_xiph_install()
Exit(1)
XIPH_LIBS="ogg >= 1.1 vorbis vorbisenc theoraenc >= 1.1.0"
if not conf.CheckPKG(XIPH_LIBS):
print 'some xiph libs are missing, ffmpeg2theora depends on %s' % XIPH_LIBS
Exit(1)
print_xiph_install()
Exit(1)
ParsePKGConfig(env, XIPH_LIBS)
FFMPEG_LIBS=[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment