LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-15-2009, 08:01 PM   #1
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Rep: Reputation: 31
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?
 
Old 09-15-2009, 08:31 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 126Reputation: 126
EDIT: nvm..I didn't see you wanted 64bit :P

Last edited by ~sHyLoCk~; 09-15-2009 at 08:32 PM.
 
Old 09-15-2009, 08:38 PM   #3
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware 13.37
Posts: 194
Blog Entries: 1

Rep: Reputation: 49
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
 
Old 09-15-2009, 08:43 PM   #4
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 480

Rep: Reputation: 63
Hi erick,

Quote:
Originally Posted by erickFis View Post
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
 
Old 09-15-2009, 09:07 PM   #5
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,108
Blog Entries: 6

Rep: Reputation: 196Reputation: 196
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.
 
Old 09-16-2009, 07:30 AM   #6
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
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?
 
Old 09-16-2009, 08:53 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
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
 
Old 09-16-2009, 12:10 PM   #8
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware 13.37
Posts: 194
Blog Entries: 1

Rep: Reputation: 49
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.
 
Old 09-16-2009, 12:28 PM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 401

Rep: Reputation: 50
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.
 
Old 09-16-2009, 03:07 PM   #10
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
double post deleted

Last edited by erickFis; 09-16-2009 at 03:15 PM. Reason: double post
 
Old 09-16-2009, 03:12 PM   #11
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
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!
 
Old 09-17-2009, 07:28 AM   #12
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
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.
 
Old 09-17-2009, 09:55 AM   #13
pokipoki08
Member
 
Registered: Mar 2009
Posts: 76

Rep: Reputation: 16
Before building x264, did you install yasm from the iso, under extras directory?
 
Old 09-17-2009, 03:16 PM   #14
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
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.
 
Old 09-18-2009, 04:12 PM   #15
erickFis
Member
 
Registered: Jun 2003
Location: Brasil
Distribution: Slackware 13.1_64 Gold Edition
Posts: 201

Original Poster
Rep: Reputation: 31
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...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 12:09 AM
LFS6.3 livecd "ls : command not found" error after "su - lfs" rotu Linux From Scratch 2 06-19-2008 03:59 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
Mandrake 10.1/GeForce 4600... xorg error "no screens found" SAFX Mandriva 8 10-18-2004 01:02 PM
Getting erro - Library files for "libkcm_k3bsetup2.la" not found in paths error. rsreeni Linux - Newbie 0 08-22-2004 07:07 PM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration