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. So I run make, and that gave me this: Code:
collect2: ld returned 1 exit status Anyone any advice? |
we need the begining of the error output not the end
|
Quote:
Code:
/usr/lib/libavcodec.a(dtsdec.o)(.text+0x31d): In function `dts_decode_frame': 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. |
Quote:
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:
Quote:
|
Quote:
I'm now about to Code:
./configure --enable-shared --enable-pthreads --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-xvid --enable-a52 --enable-dts --enable-gpl |
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 |
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 so I run make, which ends with: Code:
/usr//lib/libavcodec.a(dtsdec.o)(.text+0x31d): In function `dts_decode_frame': |
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 |
Quote:
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. |
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 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. :rolleyes: |
Quote:
happens sometimes when you get something out of cvs generally people are using FFmpeg-0.4.9-pre1 and Transcode-0.6.14 you compiled ffmpeg already yes ? |
Quote:
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.. |
Well, I went through the FFmpeg website and ended up with this page.
Appears to be a bug with a extraneous "../" to common.h in the crc.c file :) So I applied the patch (or actually, just edited the line in crc.c), ran ./configure , then ran make, (and make install)and no errors! :D so, time for make install, which went fine, and then a simple check: Code:
nico@Peche:/tmp/ffmpeg$ whereis ffmpeg |
Too bad, still no go..
Code:
nico@Peche:/tmp/transcode-0.6.14$ ./configure --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 |
All times are GMT -5. The time now is 05:04 PM. |