Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    编译报错 libgettextlib.la failed

    MR Series
    2
    5
    1441
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cwj1986521 LV 5 last edited by awwwwa

      /usr/bin/ld: cannot find -lglib-2.0
      /usr/bin/ld: cannot find -liconv
      /usr/bin/ld: cannot find -lpcre
      collect2: error: ld returned 1 exit status
      Makefile:2532: recipe for target 'libgettextlib.la' failed
      make[9]: *** [libgettextlib.la] Error 1
      make[9]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools/gnulib-lib'
      Makefile:2284: recipe for target 'all' failed
      make[8]: *** [all] Error 2
      make[8]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools/gnulib-lib'
      Makefile:1716: recipe for target 'all-recursive' failed
      make[7]: *** [all-recursive] Error 1
      make[7]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools'
      Makefile:1582: recipe for target 'all' failed
      make[6]: *** [all] Error 2
      make[6]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools'
      Makefile:380: recipe for target 'all-recursive' failed
      make[5]: *** [all-recursive] Error 1
      make[5]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6'
      Makefile:336: recipe for target 'all' failed
      make[4]: *** [all] Error 2
      make[4]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6'
      Makefile:78: recipe for target '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/.built' failed
      make[3]: *** [/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/.built] Error 2
      make[3]: Leaving directory '/home/jay/allwinner/Tina-Linux/package/libs/gettext-full'
      package/Makefile:192: recipe for target 'package/libs/gettext-full/host/compile' failed
      make[2]: *** [package/libs/gettext-full/host/compile] Error 2
      make[2]: Leaving directory '/home/jay/allwinner/Tina-Linux'
      package/Makefile:189: recipe for target '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.package_compile' failed
      make[1]: *** [/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.package_compile] Error 2
      make[1]: Leaving directory '/home/jay/allwinner/Tina-Linux'
      /home/jay/allwinner/Tina-Linux/build/toplevel.mk:304: recipe for target 'world' failed
      make: *** [world] Error 2
      [2]+  Done                    $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
      
      #### make failed to build some targets (01:25 (mm:ss)) ####
      
      

      各位大侠 这个错误怎么改,找了好久没找到源头

      A 1 Reply Last reply Reply Quote Share 0
      • A
        awwwwa LV 8 @cwj1986521 last edited by

        @cwj1986521 在 编译报错 libgettextlib.la failed 中说:

        /usr/bin/ld: cannot find -lglib-2.0
        /usr/bin/ld: cannot find -liconv
        /usr/bin/ld: cannot find -lpcre

        目前编译的是安装在编译主机上的gettext,报错找不到链接库,需要安装 glib-2.0、iconv、pcre

        C 2 Replies Last reply Reply Quote Share 0
        • C
          cwj1986521 LV 5 @awwwwa last edited by

          @awwwwa 在 编译报错 libgettextlib.la failed 中说:

          glib-2.0、iconv、pcre

          好的好的 我安装试下 ,非常感谢

          1 Reply Last reply Reply Quote Share 0
          • C
            cwj1986521 LV 5 @awwwwa last edited by

            @awwwwa
            还是不行 还是会报这个错误但是内容改了
            make[9]: Entering directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools/gnulib-lib'
            /usr/bin/env bash ../libtool --tag=CC --mode=link gcc -O2 -I/home/jay/allwinner/Tina-Linux/out/host/include -I/home/jay/allwinner/Tina-Linux/out/host/usr/include -I/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/include -no-undefined -fopenmp -release 0.19.6 -L/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib -lglib-2.0 -L/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib -liconv -L/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib -lpcre -lpthread -R/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib -lncurses -L/home/jay/allwinner/Tina-Linux/out/host/lib -L/home/jay/allwinner/Tina-Linux/out/host/usr/lib -L/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib -o libgettextlib.la -rpath /home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib copy-acl.lo set-acl.lo acl-errno-valid.lo acl-internal.lo get-permissions.lo set-permissions.lo allocator.lo areadlink.lo argmatch.lo gl_array_list.lo backupfile.lo addext.lo basename.lo binary-io.lo c-ctype.lo c-strcasecmp.lo c-strncasecmp.lo c-strcasestr.lo c-strstr.lo careadlinkat.lo classpath.lo clean-temp.lo cloexec.lo closeout.lo concat-filename.lo copy-file.lo csharpcomp.lo csharpexec.lo error-progname.lo execute.lo exitfail.lo fatal-signal.lo fd-hook.lo fd-ostream.lo fd-safer-flag.lo dup-safer-flag.lo file-ostream.lo findprog.lo fstrcmp.lo full-write.lo fwriteerror.lo gcd.lo hash.lo html-ostream.lo html-styled-ostream.lo javacomp.lo javaexec.lo javaversion.lo gl_linkedhash_list.lo gl_list.lo localcharset.lo localename.lo glthread/lock.lo malloca.lo mbchar.lo mbiter.lo mbslen.lo mbsstr.lo mbswidth.lo mbuiter.lo ostream.lo pipe-filter-ii.lo pipe-filter-aux.lo pipe2.lo pipe2-safer.lo progname.lo propername.lo qcopy-acl.lo qset-acl.lo quotearg.lo safe-read.lo safe-write.lo sh-quote.lo sig-handler.lo spawn-pipe.lo striconv.lo striconveh.lo striconveha.lo strnlen1.lo styled-ostream.lo tempname.lo term-ostream.lo term-styled-ostream.lo glthread/threadlib.lo glthread/tls.lo tmpdir.lo trim.lo uniconv/u8-conv-from-enc.lo unictype/ctype_space.lo unilbrk/lbrktables.lo unilbrk/u8-possible-linebreaks.lo unilbrk/u8-width-linebreaks.lo unilbrk/ulc-common.lo unilbrk/ulc-width-linebreaks.lo uniname/uniname.lo unistd.lo dup-safer.lo fd-safer.lo pipe-safer.lo unistr/u16-mbtouc.lo unistr/u16-mbtouc-aux.lo unistr/u8-check.lo unistr/u8-mblen.lo unistr/u8-mbtouc.lo unistr/u8-mbtouc-aux.lo unistr/u8-mbtouc-unsafe.lo unistr/u8-mbtouc-unsafe-aux.lo unistr/u8-mbtoucr.lo unistr/u8-prev.lo unistr/u8-uctomb.lo unistr/u8-uctomb-aux.lo uniwidth/width.lo wait-process.lo wctype-h.lo xmalloc.lo xstrdup.lo xconcat-filename.lo xerror.lo gl_xlist.lo xmalloca.lo xreadlink.lo xsetenv.lo xsize.lo xstriconv.lo xstriconveh.lo xvasprintf.lo xasprintf.lo asnprintf.lo fcntl.lo obstack.lo printf-args.lo printf-parse.lo vasnprintf.lo libcroco_rpl.la libxml_rpl.la
            OpenWrt-libtool: link: warning: library /home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib/libglib-2.0.la' was moved. /home/jay/allwinner/Tina-Linux/out/host/bin/grep: /home/jay/linux/allwinner/Tina-Linux-20220815/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib/libpcre.la: No such file or directory /home/jay/allwinner/Tina-Linux/out/host/bin/sed: can't read /home/jay/linux/allwinner/Tina-Linux-20220815/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib/libpcre.la: No such file or directory OpenWrt-libtool: link: /home/jay/linux/allwinner/Tina-Linux-20220815/Tina-Linux/out/t113-mq_r/staging_dir/target/host/lib/libpcre.la' is not a valid libtool archive
            Makefile:2532: recipe for target 'libgettextlib.la' failed
            make[9]: *** [libgettextlib.la] Error 1
            make[9]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools/gnulib-lib'
            Makefile:2284: recipe for target 'all' failed
            make[8]: *** [all] Error 2
            make[8]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools/gnulib-lib'
            Makefile:1716: recipe for target 'all-recursive' failed
            make[7]: *** [all-recursive] Error 1
            make[7]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools'
            Makefile:1582: recipe for target 'all' failed
            make[6]: *** [all] Error 2
            make[6]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/gettext-tools'
            Makefile:380: recipe for target 'all-recursive' failed
            make[5]: *** [all-recursive] Error 1
            make[5]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6'
            Makefile:336: recipe for target 'all' failed
            make[4]: *** [all] Error 2
            make[4]: Leaving directory '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6'
            Makefile:78: recipe for target '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/.built' failed
            make[3]: *** [/home/jay/allwinner/Tina-Linux/out/t113-mq_r/compile_dir/target/host/gettext-0.19.6/.built] Error 2
            make[3]: Leaving directory '/home/jay/allwinner/Tina-Linux/package/libs/gettext-full'
            package/Makefile:192: recipe for target 'package/libs/gettext-full/host/compile' failed
            make[2]: *** [package/libs/gettext-full/host/compile] Error 2
            make[2]: Leaving directory '/home/jay/allwinner/Tina-Linux'
            package/Makefile:189: recipe for target '/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.package_compile' failed
            make[1]: *** [/home/jay/allwinner/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.package_compile] Error 2
            make[1]: Leaving directory '/home/jay/allwinner/Tina-Linux'
            /home/jay/allwinner/Tina-Linux/build/toplevel.mk:304: recipe for target 'world' failed
            make: *** [world] Error 2
            [2]+ Done $T/tools/build/buildserver --path $T 2> /dev/null 1>&2

            make failed to build some targets (54 seconds)

            1 Reply Last reply Reply Quote Share 0
            • A
              awwwwa LV 8 last edited by

              Ubuntu 22.04 / 20.04
              更新软件源,更新系统软件包

              sudo apt-get update
              sudo apt-get upgrade -y
              安装开发依赖

              sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof
              安装相关工具

              sudo apt-get install kconfig-frontends android-tools-mkbootimg python2 libpython3-dev
              增加架构支持

              sudo dpkg --add-architecture i386
              sudo apt-get update
              安装支持包

              sudo apt install gcc-multilib
              sudo apt install libc6:i386 libstdc++6:i386 lib32z1
              Ubuntu 18.04
              更新软件源,更新系统软件包

              sudo apt-get update
              sudo apt-get upgrade -y
              安装开发依赖

              sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof
              安装相关工具

              sudo apt-get install android-tools-mkbootimg libpython3-dev
              增加架构支持

              sudo dpkg --add-architecture i386
              sudo apt-get update
              安装支持包

              sudo apt install gcc-multilib
              sudo apt install libc6:i386 libstdc++6:i386 lib32z1
              Arch Linux / Manjaro
              更新软件源,更新系统软件包

              pacman -Syyuu
              安装开发依赖

              pacman -S --needed base-devel autoconf automake bash binutils bison bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff gzip time unzip util-linux wget which zlib asciidoc help2man intltool perl-extutils-makemaker swig
              安装相关工具

              pacman -S --needed libelf libtool libxslt m4 make ncurses openssl patch pkgconf python rsync sed texinfo
              增加架构支持

              pacman -S --needed multilib-devel
              CentOS / Fedora / openEuler

              sudo dnf --setopt install_weak_deps=False --skip-broken install bash-completion bzip2 gcc gcc-c++ git make ncurses-devel patch rsync tar unzip wget which diffutils python2 python3 perl-base perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin perl-Thread-Queue glibc.i686
              openSUSE

              sudo zypper install --no-recommends asciidoc bash bc binutils bzip2 fastjar flex gawk gcc

              1 Reply Last reply Reply Quote Share 0
              • 1 / 1
              • First post
                Last post

              Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

              行为准则 | 用户协议 | 隐私权政策