Two questions:
I)
Thank you. I ran these commands.
[root@ffmpeg /]# PKG_CONFIG_PATH=/usr/local/myapps/lib
[root@ffmpeg /]# PKG_CONFIG_PATH=/usr/local/myapps/lib/pkgconfig
[root@ffmpeg /]# export PKG_CONFIG_PATH
[root@ffmpeg /]# LDFLAGS=-L/usr/local/myapps/lib
[root@ffmpeg /]# export LDFLAGS
[root@ffmpeg /]# CPPFLAGS=-I/usr/local/myapps/include
[root@ffmpeg /]# export CPPFLAGS
[root@ffmpeg /]#
[root@ffmpeg /]# echo $PKG_CONFIG_PATH
/usr/local/myapps/lib/pkgconfig
[root@ffmpeg /]#
[root@ffmpeg /]# echo $LDFLAGS
-L/usr/local/myapps/lib
[root@ffmpeg /]#
[root@ffmpeg /]# echo $CPPFLAGS
-I/usr/local/myapps/include
Then installed libraw1394. The files got installed fine in the following locations.
/usr/local/myapps/include/libraw1394
/usr/local/myapps/include/libraw1394/csr.h
/usr/local/myapps/include/libraw1394/ieee1394.h
/usr/local/myapps/include/libraw1394/raw1394.h
/usr/local/myapps/lib/libraw1394.a
/usr/local/myapps/lib/libraw1394.la
/usr/local/myapps/lib/libraw1394.so
/usr/local/myapps/lib/libraw1394.so.11
/usr/local/myapps/lib/libraw1394.so.11.0.1
/usr/local/myapps/lib/pkgconfig/libraw1394.pc
Now, when I try to install libdc1394 which checks for the occurence of libraw, says libraw is not installed. Why the configure script fails to check at the at the path /usr/local/myapps ?
Configuration (libdc1394):
libraw1394 support (Linux legacy): Disabled (libraw1394 not found)
What environment variable needs to be set?
II)
I install ffmpeg with prefix as /usr/local/myapps . But after installing it, when I type "/usr/local/myapps/bin/ffmpeg -version" it says libraries such as libavfilter.so.15 not found. I did an strace and found that ffmpeg binary checks the .so files in the paths, /lib64, /usr/lib64 etc and fails. I have to make symlinks to make this work. How to make ffmpeg binary check the libraries at /usr/local/myapps/lib itself?
---------- Post updated at 02:12 PM ---------- Previous update was at 01:55 PM ----------
Got the answer to the first question.
I opened the file /usr/local/myapps/lib/pkgconfig/libraw1394.pc and saw "Libs: -L${libdir}".
I set the LIBS env variable as follows.
LIBS=-L/usr/local/myapps/lib
That solved the issue.
Please help me how to solve FFmpeg issue described above.
---------- Post updated at 03:19 PM ---------- Previous update was at 02:12 PM ----------
Solved!!
I was able to solve the secind issue
Add "/usr/local/myapps/lib" to a new file /etc/ld.so.conf.d/myapps.conf and run the command below.
ldconfig