Slackware This Forum is for the discussion of Slackware Linux.
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
09-15-2009, 08:01 PM
#1
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Rep:
slack13_64 - FFMPEG's "libx264 not found" error
HEllo!
I'm trying to build my own slack13_64 package for ffmpeg using the slackbuild script that I got on slackBuilds.org,
and I found that ffmpeg configure "libx264 not found error" is a pain in the ass =D
I've already build and installed x264, again from a slackbuild script that I got on slackBuilds.org,
and even tried linking manually things from /usr/lib/ to /usr/lib64/,
but yet ffmpeg ./configure refuses to see that libx264.* files.
Code:
erickfis@darkstar:~/downloads/transc/ffmpeg-0.5$ ./configure --prefix=/usr --mandir=/usr/man --disable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-bzlib --enable-libamr-nb --enable-libamr-wb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-memalign-hack --enable-libxvid --enable-zlib --disable-debug --enable-vdpau
ERROR: libx264 not found
If you think configure made a mistake,...
Any ideas?
09-15-2009, 08:31 PM
#2
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Rep:
EDIT: nvm..I didn't see you wanted 64bit :P
Last edited by ~sHyLoCk~; 09-15-2009 at 08:32 PM .
09-15-2009, 08:38 PM
#3
Member
Registered: Aug 2007
Distribution: Slackware 13.37
Posts: 194
Rep:
Working ok here
Code:
ffmpeg -version
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-libopenjpeg --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libspeex --enable-libschroedinger --disable-vdpau --enable-nonfree --enable-libamr-nb --enable-libamr-wb
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 7 2009 20:24:49, gcc: 4.3.3
09-15-2009, 08:43 PM
#4
Member
Registered: Oct 2007
Distribution: Slackware
Posts: 480
Rep:
Hi erick,
Quote:
Originally Posted by
erickFis
Code:
ERROR: libx264 not found
If you think configure made a mistake,...
The next section of the error message should tell you the logfiles created that give exact details of the detection failure.
Andrew
09-15-2009, 09:07 PM
#5
Senior Member
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,108
Rep:
Quote:
and even tried linking manually things from /usr/lib/ to /usr/lib64/,
On Slackware64-13.0
all libraries need to be in /usr/lib64. Each program you compile needs to pass the correct options to place them there.
For x264 -
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
If you passed the correct ARCH option using the Slackbuilds.org SlackBuild, this will place libx264 in /usr/lib64.
Ffmpeg needs to be compiled with these options, in order to find the libs in /usr/lib64
--libdir=/usr/lib${LIBDIRSUFFIX} \
--shlibdir=/usr/lib64 \
Take a look at wadsworth's configure that he posted
Last edited by disturbed1; 09-15-2009 at 09:09 PM .
09-16-2009, 07:30 AM
#6
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
Hello guys, thanks for helping!
I've tried wadsworth ./configure way, like this:
Code:
--prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-libopenjpeg --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libspeex --enable-libschroedinger --disable-vdpau --enable-nonfree --enable-libamr-nb --enable-libamr-wb
but ffmpeg still cannot find libx264.....
wadsworth, could you post the x264 build steps you took?
09-16-2009, 08:53 AM
#7
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035
Rep:
If you used the x264.SlackBuild found at slackbuilds.org - then the library files would have been installed to lib64 directories and you would never have had to attempt to link files from lib to lib64. So I wonder what went wrong on your system.
Alternatively you can try my all-inclusive ffmpeg.SlackBuild at
http://slackware.com/~alien/slackbuilds/ffmpeg/build/ - this script compiles several supporting libraries (x264 being one of those) statically into ffmpeg itself. I use this on my Slackware64 system myself.
Regards, Eric
09-16-2009, 12:10 PM
#8
Member
Registered: Aug 2007
Distribution: Slackware 13.37
Posts: 194
Rep:
I used the scripts from slackbuilds.org,
with ARCH=x86_64 and PKGTYPE=txz defined before calling them.
I found these build queues to be very helpful:
http://www.sbopkg.org/queues/13.0/
Something is very wrong here, maybe start over from square one,
or just try Eric's packages.
09-16-2009, 12:28 PM
#9
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 401
Rep:
You can go for Eric's package and have more time to poke around your problem. Where are the 'libx264.*' files located? Eric and Robby have some nice additions kindly shared.
09-16-2009, 03:07 PM
#10
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
double post deleted
Last edited by erickFis; 09-16-2009 at 03:15 PM .
Reason: double post
09-16-2009, 03:12 PM
#11
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
Alien Bob's script looks really good stuff.
Wads, I'm going to try building x264 again,
and if it goes wrong again,
I'll give a try with Alien Bob's script.
It's a shame that I don't have slack13_64 here at work,
so I'll have to wait until I get home....
Thank you guys!
09-17-2009, 07:28 AM
#12
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
ok, yesterday I've tried again the slackbuilds scritpts, for both x264 and ffmpeg,
but, so far, ffmpeg can't find libX264.
Then I tried Alien's Bob script, but when it reaches the ffmpeg part, well, guess what:
Code:
gcc -o x264 x264.o matroska.o muxers.o libx264.a -L/usr/lib64 -fPIC -lm -lpthread -Wl,-Bsymbolic -s
install -d /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/bin /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include
install -d /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib/pkgconfig
install -m 644 x264.h /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include
install -m 644 libx264.a /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib
install -m 644 x264.pc /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib/pkgconfig
install x264 /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/bin
ranlib /tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib/libx264.a
/tmp/build/tmp-ffmpeg
**
** ffmpeg ...
**
ERROR: libx264 not found
Now I'll give a look at conf.errors. Didn't do it yet because I was soooo tired.
Any ideas please tell me.
Last edited by erickFis; 09-17-2009 at 07:36 AM .
09-17-2009, 09:55 AM
#13
Member
Registered: Mar 2009
Posts: 76
Rep:
Before building x264, did you install yasm from the iso, under extras directory?
09-17-2009, 03:16 PM
#14
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
nope.
Once I noticed x264 would ask for yasm I downloaded, compiled and installed it. Didn't knew it was on /extras. I'll give it a try.
09-18-2009, 04:12 PM
#15
Member
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201
Original Poster
Rep:
ok, now I've tried with yasm from the /extras,
but still no success....
The same problem occurs when I try to compile pango:
configure says that it cannot find glibmm,
but I'd just installed glibmm before, all using slackbuilds scripts...
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 09:59 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News