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.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Rep:
error compiling transcode
Since I can't find any packages to install Transcode on Ubuntu, I'm compiling it myself.
First I installed everything that it needed according to the dependencies.
I've read the README and the INSTALL file.
I did ./configure which ended nicely with a last overview saying all's well.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
Quote:
Originally posted by foo_bar_foo we need the begining of the error output not the end
If you incist:
Code:
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x31d): In function `dts_decode_frame':
: undefined reference to `dts_frame'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x372): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x39a): In function `dts_decode_frame':
: undefined reference to `dts_block'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x3da): In function `dts_decode_frame':
: undefined reference to `dts_samples'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x45f): In function `dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x4e5): In function `dts_decode_init':
: undefined reference to `dts_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x19): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_info_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x46): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_encode_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x5d): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_analysis_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x75): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_block_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x7d): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x95): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_add_tag'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0xb6): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_analysis_headerout'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x15a): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_clear'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x1d5): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_buffer'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x21c): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_wrote'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x231): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_blockout'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x24d): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x255): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_bitrate_addblock'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x261): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_bitrate_flushpacket'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x415): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_analysis_wrote'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x423): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_block_clear'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x42b): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_dsp_clear'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x433): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_info_clear'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x47a): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_info_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x48b): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_comment_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x4dc): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_synthesis_headerin'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x506): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_synthesis_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x518): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_block_init'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x59f): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x5c9): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_pcmout'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x689): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_read'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x6aa): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_blockin'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x6cf): In function `oggvorbis_decode_close':
: undefined reference to `vorbis_info_clear'
/usr/lib/libavcodec.a(oggvorbis.o)(.text+0x6d7): In function `oggvorbis_decode_close':
: undefined reference to `vorbis_comment_clear'
collect2: ld returned 1 exit status
make[3]: *** [tcdecode] Error 1
make[3]: Leaving directory `/tmp/transcode-0.6.14/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/transcode-0.6.14/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/transcode-0.6.14'
make: *** [all] Error 2
This is the part from where I think it gives errors, I can't find a make.log or such to get it from.
Strange thing is, in the overview of Configure it said it wouldn't use OggVorbis, so why does it seem to try and use OggVorbis?
i think the problem is in your build of FFmpeg
did you do that yourself ?
you have a static FFmpeg archive there
try the switch --enable-shared
and --enable-pthreads
on FFmpeg
might just be that
and of course you might need vorbis
as for why it's looking for things you asked it not to include -- it's just a build screwup
sometimes you just have to go with it
developers are mostly trying to include support for stuff and don't check to see or bother to make it work if you leave it out.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
Quote:
Originally posted by foo_bar_foo i think the problem is in your build of FFmpeg
did you do that yourself ?
Nope, installed it with apt, it's version 3:0.cvs20050121-1ubuntu1 to be precise..)
Also I've got libavcodec-dev installed, and all the other dependencies listed here.
The INSTALL file says it needs both libavcodec.a and libavcodec.so , and I found only libavcodec.a present on my system..
So I guess I have to compile libavcodec/ffmpeg myself instead?
The INSTALL also says "A package of some kind that includes libavcodec.so and the headers will do as well.", but Google can't find that for me so I guess the default Ubuntu package of ffmpeg just won't do..
Quote:
and of course you might need vorbis
Yup, but looking at the dependencies I've met, which contains Ogg and Vorbis packages, that shouldn't be a problem, but that might be related to the ffmpeg thing, I'll look at the configure options too at the next try.
Quote:
as for why it's looking for things you asked it not to include -- it's just a build screwup
sometimes you just have to go with it
developers are mostly trying to include support for stuff and don't check to see or bother to make it work if you leave it out.
Lazy bastards, won't even build a working Debian/Ubuntu package either, sjeesh..
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
well, the compile of ffmpeg gives me a liba52 error.
Code:
gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/nico/ffmpeg'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o liba52/parse.o liba52/parse.c
gcc -O3 -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I'/home/nico/ffmpeg'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o liba52/crc.o liba52/crc.c
liba52/crc.c:26:23: ../common.h: No such file or directory
liba52/crc.c:28: error: syntax error before "crc_lut"
liba52/crc.c:28: warning: type defaults to `int' in declaration of `crc_lut'
liba52/crc.c:62: warning: data definition has no type or storage class
liba52/crc.c:64: error: syntax error before "a52_crc16_block"
liba52/crc.c:64: error: syntax error before '*' token
liba52/crc.c:65: warning: return type defaults to `int'
liba52/crc.c: In function `a52_crc16_block':
liba52/crc.c:66: error: `uint32_t' undeclared (first use in this function)
liba52/crc.c:66: error: (Each undeclared identifier is reported only once
liba52/crc.c:66: error: for each function it appears in.)
liba52/crc.c:66: error: syntax error before "i"
liba52/crc.c:67: error: `uint16_t' undeclared (first use in this function)
liba52/crc.c:69: error: `i' undeclared (first use in this function)
liba52/crc.c:69: error: `num_bytes' undeclared (first use in this function)
liba52/crc.c:70: error: `state' undeclared (first use in this function)
liba52/crc.c:70: error: `data' undeclared (first use in this function)
make[1]: *** [liba52/crc.o] Error 1
make[1]: Leaving directory `/home/nico/ffmpeg/libavcodec'
make: *** [lib] Error 2
As far I know I have the necessary a52 packages installed, but unfortunately, I currently can't reach the ffmpeg site to check it out..
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
ffmpeg seemed to compile okay.
so next step, configure transcode:
Code:
$ ./configure --with-ffmpeg-libs-includes=/home/nico/ffmpeg/libavcodec --with-ffmpeg-libs-libs=/home/nico/ffmpeg/libavcodec --enable-v4l --enable-a52 --enable-mjpegtools --enable-sdl --enable-libfame --enable-lame --enable-avifile --enable-ogg --enable-vorbis --enable-theora --enable-libmpeg3 --enable-libdv --enable-libquicktime --enable-libxml2 --enable-imagemagick
[lots of lines]
----------------------------------------------------------
Summary for transcode 0.6.14 features:
*-*-*-*-*-*-* Core *-*-*-*-*-*-*
static AV-frame buffering yes
support for network (sockets) streams no
DVD navigation support with libdvdread yes
experimental xio | support for IBP storage no | no
pvm3 support no
ffmpeg libs headers /home/nico/ffmpeg/libavcodec/include
ffmpeg libs libraries /home/nico/ffmpeg/libavcodec/lib
ffmpeg libs build 4738
ffmpeg libs version 0.4.9-pre1
ffmpeg libs statically linked no
*-*-*-*-*-*-* Codec *-*-*-*-*-*-*
nasm dependent modules yes
lame support (>=3.89) | ver yes | 396
mjpegtools dependent modules yes
libdv dependent modules yes
Ogg support | Vorbis support | Theora support yes | yes | yes
Default xvid export module xvid4
liba52 audio plugin (>=0.7.3) | default decoder yes | no
avifile API support yes
ImageMagick dependent modules (>=5.4.3) yes
libjpeg dependent modules | mmx accel yes | yes
liblzo dependent modules no
libxml2 dependent modules yes
v4l/v4l2 modules yes
experimental lve support no
libmpeg3 dependent modules yes
libfame video encoding plugin yes
libquicktime dependent modules yes
FFmpeg binary module no
bktr video device import module no
sunau audio device import module no
SDL support yes
GTK support no
*-*-*-*-*-*-* Filter *-*-*-*-*-*-*
X11 dependent filter plugins yes
freetype2 dependent filter (text, subtitler) yes
----------------------------------------------------------
seems okay, right?
so I run make, which ends with:
Code:
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x31d): In function `dts_decode_frame':
: undefined reference to `dts_frame'
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x372): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x39a): In function `dts_decode_frame':
: undefined reference to `dts_block'
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x3da): In function `dts_decode_frame':
: undefined reference to `dts_samples'
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x45f): In function `dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x4e5): In function `dts_decode_init':
: undefined reference to `dts_init'
/usr//lib/libavcodec.a(oggvorbis.o)(.text+0x46): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_encode_init'
collect2: ld returned 1 exit status
make[3]: *** [tcdecode] Error 1
make[3]: Leaving directory `/tmp/transcode-0.6.14/import'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/transcode-0.6.14/import'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/transcode-0.6.14'
make: *** [all] Error 2
..and once again, I can't get transcode installed properly..
it's still trying to link to the one in /usr/lib or now it's showing /usr//lib/libavcodec.a
what's up with that // ? got any ideas ?
you installed the ffmpeg you built right so it's now in
/usr/local/lib ?
why point transcode to /home/nico/ffmpeg/libavcodec/lib ?
in /usr/local/lib should be
libavcodec.so -> libavcodec-0.4.9-pre1.so
show us the output from
ls -l /usr/local/lib | grep libavcodec
and the headers are now in /usr/local/include/ffmpeg ??
if it can't figure it out we might have to hack the makefile or sometimes you can just take the last linking gcc command shown in the make output and fix and reissue it by hand
Last edited by foo_bar_foo; 08-03-2005 at 03:07 PM.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
Quote:
Originally posted by foo_bar_foo it's still trying to link to the one in /usr/lib or now it's showing /usr//lib/libavcodec.a
what's up with that // ? got any ideas ?
you installed the ffmpeg you built right so it's now in
/usr/local/lib ?
why point transcode to /home/nico/ffmpeg/libavcodec/lib ?
in /usr/local/lib should be
libavcodec.so -> libavcodec-0.4.9-pre1.so
show us the output from
ls -l /usr/local/lib | grep libavcodec
and the headers are now in /usr/local/include/ffmpeg ??
if it can't figure it out we might have to hack the makefile or sometimes you can just take the last linking gcc command shown in the make output and fix and reissue it by hand
I wasn't sure about the double slashes either.
But the reason I gave that path, is because that was the only path where libavcodec.so could be found, which now leaves me with the impression that ffmpeg wasn't installed correctly afterall..
I'm trough for today, I'll just clean the stuff up and give it a fresh start again tomorrow.
I'll let you now if any problems occur again.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
Okay, this is where I get stuck now:
Code:
nico@Peche:/tmp/ffmpeg$ ./configure --enable-shared --enable-pthreads --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-xvid --enable-a52 --enable-dts --enable-gpl --prefix=/usr/local
Install prefix /usr/local
Source path /tmp/ffmpeg
C compiler gcc
make make
CPU x86 (generic)
Big Endian no
inttypes.h yes
broken inttypes.h no
MMX enabled yes
Vector Builtins yes
gprof enabled no
zlib enabled yes
libgsm enabled no
mp3lame enabled yes
libogg enabled yes
vorbis enabled yes
theora enabled yes
faad enabled no
faadbin enabled no
faac enabled no
xvid enabled yes
x264 enabled no
a52 support yes
a52 dlopened no
dts support yes
pp support no
debug symbols yes
strip symbols yes
optimize yes
shared pp no
Video hooking yes
SDL support yes
Imlib2 support no
freetype support yes
Sun medialib support no
pthreads support yes
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
network support yes
IPv6 support yes
License: GPL
Creating config.mak and config.h
nico@Peche:/tmp/ffmpeg$ make
[...]
liba52/crc.c:26:23: ../common.h: No such file or directory
liba52/crc.c:28: error: syntax error before "crc_lut"
liba52/crc.c:28: warning: type defaults to `int' in declaration of `crc_lut'
liba52/crc.c:62: warning: data definition has no type or storage class
liba52/crc.c:64: error: syntax error before "a52_crc16_block"
liba52/crc.c:64: error: syntax error before '*' token
liba52/crc.c:65: warning: return type defaults to `int'
liba52/crc.c: In function `a52_crc16_block':
liba52/crc.c:66: error: `uint32_t' undeclared (first use in this function)
liba52/crc.c:66: error: (Each undeclared identifier is reported only once
liba52/crc.c:66: error: for each function it appears in.)
liba52/crc.c:66: error: syntax error before "i"
liba52/crc.c:67: error: `uint16_t' undeclared (first use in this function)
liba52/crc.c:69: error: `i' undeclared (first use in this function)
liba52/crc.c:69: error: `num_bytes' undeclared (first use in this function)
liba52/crc.c:70: error: `state' undeclared (first use in this function)
liba52/crc.c:70: error: `data' undeclared (first use in this function)
make[1]: *** [liba52/crc.o] Error 1
make[1]: Leaving directory `/tmp/ffmpeg/libavcodec'
make: *** [lib] Error 2
I got the ffmpeg from cvs again, copied the dir to /tmp and the rest is posted above.
Do note that the code contains both the configure and make results.
It seems to me a problem with liba52 obviously, but I haven't got a clue how to solve this.
Distribution: OpenBSD, Debian Sarge, Ubuntu, FreeBSD, Gentoo Linux
Posts: 59
Original Poster
Rep:
Quote:
Originally posted by foo_bar_foo broken package
happens sometimes when you get something out of cvs
you compiled ffmpeg already yes ?
No, that went wrong, as I posted above..
I do find it strange that this cvs package would be broken, since the changelog says it's 0.4.9-pre1, and the last update on FFmpeg, according to their website, was on May the 20th..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.