[mythtv-users] Compiling MythTV on Fedora 8 64-bit

Rick Bilonick rab at nauticom.net
Wed Feb 13 04:35:18 UTC 2008


>>>>> Mogens Kjaer writes:

m> I've compiled MythTV on F8/x86_64 for frontend use only.

m> I had to add /usr/lib64 to LIBPATHS in the has_library function
m> in configure to get it to configure and make.


        I think the recommended way is to do:

configure --libdir-name=lib64 [...]

This will also install the Myth shared libraries in /usr/local/lib64/.
-- 
Gregorio Gervasio, Jr.

Sorry but could you be more specific about where to place "/usr/lib64"?

I located the "has_library" function within the configure file:

################################
has_library()
{
    if test -f /etc/ld.so.conf ; then
        LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
    else
        LIBPATHS=''
    fi

    LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
    # Mac OS X has a different variable for this:
    LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "

    # recurse down just one level, should be enough in most cases
    if test -f /etc/ld.so.conf ; then
        INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
        SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc
\//}'`
        for x in $SRCH ; do
            LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
            LIBPATHS="$LIBPATHS $LP_APPEND"
        done
    fi

    LIBPATHS="`echo
$LIBPATHS /$libdir_name /usr/$libdir_name /usr/local/$libdir_name /usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "

    HAS_IT="no"
    for LIBPATH in $LIBPATHS ; do
        if test x`ls $LIBPATH/$1* 2> /dev/null | head -n 1` != x"" ;
then
            HAS_IT="yes"
        fi
    done
    expr $HAS_IT : "yes" > /dev/null
}

##############################

It's not clear to me where "/usr/lib64" should go.

Rick B.



More information about the mythtv-users mailing list