LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2009, 04:48 AM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
xmms2 build errors?


Code:
[129/318] * cc : src/plugins/avcodec/avcodec.c -> _build_/default/src/plugins/avcodec/avcodec.os
../src/plugins/avcodec/avcodec.c:27:21: error: avcodec.h: No such file or directory
this is while running ./waf build

thanks =D
 
Old 03-22-2009, 06:21 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by ninja master View Post
Code:
[129/318] * cc : src/plugins/avcodec/avcodec.c -> _build_/default/src/plugins/avcodec/avcodec.os
../src/plugins/avcodec/avcodec.c:27:21: error: avcodec.h: No such file or directory
this is while running ./waf build

thanks =D
You need to install the development package for libavcodec.
cheers,
jdk
 
Old 03-22-2009, 07:23 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Except that no development packages exist for LFS or Slackware.

'(lib)avcodec' is part of "ffmpeg" and depending on the version
you decide to build, 'avcodec.h' will be located in either
///include/ffmpeg/avcodec.h or ///include/(lib)avcodec/avcodec.h

So a possible solution if it is not found there :
# ln -s <location>/*.h /usr/local/include/

.....
 
Old 03-22-2009, 02:07 PM   #4
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
yes i was seeing that it was part of ffmpeg, but i was not messing with it since i have 2 versions of ffmpeg for ardour and really dont feel like breaking my ardour2 before asking =)

Code:
mkultra [ ~/Desktop/xmms2-0.5DrLecter ]$ locate avcodec.h
/usr/include/libavcodec/avcodec.h
this is what i find on my pc

this may also not help things
Code:
Checking for config-tool ffmpeg-config (cached)    : not found

Last edited by ninja master; 03-22-2009 at 02:15 PM.
 
Old 03-22-2009, 05:33 PM   #5
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
Code:
ln -s /usr/include/libavcodec/avcodec.h /usr/local/include/avcodec.h
is what i issued, now the build error is a bit shorter, yet still halted at 129

Code:
[129/318] * cc : src/plugins/avcodec/avcodec.c -> _build_/default/src/plugins/avcodec/avcodec.os
../src/plugins/avcodec/avcodec.c: In function 'xmms_avcodec_init':
../src/plugins/avcodec/avcodec.c:169: error: 'AVCodecContext' has no member named 'bits_per_sample'
../src/plugins/avcodec/avcodec.c: In function 'xmms_avcodec_read':
../src/plugins/avcodec/avcodec.c:246: warning: implicit declaration of function 'avcodec_decode_audio'
Compilation failed
 
Old 03-22-2009, 05:41 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
This is an answer to post # 4

No, 'ffmpeg-config' is not important .....

try : ./waf configure ... and get :
"Configuration finished successfully; project is now ready to build."
And have a look in the text above that line :
"Optional configuration:" and "Plugins configuration:"
to check, if the options, you want, are included.
.....

Last edited by knudfl; 03-22-2009 at 05:43 PM.
 
Old 03-22-2009, 06:09 PM   #7
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
Code:
mkultra [ ~/Desktop/xmms2-0.5DrLecter ]$ ./waf configure --prefix=/usr
Checking for program g++                : ok /usr/bin/g++ 
Checking for program cpp                : ok /usr/bin/cpp 
Checking for program ar                 : ok /usr/bin/ar 
Checking for program ranlib             : ok /usr/bin/ranlib 
Checking for compiler could create programs : ok  
Checking for compiler could create shared libs : ok  
Checking for compiler could create static libs : ok  
Checking for flags -Wall                       : ok  
Checking for flags -O2                         : ok  
Checking for flags -g -DDEBUG                  : ok  
Checking for flags -g3 -O0 -DDEBUG             : ok  
Checking for program gcc                       : ok /usr/bin/gcc 
Checking for program ar                        : ok /usr/bin/ar 
Checking for program ranlib                    : ok /usr/bin/ranlib 
Checking for program cpp                       : ok /usr/bin/cpp 
Checking for compiler could create programs    : ok  
Checking for compiler could create shared libs : ok  
Checking for compiler could create static libs : ok  
Checking for flags -Wall                       : ok  
Checking for flags -O2                         : ok  
Checking for flags -g -DDEBUG                  : ok  
Checking for flags -g3 -O0 -DDEBUG             : ok  
Checking for program windres                   : not found 
Checking for git commit id                     : ok b63ec5a270cfde0ae3d59c9b89d860b8650e430f 
Checking for uncommitted changes               : not found 
Checking for platform code for posix           : ok  
Checking for package glib-2.0 >= 2.8.0 (cached)  : ok  
Checking for package speex (cached)              : ok  
Checking for library m (cached)                  : ok  
Checking for package libxml-2.0 (cached)         : ok  
Checking for header sys/soundcard.h (cached)     : ok  
Checking for library ossaudio (cached)           : not found 
Checking for package ao (cached)                 : ok  
Checking for package vorbisfile (cached)         : ok  
Checking for library m (cached)                  : ok  
Checking for function fstatat (cached)           : ok  
Checking for package libcurl (cached)            : ok  
Checking for package neuros-cooler-media (cached)  : not found 
Checking for header libsmbclient.h (cached)        : ok  
Checking for library smbclient (cached)            : ok  
Checking for package avahi-glib (cached)           : ok  
Checking for package avahi-client (cached)         : ok  
Checking for config-tool ffmpeg-config (cached)    : not found 
Checking for package libavcodec (cached)           : ok  
Checking for package libcdio_cdda (cached)         : ok  
Checking for package libdiscid (cached)            : ok  
Checking for package openssl (cached)              : ok  
Checking for package shout (cached)                : ok  
Checking for package ogg (cached)                  : ok  
Checking for package vorbisenc (cached)            : ok  
Checking for html plugin                           : disabled (broken) 
Checking for package libsidplay2 (cached)          : not found 
Checking for package libcurl (cached)              : ok  
Checking for package gio-2.0 (cached)              : ok  
Checking for package alsa (cached)                 : ok  
Checking for header AudioUnit/AudioUnit.h (cached) : not found 
Checking for header mpcdec/mpcdec.h (cached)       : ok  
Checking for library mpcdec (cached)               : ok  
Checking for package libpulse (cached)             : ok  
Checking for package mad (cached)                  : ok  
Checking for package mms (cached)                  : not found 
Checking for package libmms (cached)               : ok  
Checking for library mac (cached)                  : not found 
Checking for header FLAC/all.h (cached)            : ok  
Checking for library FLAC (cached)                 : ok  
Checking for package libcurl (cached)              : ok  
Checking for library m (cached)                    : ok  
Checking for package libxml-2.0 (cached)           : ok  
Checking for package libofa (cached)               : not found 
Checking for header faad.h (cached)                : ok  
Checking for library faad (cached)                 : ok  
Checking for library m (cached)                    : ok  
Checking for header windows.h (cached)             : not found 
Checking for package fftw3f (cached)               : ok  
Checking for package samplerate (cached)           : ok  
Checking for package modplug (cached)              : not found 
Checking for package libmodplug (cached)           : ok  
Checking for package jack (cached)                 : ok  
Checking for program perl                          : ok /usr/bin/perl 
Checking for perl 5.7.3                            : ok 5.8.8 
Checking for package ecore (cached)                : not found 
Checking for header boost/signal.hpp (cached)      : ok  
Checking for library boost_signals (cached)        : ok  
Checking for program python                        : ok /usr/bin/python 
Checking for Python version                        : 2.5.2 
Checking for library python2.5 (cached)            : ok  
Checking for header Python.h (cached)              : ok  
Checking for program pyrexc                        : ok /usr/bin/pyrexc 
Checking for package gamin (cached)                : ok  
Checking for package avahi-client (cached)         : ok  
Checking for package avahi-glib (cached)           : ok  
Checking for header dns_sd.h (cached)              : not found 
Checking for program ruby                          : ok /usr/bin/ruby 
Checking for ruby version > 1.8                    : ok 1.8.6 
Checking for ruby header file                      : ok  
Checking for function rb_protect_inspect (cached)  : ok  
Checking for package gmodule-2.0 >= 2.6.0 (cached) : ok  
Checking for package gthread-2.0 >= 2.6.0 (cached) : ok  
Checking for package sqlite3 >= 0.0 (cached)       : ok  
Checking for function sin (cached)                 : ok  
Checking for header sys/vfs.h (cached)             : ok /usr/include/ 

