Navigation

    全志在线开发者论坛

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

    交叉编译PPP源码的时候修改CC选项报错

    MR Series
    3
    8
    2899
    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.
    • D
      dort91011 LV 5 last edited by q1215200171

      请教一下各位大佬,用D1哪吒在Tina下交叉编译PPP源码的时候,使用./configure生成makefile,然后把整个工程里面所有makefile里面CC=gcc改为CC=/home/whycan/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.2.6/bin/riscv64-unknown-linux-gnu-gcc,但是出现了报错,如果是CC=gcc就没这个问题。这个可能是什么原因呀

      lQLPJxag-gv5nNrNAbjNBi2wVAeGqYivpg8DCM-Da8BaAA_1581_440.png

      1 Reply Last reply Reply Quote Share 0
      • bayche
        bayche LV 6 last edited by

        是链接库的问题还需要加-I头文件和-L链接,这里只修改了编译器链接

        D 1 Reply Last reply Reply Quote Share 0
        • D
          dort91011 LV 5 @bayche last edited by

          @bayche 我的理解修改CC选项以后,对应的链接库不应该还是原先默认的,只是使用的编译器不同。应该不会出现找不到的情况呀

          bayche 1 Reply Last reply Reply Quote Share 0
          • bayche
            bayche LV 6 @dort91011 last edited by

            @dort91011 修改编译器后链接库也需要修改到对应编译器,不能用原来gcc的,可以用objdump查看格式

            D 1 Reply Last reply Reply Quote Share 0
            • D
              dort91011 LV 5 @bayche last edited by

              @bayche 我用objdump查看格式了,然后怎么知道要配置哪些头文件EC6FD32F-8EC5-4850-930C-23DA5A902520.png

              bayche 1 Reply Last reply Reply Quote Share 0
              • bayche
                bayche LV 6 @dort91011 last edited by

                @dort91011 就是这个软件他链接了一个ssl库,这个ssl库也需要交差编译,可能这个ssl库也有链接其他库,要保证整条编译链路都是一个编译器编译的才能链接上

                D 1 Reply Last reply Reply Quote Share 0
                • D
                  dort91011 LV 5 @bayche last edited by

                  @bayche 感谢指导👍 驱动已经移植完能够上网了

                  J 1 Reply Last reply Reply Quote Share 0
                  • J
                    jekeytang LV 2 @dort91011 last edited by

                    @dort91011 请问一下是修改哪里解决的呢?我也遇到了

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

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

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