Kodi Community Forum

Full Version: Compiling on Fedora 8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't finish compiling on FC8.
Code:
I am getting the following error
xbmc/utils/RegExp.o: In function `CRegExp::GetNamedSubPattern(char const*, CStdStr<char>&)':
/home/chirill/XBMC/xbmc/utils/RegExp.cpp:206: undefined reference to `pcre_get_stringnumber'
xbmc/utils/RegExp.o: In function `CRegExp::RegFind(char const*)':
/home/chirill/XBMC/xbmc/utils/RegExp.cpp:92: undefined reference to `pcre_exec'
xbmc/utils/RegExp.o: In function `CRegExp::RegComp(char const*)':
/home/chirill/XBMC/xbmc/utils/RegExp.cpp:63: undefined reference to `pcre_compile'
xbmc/utils/RegExp.o: In function `CRegExp::Cleanup()':
/home/chirill/XBMC/xbmc/utils/RegExp.h:73: undefined reference to `pcre_free'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

pcre is installed and pcre header in /usr/include/pcre.h
pcre.i386 7.3-4.fc8 installed
pcre-devel.i386 7.3-4.fc8 installed

Also, I've tried to change it to use /home/chirill/XBMC/xbmc/lib/libpcre/pcre.h instead standard lib.
in /xbmc/utils/RegExp.h and xbmc/utils/RegExp.cpp
Code:
#else
//#include <pcre.h>
#include "lib/libpcre/pcre.h"
#endif

and same errors Sad


Why I see /home/chirill/XBMC/xbmc/utils/RegExp.cpp:206: undefined reference to `pcre_get_stringnumber' ?
and I see a pcre_get_stringnumber in
/xbmc/lib/libpcre/pcre.h
/usr/include/pcre.h

Code:
PCRE_EXP_DECL int  pcre_get_stringnumber(const pcre *, const char *);

Thanks for any help.
The header isn't the problem. It can't find the library. You probably need to supply the compiler with -L/path/to (from the path /path/to/libpcre.a).
althekiller Wrote:The header isn't the problem. It can't find the library. You probably need to supply the compiler with -L/path/to (from the path /path/to/libpcre.a).


You mean to change Makefile ?
Code:
LIB_DIRS=\
    xbmc/lib/cximage-6.0 \
    xbmc/lib/libexif \
    xbmc/lib/libhdhomerun \
    xbmc/lib/libid3tag \
    xbmc/lib/libPython/linux

Code:
LIBS=-lhal-storage -ldbus-1 -lcurl -lXrandr -lXmu -lXt -lenca -lfaac -ljpeg -ljasper -lpng12 -lresolv -lrt -lasound -lmysqlclient -lsqlite3 -llzo2 -lfribidi -lbz2 -lfontconfig -lfreetype -ldl -lSDL_mixer -lSDL_image -lSDL -lvorbis -logg -ltre -lmad -lXinerama -lGLU -lGLEW -lGL

I am not sure where to do it ?
I've done with ./configure and getting error on "make" command.
Thanks
The LIBS= line should suffice.