nothing I compile (xine, transcode, avifile, etc) can see the installed xvid codec
I have been using Linux for quite some time, so I am not a complete newbie. I am having trouble getting various programs to recognize the xvid codecs that are installed. I have installed the latest version of the xvidcore libraries (xvidcore-1.0.0-beta2) and have made sure that the install directory (/usr/local/lib) is in the ld.so.conf file (and ran ldconfig) When I try to ./configure programs such as Xine (1.0rc2), avifile (0.7.38), or transcode (0.6.11) they all continue to flag xvid as not being found (see exact errors below). I am running a standard install of Slackware 9.1 with the 2.4.22 kernel. I have successfully installed many other programs and codecs but xvid continues to give me problems. I have scored the internet for refrences to possible bugs in the xvid source that might cause this type of problem but have seen nothing. Am I missing something? Did I do everything right? I have ran thru the install proccess several times and nothing I change seems to work. Even using flags such as --with-xvid="/usr/local/lib" changes nothing... here are the errors I get:
avifile-0.7-0.7.38 ./configure:
checking for xvid_init in -lxvidcore... no
configure: warning: Could not run XviD test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding XviD or finding the wrong
*** version of XviD. If it is not finding XviD, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
--- Sources to build XviD xvidcore library can be found at
avifile-0.7-0.7.38 config.log:
configure:12294: checking for xvid.h
configure:12304: gcc -E -Wall -Wno-unused conftest.c >/dev/null 2>conftest.out
configure:12331: checking for xvid_init in -lxvidcore
configure:12371: gcc -o conftest -g -O0 -mcpu=i586 -march=i586 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pi
pe -Wall -Wno-unused conftest.c -lnsl -ldl -lxvidcore 1>&5
configure: In function `main':
configure:12353: `XVID_INIT_PARAM' undeclared (first use in this function)
configure:12353: (Each undeclared identifier is reported only once
configure:12353: for each function it appears in.)
configure:12353: syntax error before "xinit"
configure:12356: `xinit' undeclared (first use in this function)
configure:12357: warning: implicit declaration of function `xvid_init'
configure:12359: `API_VERSION' undeclared (first use in this function)
configure: failed program was:
#line 12344 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <xvid.h>
int main ()
{
XVID_INIT_PARAM xinit;
system("touch conf.xvidtest");
xinit.cpu_flags = 0;
xvid_init(NULL, 0, &xinit, NULL);
if (xinit.api_version == API_VERSION) {
return 0;
} else {
printf("Header file and library are out of sync. Header file supports\n"
"version %d.%d API and shared library supports version %d.%d API.\n",
API_VERSION >> 16, API_VERSION & 0xFFFF,
xinit.api_version >> 16, xinit.api_version & 0xFFFF);
return 1;
}
}
configure:12412: gcc -o conftest -g -O0 -mcpu=i586 -march=i586 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -pi
pe -Wall -Wno-unused conftest.c -lnsl -ldl -lxvidcore 1>&5
-----
The errors are the same for xine and transcode... it's like they just don't see the libxvidcore.so.4.0 (or libxvidcore.so.4) or libxvidcore.a files...
If anyone has any ideas of what might be going wrong, or can at least help me understand the problem better, please respond. I have been racking my brain against this one for many days!
---ontherun---
|