LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trouble installing libavifile-0.7-0.7.38 (for mjpeg tools installation) (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-installing-libavifile-0-7-0-7-38-for-mjpeg-tools-installation-193884/)

BeetleBailey 06-15-2004 03:58 PM

trouble installing libavifile-0.7-0.7.38 (for mjpeg tools installation)
 
I'm new to Linux, so bear with me....
I'm trying to install libavifile b/c it's listed as a dependency of the mjpegtools library
It configures, but will not make or make install
I'm running Pink Tie Linux (variant of Red Hat)
after the ./configure and trying the make command I get this error at the end of the output:

rm -fr .libs/libaviplay.la .libs/libaviplay.* .libs/libaviplay-0.7.*
gcc -shared codeckeeper.lo Uncompressed.lo -Wl,--whole-archive aviplay/.libs/libaviplay.al aviread/.libs/libaviread.al aviwrite/.libs/libaviwrite.al common/.libs/libcommon.al subtitle/.libs/libsubtitle.al video/.libs/libvideo.al -Wl,--no-whole-archive -Wl,--rpath -Wl,/root/avifile-0.7-0.7.38/ffmpeg/libavformat/.libs -Wl,--rpath -Wl,/root/avifile-0.7-0.7.38/ffmpeg/libavcodec/.libs -Wl,--rpath -Wl,/root/avifile-0.7-0.7.38/drivers/vidix/.libs -Wl,--rpath -Wl,/root/avifile-0.7-0.7.38/drivers/libdha/.libs -Wl,--rpath -Wl,/usr/local/lib -L/root/avifile-0.7-0.7.38/drivers/libdha/.libs -L/usr/X11R6/lib /root/avifile-0.7-0.7.38/ffmpeg/libavformat/.libs/libaviplayavformat.so -lz /root/avifile-0.7-0.7.38/ffmpeg/libavcodec/.libs/libaviplayavcodec.so /usr/lib/libSDL.so -lm -lX11 -lXext /root/avifile-0.7-0.7.38/drivers/vidix/.libs/libaviplayvidix.so /root/avifile-0.7-0.7.38/drivers/libdha/.libs/libaviplaydha.so -lpthread -lnsl -ldl -Wl,-soname -Wl,libaviplay-0.7.so.0 -o .libs/libaviplay-0.7.so.0.0.38
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [libaviplay.la] Error 1
make[2]: Leaving directory `/root/avifile-0.7-0.7.38/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/avifile-0.7-0.7.38/lib'
make: *** [all-recursive] Error 1


Does anyone know what -lX11 is or how I can fix this ????

Thanks in advance!!!!!

rylan76 07-10-2004 04:46 AM

X11 is the X11 development libraries - did you install Pink Tie with something like "XWindows development" checked? In the RedHat 9 install you get this option. If you do NOT check it, the X11 development libraries are NOT installed and this means that any program/library which needs them will not compile - 'cause it can't find them.

Your best bet is to either download the X11 libraries from the xwindows website (xfree86.org if I remember right) but this is a bit of tough one. I would rather recommend to re-install Pink Tie and look for an option somewhere during installation that refers to X11 or XWindows development. As far as I know, you need to install the whole shebang (i. e. Xwindows itself, all the fonts, drivers, AS WELL AS any development libraries or Xwindows development stuff).

In short, the error you posted is 'cause your gcc can't find the X11 libraries to link into the libavifile library.


All times are GMT -5. The time now is 02:10 AM.