Re: [Ekiga-list] Compiling opal-3.10.7 on Fedora 17 64bit



2012/9/18 Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
On 15/09/12 21:23, Eugen Dedu wrote:
On 15/09/12 15:02, Antonio Trande wrote:
2012/9/15 Eugen Dedu<Eugen Dedu pu-pm univ-fcomte.fr>

On 15/09/12 00:37, Antonio Trande wrote:

2012/9/14 Eugen
Dedu<Eugen Dedu pu-pm univ-**fcomte.fr<Eugen.Dedu@pu-pm.univ-fcomte.fr>


On 14/09/12 10:41, Antonio Trande wrote:

2012/9/14 Antonio Trande<anto trande gmail com>

2012/9/13 Eugen
Dedu<Eugen Dedu pu-pm univ-**f**comte.fr<http://fcomte.fr>
<Eugen.Dedu@pu-pm.**univ-fcomte.fr<Eugen.Dedu@pu-pm.univ-fcomte.fr>>



On 13/09/12 19:05, Antonio Trande wrote:


2012/9/13 Eugen Dedu<Eugen Dedu pu-pm univ-****f**comte.fr<
http://fcomte.fr>

<Eugen.Dedu@pu-pm.**univ-**fcomte.fr<http://univ-fcomte.fr><
Eugen.Dedu@pu-pm.**univ-fcomte.fr<Eugen.Dedu@pu-pm.univ-fcomte.fr>




On 27/08/12 19:45, Antonio Trande wrote:


2012/8/24 Antonio Trande<anto trande gmail com>


2012/8/24 Eugen Dedu<Eugen Dedu pu-pm univ-******f**comte.fr<
http://fcomte.fr>
<Eugen.Dedu@pu-pm.**univ-**fco**mte.fr<http://fcomte.fr><
http://univ-fcomte.fr><
Eugen.Dedu@pu-pm.**univ-**fcomte.fr<http://univ-fcomte.fr><
Eugen.Dedu@pu-pm.**univ-fcomte.fr<Eugen.Dedu@pu-pm.univ-fcomte.fr>







On 24/08/12 12:48, Antonio Trande wrote:



Hi all.


I'm working to compile opal-3.10.7 on my Fedora 17 64bit.
After
*./configure
--disable-silk*, *make* fails with


[CC] h263-1998.cxx

In file included from /usr/include/ffmpeg/libavutil/**
******

**samplefmt.h:22:0,

from /usr/include/ffmpeg/****

libavcodec/avcodec.h:30,
from ../common/ffmpeg.h:48,
from h263-1998.h:52,
from h263-1998.cxx:50:
/usr/include/ffmpeg/libavutil/**********avutil.h:305:5:
error:


expected
identifier
before numeric constant
/usr/include/ffmpeg/libavutil/**********avutil.h:305:5:
error:
expected ‘}’
before
numeric constant
/usr/include/ffmpeg/libavutil/**********avutil.h:305:5:
error:


expected
unqualified-id before numeric constant
/usr/include/ffmpeg/libavutil/**********avutil.h:313:1:
error:


expected

declaration
before ‘}’ token
make[3]: ***
[/home/sagitter/**********SoftwareCompilato/opal-3.10.7/**
********
plugins/../lib_linux_x86_64/**********plugins/h263_ffmpeg/**
h263-***

*

1998.****o]

Error 1

Peter, do you know what is the problem? I tested it with
libav...


With the option *--disable-libavcodec, *make completes
its

work but

ffmpeg codecs are not available.

If i remember properly this issue pops up with the old
release of
Ekiga
too and it was linked to ffmpeg.


Please, i wish understand if this is a issue related to Ekiga
or to

ffmpeg
in Fedora.


Antonio, it could be a mismatch between ffmpeg version and opal.

Do you
use ffmpeg or libav? What version exactly
(/usr/include/libavcodec/***

*version.h)?

Is it the version from Fedora or another one?



Hi Eugen.
I use ffmpeg (v. 0.10..4-2) from Fedora repository.


Indeed, you use version ffmpeg 0.10.4. Could you send the
plugins/config.log file from opal directory?

Also, what gives the command:
grep PICT opal-directory/plugins/plugin-******config.h



$ grep PICT plugin-config.h

/* #undef AV_PICTURE_TYPE_NONE */


Could you confirm that line 305 from /usr/include/ffmpeg/libavutil/**
**avutil.h

is:
305 AV_PICTURE_TYPE_NONE = 0, ///< Undefined
?


I confirm.



If yes, then please do:
- in opal/plugins/video/common, rename ffmpeg directory to ffmpeg2 (so
that it is not found)
- rebuild opal (./configure and make)



See attached.


The problem is the following. Opal in config.log says:
checking if libavutil has AV_PICTURE_TYPE_NONE... no
checking if libavutil has AVPictureType... no

On the other hand, your ffmpeg from Fedora has in avutil.h:
304 enum AVPictureType {

305 AV_PICTURE_TYPE_NONE = 0, ///< Undefined
[...]

So opal configure does not find AV_PICTURE_TYPE_NONE, hence it
defines it,
but afterwards there is collision since it is defined in avutil.h.

I found the problem. configure check for AV_PICTURE_TYPE_NONE in
avcodec.h... Some versions of ffmpeg had it in avcodec.h, and your
version of ffmpeg has it in avutil.h...

However, I do not understand why there was no error on Fedora official
builds.

Let me think how to fix this.

In the meantime, could you do the following and tell me if the compilation works?

In plugin/plugin-config.h, comment out the line containing AV_PICTURE_TYPE_NONE, and do make again.


It doesn't work unfortunately.

...
make[1]: Entering directory `/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/video/H.263-1998'
[CC] h263-1998.cxx
In file included from h263-1998.cxx:47:0:
/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/plugin-config.h:131:1: error: stray ‘##’ in program
In file included from ../common/platform.h:65:0,
                 from ../common/ffmpeg.h:46,
                 from h263-1998.h:52,
                 from h263-1998.cxx:50:
/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/plugin-config.h:131:1: error: stray ‘##’ in program
In file included from h263-1998.cxx:47:0:
/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/plugin-config.h:131:3: error: ‘define’ does not name a type
In file included from /usr/include/ffmpeg/libavutil/avutil.h:328:0,
                 from /usr/include/ffmpeg/libavutil/samplefmt.h:22,
                 from /usr/include/ffmpeg/libavcodec/avcodec.h:30,
                 from ../common/ffmpeg.h:48,
                 from h263-1998.h:52,
                 from h263-1998.cxx:50:
/usr/include/ffmpeg/libavutil/common.h:135:69: error: ‘int8_t’ does not name a type
In file included from ../common/ffmpeg.h:48:0,
                 from h263-1998.h:52,
                 from h263-1998.cxx:50:
/usr/include/ffmpeg/libavcodec/avcodec.h:1112:5: error: ‘int8_t’ does not name a type
In file included from ../common/ffmpeg.h:48:0,
                 from h263-1998.h:52,
                 from h263-1998.cxx:50:
/usr/include/ffmpeg/libavcodec/avcodec.h:1241:5: error: ‘int8_t’ does not name a type
make[1]: *** [/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/../lib_linux_x86_64/plugins/h263_ffmpeg/h263-1998.o] Error 1
make[1]: Leaving directory `/home/sagitter/SoftwareCompilato/opal-3.10.7/plugins/video/H.263-1998'
make: *** [all] Error 2

This is the change done on ' plugin/plugin-config.h' file:

...
/* Filename of the libavcodec library */
#define LIBAVUTIL_LIB_NAME "libavutil.so.51"

#/* Compatibilty with various versions of the libavcodec library */   <-----
##define AV_PICTURE_TYPE_NONE 0                                               <-----

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
 ...

-- 
Antonio Trande
"Fedora Ambassador"
"Fedora italian translation group"
"Blogger"

mail: mailto:sagitter fedoraproject org

Homepage: http://www.fedora-os.org

Sip Address
: sip:sagitter AT ekiga.net
Jabber
:sagitter AT jabber.org
GPG Key: 19E6DF27



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]