Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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
[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
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
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/
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 =)
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
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
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.
.....
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
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
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 ..
.....
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.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.