LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 02-01-2009, 06:54 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Debian recompiled without systemd, Ubuntu Hardy
Posts: 107

Rep: Reputation: 21
Problem building dirac schroedinger support in ffmpeg and mplayer


Hello,
I am trying to build mplayer and ffmpeg from source, and am currently having problems compiling support for dirac and schroedinger. In particular, when I try to configure ffmpeg like so

Code:
./configure --enable-x11grab  --enable-libfaad --enable-libfaac --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-libschroedinger --enable-libdirac --enable-gpl
I get the following

Package schroedinger-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `schroedinger-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'schroedinger-1.0' found
Package schroedinger-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `schroedinger-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'schroedinger-1.0' found
ERROR: libschroedinger not found

I have used standard configure/make/make install with no obscure arguments for dirac and schroedinger as well as 18 other libs--thus all are in /usr/local. I have edited the said PKG_CONFIG_PATH to have
/usr/local/lib/pkgconfig (where all the *.pc files are). I also have /usr/local/lib in /etc/ld.so.conf. Opening schroedinger-1.0.pc I see

Code:
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/schroedinger-1.0
toolsdir=${exec_prefix}/bin


Name: schroedinger-1.0
Description: Dirac codec library
Requires: liboil-0.3 >= 0.3.13
Version: 1.0.5
Libs: -L${libdir} -lschroedinger-1.0 -lpthread -lm
Cflags: -I${includedir}
This all seems correct. Does ffmpeg not support these two libraries? (It detects all the others (faac/d, lame, etc) with no problem.) Similarly mplayer does not detect them as well. Any suggestions? Thanks.
 
Old 02-02-2009, 12:39 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
My version of ffmpeg, from Marillat's excellent debian-multimedia.org, has both enabled, so it should be possible. Specifically it shows the following flags:
Code:
--enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger
I'm not sure why there are also "--disable" flags, but I suppose there must be a reason. I guess it ensures that one is set for encoding and the other for decoding. Truthfully, I've never tried either one.

I personally don't have much experience working with home-compiled library dependencies, so the only thing I can suggest is to perhaps try your distro's packaged version of the libraries instead (don't forget to install the -dev packages too).
 
Old 02-03-2009, 09:10 PM   #3
diracvideo
LQ Newbie
 
Registered: Feb 2009
Distribution: Ubuntu, openSuSE
Posts: 1

Rep: Reputation: 0
Have you tried running pkg-config from the command line to check if it works?

pkg-config --cflags --libs schroedinger-1.0

Has liboil-0.3 been installed in /usr/local/lib prefix as well? Schroedinger depends on liboil and so pkg-config can fail if liboil-0.3.pc cannot be found in any of the directories in PKG_CONFIG_PATH.
 
Old 02-08-2009, 06:57 PM   #4
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Debian recompiled without systemd, Ubuntu Hardy
Posts: 107

Original Poster
Rep: Reputation: 21
Thanks for the replies. Indeed the issue was with pkg-config. I had to define PKG_CONFIG_PATH, which was/is always blank, and then run ldconfig. I just upgraded Fedora to version 10 from 7. Apparently this environment variable was saved permanently in F7 as I never had this problem before.


Running ldconfig was problematic--it wouldn't work at a user prompt (su -c "ldconfig"). Being that the variable only works for ONE command line or tab, it too would not work in doing su - and then ldconfig, wherein ldconfig is then aware of root's (temporary) PKG_CONFIG_PATH and not mine.


Instead I had to define the variable, run ldconfig, and build the packages as root. In short, mplayer and ffmpeg did build fine against libdirac and libschroedinger. (This also let me rebuild audacity with mp3/id3tag support, whose libraries weren't picked up by pkg-config when I built it last week.)
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Make target problem building ffmpeg ordealbyfire83 Linux - Software 1 01-14-2009 11:28 AM
LXer: Mplayer, FFmpeg Gain VA-API Support LXer Syndicated Linux News 0 12-26-2008 12:40 AM
problem building vsFTPD withh ssl support manuelle_slow Linux - Software 0 09-12-2005 09:14 AM
Problem when building kdeadmin with kpackage support ppvinod Linux - Software 0 06-17-2004 12:48 PM


All times are GMT -5. The time now is 03:14 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration