Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xine-lib compile error [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Tue Jul 08, 2008 10:45 am    Post subject: xine-lib compile error [solved] Reply with quote

Hi!

xine-lib fails to compile here on ~amd64. Did not find a bug or a forum post about this. Anyone could give me a hint why its not working?

build error:
Code:

pp.c:33:27: error: postprocess.h: No such file or directory
pp.c:59: error: ‘PP_QUALITY_MAX’ undeclared here (not in a function)
pp.c:79: error: expected specifier-qualifier-list before ‘pp_context_t’
pp.c: In function ‘set_parameters’:
pp.c:90: error: ‘post_plugin_pp_t’ has no member named ‘lock’
pp.c:90: warning: passing argument 1 of ‘pthread_mutex_lock’ from incompatible pointer type
pp.c:94: error: ‘post_plugin_pp_t’ has no member named ‘lock’
pp.c:94: warning: passing argument 1 of ‘pthread_mutex_unlock’ from incompatible pointer type
pp.c: In function ‘get_help’:
pp.c:127: error: ‘pp_help’ undeclared (first use in this function)
pp.c:127: error: (Each undeclared identifier is reported only once
pp.c:127: error: for each function it appears in.)
pp.c:127: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘struct xine_post_api_parameter_t *’
pp.c: In function ‘pp_open_plugin’:
pp.c:197: error: ‘PP_FORMAT_420’ undeclared (first use in this function)
pp.c:197: warning: assignment makes integer from pointer without a cast
pp.c:199: error: ‘PP_CPU_CAPS_MMX’ undeclared (first use in this function)
pp.c:199: error: invalid operands to binary | (have ‘int’ and ‘struct xine_post_api_parameter_t *’)
pp.c:201: error: ‘PP_CPU_CAPS_MMX2’ undeclared (first use in this function)
pp.c:201: error: invalid operands to binary | (have ‘int’ and ‘struct xine_post_api_parameter_t *’)
pp.c:203: error: ‘PP_CPU_CAPS_3DNOW’ undeclared (first use in this function)
pp.c:203: error: invalid operands to binary | (have ‘int’ and ‘struct xine_post_api_parameter_t *’)
pp.c:205: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:206: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:208: error: ‘post_plugin_pp_t’ has no member named ‘lock’
pp.c:208: warning: passing argument 1 of ‘pthread_mutex_init’ from incompatible pointer type
pp.c: In function ‘pp_dispose’:
pp.c:251: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:252: error: implicit declaration of function ‘pp_free_mode’
pp.c:252: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:253: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:255: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:256: error: implicit declaration of function ‘pp_free_context’
pp.c:256: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:257: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c: In function ‘pp_draw’:
pp.c:305: error: ‘post_plugin_pp_t’ has no member named ‘lock’
pp.c:305: warning: passing argument 1 of ‘pthread_mutex_lock’ from incompatible pointer type
pp.c:307: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:315: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:316: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:318: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:318: error: implicit declaration of function ‘pp_get_context’
pp.c:320: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:321: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:322: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:326: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:327: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:327: error: implicit declaration of function ‘pp_get_mode_by_name_and_quality’
pp.c:330: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:331: error: implicit declaration of function ‘pp_postprocess’
pp.c:335: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
pp.c:335: error: ‘post_plugin_pp_t’ has no member named ‘pp_context’
pp.c:338: error: ‘post_plugin_pp_t’ has no member named ‘lock’
pp.c:338: warning: passing argument 1 of ‘pthread_mutex_unlock’ from incompatible pointer type
pp.c:340: error: ‘post_plugin_pp_t’ has no member named ‘pp_mode’
make[3]: *** [xineplug_post_planar_la-pp.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/xine-lib-1.1.13/work/xine-lib-1.1.13/src/post/planar'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/xine-lib-1.1.13/work/xine-lib-1.1.13/src/post'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/xine-lib-1.1.13/work/xine-lib-1.1.13/src'
make: *** [all-recursive] Error 1
  [31;01m* [0m
  [31;01m* [0m ERROR: media-libs/xine-lib-1.1.13 failed.
  [31;01m* [0m Call stack:
  [31;01m* [0m               ebuild.sh, line   49:  Called src_compile
  [31;01m* [0m             environment, line 2718:  Called die
  [31;01m* [0m The specific snippet of code:
  [31;01m* [0m       emake || die "emake failed."
  [31;01m* [0m  The die message:
  [31;01m* [0m   emake failed.


build.log:
http://big.homeftp.net/~pholthau/xine-lib.build.log

emerge --info:
http://big.homeftp.net/~pholthau/info.txt
_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]


Last edited by pholthau on Thu Jul 10, 2008 9:06 am; edited 1 time in total
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 10:58 am    Post subject: Reply with quote

Looks like that header is part of ffmpeg. What version of ffmpeg do you have installed?
Code:
# locate postprocess.h
/usr/include/postproc/postprocess.h
# equery b /usr/include/postproc/postprocess.h
[ Searching for file(s) /usr/include/postproc/postprocess.h in *... ]
media-video/ffmpeg-0.4.9_p20070616 (/usr/include/postproc/postprocess.h)
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Tue Jul 08, 2008 11:09 am    Post subject: Reply with quote

Thanks for your reply. My current ffmpeg version:
Code:

thrall pholthau # equery list ffmpeg
[ Searching for package 'ffmpeg' in all categories among: ]
 * installed packages
[I--] [ ~] media-plugins/gst-plugins-ffmpeg-0.10.4-r1 (0.10)
[I--] [ ~] media-video/ffmpeg-0.4.9_p20080326 (0)

thrall pholthau # slocate postprocess.h
/usr/include/libpostproc/postprocess.h

thrall pholthau # equery belongs /usr/include/libpostproc/postprocess.h
[ Searching for file(s) /usr/include/libpostproc/postprocess.h in *... ]
media-video/ffmpeg-0.4.9_p20080326 (/usr/include/libpostproc/postprocess.h)

_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 11:49 am    Post subject: Reply with quote

What do you get from this command?
Code:
# pkg-config --cflags libpostproc
-I/usr/include/postproc

I suspect you'll need to modify /usr/lib/pkgconfig/libpostproc.pc and change the Cflags line to:
Code:
Cflags: -I${includedir} -I${includedir}/libpostproc

If so, you should file a bug report.


Last edited by Nerevar on Tue Jul 08, 2008 11:54 am; edited 1 time in total
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Tue Jul 08, 2008 11:54 am    Post subject: Reply with quote

Oh no! It's empty..

Code:

thrall ~ # pkg-config --cflags libpostproc

thrall ~ #

_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 11:56 am    Post subject: Reply with quote

That's not good. Does the file /usr/lib/pkgconfig/libpostproc.pc exist on your system? If not, try re-installing ffmpeg.
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Tue Jul 08, 2008 12:05 pm    Post subject: Reply with quote

I downgraded ffmpeg to some p2007. Now its returning the right includes...
Code:

thrall ffmpeg # pkg-config --cflags libpostproc
-I/usr/include/postproc
thrall ffmpeg #

Probably xine will compile now. But I wonder why no one else got this error!

EDIT: It worked. Thanks for your help. I'm now trying to upgrade ffmpeg once again. Maybe the .pc file will be installed now...

EDIT2: It does not work with the newer ffmpeg. There is a file called /usr/lib/pkgconfig/libpostproc.pc with the following contents:
Code:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include

Name: libpostproc
Description: FFmpeg post processing library
Version: 51.1.0
Requires:
Conflicts:
Libs: -L${libdir} -lpostproc
Cflags: -I${includedir}

pkg-config is returning nothing again. The file /usr/include/libpostproc/postprocess.h exists.
_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 12:18 pm    Post subject: Reply with quote

Change the Cflags line to what I posted above and it should work. Please file a bug report against ffmpeg and post the link below. Most likely it hasn't been seen yet because that version of xine-lib just went stable. Thanks!
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Tue Jul 08, 2008 12:29 pm    Post subject: Reply with quote

The same happens with libavcodec. :(

EDIT: Posted Bug https://bugs.gentoo.org/show_bug.cgi?id=231157 xine-libs compiles with corrected paths.
_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]


Last edited by pholthau on Tue Jul 08, 2008 12:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Jul 08, 2008 12:38 pm    Post subject: Reply with quote

I'd use the stable version of ffmpeg then as it sounds like that unstable version isn't good. I'm guessing all of these will be bad:
Code:
# pkg-config --list-all | grep -i ffmpeg
libavutil                   libavutil - FFmpeg utility library
libswscale                  libswscale - FFmpeg image rescaling library
libffmpegthumbnailer        libffmpegthumbnailer - Generates thumbnails for movie files
libavcodec                  libavcodec - FFmpeg codec library
libpostproc                 libpostproc - FFmpeg post processing library
libavformat                 libavformat - FFmpeg container format library
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Thu Jul 10, 2008 9:06 am    Post subject: Reply with quote

oops there was already another bug filed about this issue: https://bugs.gentoo.org/show_bug.cgi?id=223701
however, upstream has accepted a patch that resolves the problem.
_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum