windows打包ipa?x86架构和arm架构?Toolchain(4)

电脑杂谈  发布时间:2016-07-06 05:00:23  来源:网络整理

If you have written a cool application which you want to share with others, the best way to do that is to

  • upload your application source code to a public location
  • submit a BitBake recipe to OpenEmbedded, preferably via the OpenEmbedded bugtracker.
  • See also Customizing the Openmoko Distribution.

    Troubleshooting

  • Some Versions of the Toolchain have corrupt .la files. If you compile an application using the toolchain and you receive a '/space/fic/openmoko-daily/neo1973/work/armv4t-angstrom-linux-gnueabi/pango-1.18.3-r0/pango-1.18.3/pango/libpangoft2-1.0.la' error, you are affected. To fix that you should go to your "/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib" directory and open the affected .la files and change "/space/fic..." to "/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib". You have to fix more than one .la file. For the pango error you have to change "libpangocairo-1.0.la", but there are more corrupt .la files.
  • Attached is a beta fix for the .la problem. Untar the .tar.bz2 as root, and execute the following bash script as root:

    #!/bin/sh DIR=/usr/local/openmoko/arm for la in `find $DIR -iname \*.la`; do dependency_libs= . $la for lib in $dependency_libs; do delib=`echo $lib | grep -E .la$` if [ -z $delib ]; then echo -n elif [ -f $delib ]; then echo -n else basedelib=`basename $delib` replacedelibs=`find $DIR -iname $basedelib` found=0 for replacedelib in $replacedelibs; do if [ $replacedelib == $delib ]; then found=1 fi done if [ $found -gt 0 ]; then echo -n else sed_delib=`echo $delib | sed 's/\//\\\\\//g'` sed_replacedelib=`echo $replacedelib | sed 's/\//\\\\\//g'` # A bit slow, we could chain expressions for speed.:) cp $la $la.old cat $la | sed "s/$sed_delib/$sed_replacedelib/g" > $la.new mv $la.new $la rm $la.old fi fi done done
  • If you can't get the toolchain working in your distro (for example if you keep bumping into strange autotools issues), you can set up the toolchain inside a Debian chroot, which should provide reasonably standard environment. There's a guide for it: ~zub/debian-chroot-toolchain.txt
  • If you get something similar:
  • ../libtool: X--tag=CC: command not found

    under Ubuntu 8.10. Try do this:

    sudo apt-get remove libtool wget

    or

    wget sudo dpkg -i libtool_1.5.26-1ubuntu1_i386.deb

    The original message here

  • Please use the Openmoko-Devel mailing list.
  • Old troubleshooting information

    If it fails with error message "arm-angstrom-linux-gnueabi-ld: unrecognized option '-Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib'" until /usr/local/openmoko/arm/bin/setup-env is modified. LDFLAGS should be changed from:

    export LDFLAGS="-L${OMTOOL_DIR}/arm/arm-angstrom-linux-gnueabi/lib -Wl,-rpath-link,${OMTOOL_DIR}/arm/arm-angstrom-linux-gnueabi/lib -Wl,-O1"

    to:

    export LDFLAGS="-L${OMTOOL_DIR}/arm/arm-angstrom-linux-gnueabi/lib -rpath-link ${OMTOOL_DIR}/arm/arm-angstrom-linux-gnueabi/lib -O1"

    I also had to change the 'build' script to hardcode the path to the compiler.

    以上就是关于toolchain的全部内容,相信你一定会非常满意,。


    本文来自电脑杂谈,转载请注明本文网址:
    https://www.pc-fly.com/a/ruanjian/article-12004-4.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 谢眺
        谢眺

        装备落后的体现以及人员素质低于日本人的体现

      • 王漫漫
        王漫漫

        我们在南海有许多的东风牌可打

      • 刘瑞娜
        刘瑞娜

        请问

      热点图片
      拼命载入中...