Default output plugin:  alsa 

Optional configuration:
======================
 Enabled: pixmaps, cli, xmmsclient++, medialib-updater, launcher, perl, python, xmmsclient++-glib, et, avahi, ruby 
 Disabled: xmmsclient-ecore, xmmsclient-cf, dns_sd 

Plugins configuration:
======================
 Enabled: speex, equalizer, nulstripper, xspf, oss, ao, vorbis, mp4, diskwrite, file, curl, null, normalize, samba, daap, avcodec, cdda, airplay, gme, ices, cue, lastfm, gvfs, alsa, xml, id3v2, pls, musepack, pulse, mad, asx, mms, wave, asf, flac, lastfmeta, karaoke, rss, faad, m3u, replaygain, icymetaint, vocoder, modplug, jack 
 Disabled: coreaudio, ofa, nms, sun, waveout, mac, html, sid 
Configuration finished successfully; project is now ready to build. 
mkultra [ ~/Desktop/xmms2-0.5DrLecter ]$ ./waf build                  
[129/318] * cc : src/plugins/avcodec/avcodec.c -> _build_/default/src/plugins/avcodec/avcodec.os
../src/plugins/avcodec/avcodec.c: In function 'xmms_avcodec_init':
../src/plugins/avcodec/avcodec.c:169: error: 'AVCodecContext' has no member named 'bits_per_sample'
../src/plugins/avcodec/avcodec.c: In function 'xmms_avcodec_read':
../src/plugins/avcodec/avcodec.c:246: warning: implicit declaration of function 'avcodec_decode_audio'
Compilation failed
this is my full output
 
Old 03-22-2009, 06:17 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Answer to post # 5

Using 'xmms2-0.5DrLecter' and 'ffmpeg-0.4.9-4.pre1.14875'
on "PCLinuxOS 2009.1" builds with no errors.
And all 'libs' I could find for options were included.

( I had to link /usr/include/libavcodec/*.h to /usr/local/include/ )

Same thing with other applications : Not any version
of ffmpeg will work.
.....

So which versions are used ? Linux, version .. xmms2 .. gcc .. ffmpeg ..
.....

Last edited by knudfl; 03-22-2009 at 06:23 PM.
 
Old 03-22-2009, 07:53 PM   #9
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
Code:
mkultra [ ~/Desktop/xmms2-0.5DrLecter ]$ ffmpeg --version
FFmpeg version SVN-r15952, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr --mandir=/usr/man --enable-shared --disable-debug --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-pthreads --enable-libamr-nb --enable-libamr-wb --arch=i686
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52. 3. 0 / 52. 3. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Nov 29 2008 14:35:53, gcc: 4.2.3
ffmpeg: missing argument for option '--version'
maybe that its a svn build rather than an official package its causing problems.
 
Old 03-23-2009, 11:08 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
'xmms2' will build against 'libavcodec.so.51'
( I used 'libavcodec.so.51.69.0' )

You could try with this package
http://repository.slacky.eu/slackwar...mpeg/20070925/
> > = ffmpeg-20070925-i686-1sl.tgz from "slacky.eu"
providing 'libavcodec.so.51.44.0' .

Or convert the version from 'PCLInuxOS-2009.1' with rpm2tgz
= 'libffmpeg51-devel-0.4.9-4.pre1.14875.1pclos2007.i586.rpm'
+ 'libffmpeg51-0.4.9-4.pre1.14875.1pclos2007.i586.rpm'
( http://rpm.pbone.net/index.php3 )

Both packages can of course be repacked to a different
location, not to overwrite your current ffmpeg.
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Build errors with X.org 6.9 sw67 Linux - Software 0 01-03-2006 12:57 PM
wxpython build errors bmfan Linux - Software 1 11-21-2005 08:01 AM
Skencil build errors drewblay Linux - Software 3 04-15-2005 06:32 AM
Build Errors. sethgeekx86 Slackware 3 04-01-2004 07:47 PM
Crazy @$$ build errors Twiggy794 Red Hat 1 09-26-2003 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration