You are not logged in.

#1 2014-06-03 18:19:48

joeberger99
Member
Registered: 2014-06-03
Posts: 2

Building glib-2.40 to prefix=/opt get (lidbir): No such file

Am building glib-2.40 to prefix=/opt, getting:

libtool: link: cannot determine absolute directory name of `(libdir)'

using configure commands:

LIBS=/opt/lib &&
LD_LIBRARY_PATH=/opt/lib &&
PKG_CONFIG_PATH=/opt/lib/pkgconfig &&
GTKDOC_DEPS_LIBS=/opt/lib &&
LIBDIR=/opt/lib &&
libdir=/opt/lib &&
./configure --prefix=/opt --exec-prefix=/opt -libdir=/opt/lib

Seems libdir not getting defined in libtool; causes gobject to fail to build.

In libtool:

line 5997
        func_resolve_sysroot "$func_stripname_result"
        dir=$func_resolve_sysroot_result
        # We need an absolute path.
        case $dir in
        [\\/]* | [A-Za-z]:[\\/]*) ;;
        *)
          absdir=`cd "$dir" && pwd`
          test -z "$absdir" && \
            func_fatal_error "cannot determine absolute directory name of \`$dir'"  <<< fails here <<<<
          dir="$absdir"
          ;;
        esac

Any help appreciated.

Offline

#2 2014-08-13 13:53:13

Alex.Mo
Member
Registered: 2014-08-13
Posts: 1

Re: Building glib-2.40 to prefix=/opt get (lidbir): No such file

Hi,I also get the same problem when I cross compilig the glib.
Then,I finally solved the problem by set the LIBFFI_LIBS and LIBFFI_CFLAGS.
My problem was because I just build libffi simply, but it need to fix to install header in the right place (/usr/include) and modify the /usr/lib/pkgconfig/libffi.pc .

Last edited by Alex.Mo (2014-08-13 14:10:18)

Offline

Board footer

Powered by FluxBB