Page 1 of 1

GoldenDict compiling without avformat (ffmpeg)

PostPosted: Fri Jun 14, 2013 5:28 pm
by embar
Hi,

i would like to create GoldenDict package for openSUSE in OBS, but I can not use ffmpeg because of license. How can I compile GoldenDict with dissabled avformat (ffmpeg)?

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 7:27 am
by Tvangeste
Hi,

I don't think that it is possible to build without ffmpeg (without modifying the sources).

As far as I know, ffmpeg is (L)GPL and should not be of any problem license-wise. Why do you think it is unacceptable?

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 9:48 am
by embar
I can not found ffmpeg and libffmpeg-devel in open source repository of openSUSE – they are only in PackMan repository, witch can not be used in build.opensuse.org

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 11:05 am
by Tvangeste
Here's what is needed for Ubuntu, maybe it will be of any help to you?

Code: Select all
libao-dev libavutil-dev libavformat-dev

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 12:20 pm
by embar
In openSUSE I found in default repository:
Code: Select all
libao-devel libavutil-devel


There is no such „libavformat-devel“ package. According this and this post, headers of libavformat is in „libffmpeg-devel“

But „libffmpeg-devel“ is in additional PackMan repository, that contain proprietary software.
And „libffmpeg-devel“ also exist in VLC repository.
But not in open source repositories of openSUSE.

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 1:03 pm
by Tvangeste
Ok, got it.

I've file an issue here: https://github.com/goldendict/goldendict/issues/356

This is rather unfortunate. Even if we are to provide a way to build without ffmpeg, then GD won't be able to play sounds via internal player, you'd be required to use external players like vlc.

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 1:32 pm
by embar
But I found ffmpeg package in OBS home:fabio_s project.
Now I successced to build GoldenDict from git :)
You can found this RPM package here: http://download.opensuse.org/repositori ... umbleweed/

Re: GoldenDict compiling without avformat (ffmpeg)

PostPosted: Sat Jun 15, 2013 1:43 pm
by Tvangeste
Excellent!!!

What concerns me the most is that if ffmpeg by OpenSUSE definition is not 100% open-source then GoldenDict will never be part of the default installation.