Navigation

    全志在线开发者论坛

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

    WSL1 Ubuntu-16.04下编译成功,pack时提示dragon无法运行

    编译和烧写问题专区
    2
    2
    902
    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.
    • L
      lyscut LV 5 last edited by

      如题,用Sipeed家的SDK,V831编译过了,pack时提示:

      /mnt/g/tina/scripts/pack_img.sh: line 1404: /mnt/g/tina/out/host/bin/dragon: cannot execute binary file: Exec format error
      

      执行file发现时32位ELF,无法在64位的WSL1下运行,如何解决?

      万望各位不吝赐教!

      1 Reply Last reply Reply Quote Share 0
      • Q
        qianchenzhumeng LV 3 last edited by

        wsl1 不支持运行 32 位的二进制文件,升级成 wsl2 就可以了。

        # 查看名称和版本号
        wsl -l -v
        

        比如:

          NAME            STATE           VERSION
        * Ubuntu          Running         1
          Ubuntu-18.04    Stopped         2
        

        设置版本:

        wsl --set-version Ubuntu 2
        

        等个几分钟就可以了。

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

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

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