查看: 2481|回复: 1

【电鱼派试用】之配置升级开发环境依赖库

[复制链接]
  • TA的每日心情
    奋斗
    2022-10-13 10:27
  • 签到天数: 216 天

    连续签到: 1 天

    [LV.7]常住居民III

    发表于 2016-12-21 22:35:57 | 显示全部楼层 |阅读模式
    分享到:


    前面编译QT相关库发现报错了,所以尝试下升级开发环境依赖库,这里官方提供了相应的脚本文件,所以省去了不少事情。先看下具体如果配置和升级开发环境依赖库。
    1.将脚本文件拷贝到dianyu目录下(Ubuntu环境)

    QQ截图20161221223209.jpg
    2.执行脚本文件
    1. sudo ./setup-package-install.sh
    复制代码
    QQ截图20161221222457.jpg

    QQ截图20161221222528.jpg

    QQ截图20161221222559.jpg

    其中有两处需要选择的,这里默认我们都选择yes,执行后就行了,具体脚本程序如下
    1. entry_header() {
    2. cat << EOF
    3. -------------------------------------------------------------------------------
    4. setup package script
    5. This script will make sure you have the proper host support packages installed
    6. This script requires administrator priviliges (sudo access) if packages are to be installed.
    7. -------------------------------------------------------------------------------
    8. EOF
    9. }

    10. exit_footer() {
    11. cat << EOF
    12. --------------------------------------------------------------------------------
    13. Package verification and installation successfully completed
    14. --------------------------------------------------------------------------------
    15. EOF
    16. }

    17. cwd=`dirname $0`
    18. #. $cwd/common.sh

    19. entry_header

    20. packages_to_install="xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev uboot-mkimage autoconf automake"
    21. cmd="sudo apt-get install "

    22. # Check and only install the missing packages
    23. for i in $packages_to_install; do
    24.         is_it_installed=`dpkg-query -l $i 2>/dev/null`
    25.         if [ "$?" -ne "0" ]; then
    26.                 needs_installation=`echo $needs_installation`" "$i
    27.                 new_cmd=`echo $cmd`" "$i
    28.                 cmd=$new_cmd
    29.         fi
    30. done

    31. if [ "$needs_installation" = "" ]; then
    32.     echo "System has required packages!"
    33. else
    34.     echo "System requires packages $needs_installation to be installed"

    35.     echo "Installation requires you to have administrator priviliges (sudo access) "
    36.     echo "on your host. Do you have administrator privilieges?"

    37.     # Force the user to answer.  Maybe the user does not want to continue
    38.     while true;
    39.     do
    40.         read -p "Type 'y' to continue or 'n' to exit the installation: " REPLY
    41.         if [ "$REPLY" = 'y' -o "$REPLY" = 'n' ]; then
    42.             break;
    43.         fi
    44.     done

    45.     if [ "$REPLY" = 'n' ]; then
    46.         echo "Installation is aborted by user"
    47.         exit 1
    48.     fi

    49.     echo "Performing $cmd"
    50.     $cmd
    51.     check_status
    52. fi
    53. # Print the exit statement to the console
    54. exit_footer
    复制代码
       后面试了下,发现关于编译QT那里还是出现问题了,后面准备联系下官方技术支持,看下具体什么原因
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2024-10-14 08:33
  • 签到天数: 2451 天

    连续签到: 1 天

    [LV.Master]伴坛终老

    发表于 2016-12-21 23:50:38 | 显示全部楼层
    谢谢分享           
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    手机版|小黑屋|与非网

    GMT+8, 2024-11-20 15:28 , Processed in 0.119607 second(s), 18 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.