Navigation

    全志在线开发者论坛

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

    下位机无法执行编译好的程序

    MR Series
    2
    5
    1844
    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.
    • Q
      qiao_sh_pudong LV 4 last edited by xiaowenge

      我在哪吒开发板上安装了ubuntu官方提供的镜像,并且能够成功启动。但是,问题在于我在上位机编写好的程序在下位机无法运行,甚至显示 "No such file or directory"。
      所使用的编译链为:
      679984f3-a7e9-4ad8-9faa-c0b5dee1ad28-image.png
      开发板的报错
      9eaf5fea-f386-4ded-86ae-95665af66e2e-image.png
      系统信息:

      005a137c-e2a2-4442-b518-5314cdd7b4df-image.png

      Q 1 Reply Last reply Reply Quote Share 0
      • Q
        qiao_sh_pudong LV 4 @qiao_sh_pudong last edited by

        @qiao_sh_pudong 编译选项使用的是:
        c0890631-6921-46ea-85c6-1f94a261eab0-image.png

        1 Reply Last reply Reply Quote Share 0
        • YuzukiTsuru
          柚木 鉉 LV 9 last edited by

          交叉编译?大概是工具链不匹配,试试-static

          Q 1 Reply Last reply Reply Quote Share 0
          • Q
            qiao_sh_pudong LV 4 @YuzukiTsuru last edited by

            @yuzukitsuru 谢谢 在有些情况下添加 "-static" 起作用,但是在 ubuntu os 下不行,后续查询其指令集,仅支持 "rv64imafdc" 并不支持 "v"、"u"

            YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
            • YuzukiTsuru
              柚木 鉉 LV 9 @qiao_sh_pudong last edited by

              @qiao_sh_pudong ubuntuu不支持芯片扩展指令集,不能用这些扩展功能

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

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

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