Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • 社区主页

    官方提供的交叉编译器编出的可执行文件在debian下运行不了

    D1-H/D1s
    2
    2
    94
    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.
    • F
      fengf LV 2 last edited by

      用官方SDK提供的交叉编译器编译生成的可执行程序helloworld2,D1烧写的sipeed debian的固件。
      将其放在debian下执行,失败
      ce9bf484-7c05-40d9-838b-9576a63c2e1f-image.png

      通过ldd和file命令查看也没有发现问题
      52170549-85a0-4963-8e16-1d092f14e88b-image.png

      请问问题出在哪?

      1 Reply Last reply Reply Quote Share 0
      • W
        whycan晕哥 LV 8 last edited by xiaowenge

        gcc编译的时候加 -static参数试一试,不过仍然有几率出现指令错误,因为平头哥魔改了编译器。

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

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

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