Navigation

    全志在线开发者论坛

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

    f133 melis 1.4 wifi配置:bcm_wifi.c:23:10: fatal error: lwip/tcpip.h: No such file or directory

    MR Series
    1
    6
    2489
    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.
    • I
      iincity LV 5 last edited by xiaowenge

      按文档<Melis_RTOS_Wi-Fi_开发指南.pdf>配置,编译出现问题如下:
      选择 ntp 组件出现如下冲突:

      ./ekernel/components/thirdparty/net/rt-thread/lwip/src/include/lwip/sockets.h:642:51: error: conflicting types for 'lwip_recvfrom'
       #define recvfrom(s,mem,len,flags,from,fromlen)    lwip_recvfrom(s,mem,len,flags,from,fromlen)
                                                         ^~~~~~~~~~~~~
      ekernel/components/thirdparty/net/rt-thread/net_tools/netutils-master/ntp/ntp.c:39:12: note: in expansion of macro 'recvfrom'
       extern int recvfrom(int s, void *mem, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
                  ^~~~~~~~
      ./ekernel/components/thirdparty/net/rt-thread/lwip/src/include/lwip/sockets.h:593:9: note: previous declaration of 'lwip_recvfrom' was here
       ssize_t lwip_recvfrom(int s, void *mem, size_t len, int flags,
               ^~~~~~~~~~~~~
      ./ekernel/components/thirdparty/net/rt-thread/lwip/src/include/lwip/sockets.h:648:51: error: conflicting types for 'lwip_sendto'
       #define sendto(s,dataptr,size,flags,to,tolen)     lwip_sendto(s,dataptr,size,flags,to,tolen)
                                                         ^~~~~~~~~~~
      ekernel/components/thirdparty/net/rt-thread/net_tools/netutils-master/ntp/ntp.c:40:12: note: in expansion of macro 'sendto'
       extern int sendto(int s, const void *dataptr, size_t size, int flags, const struct sockaddr *to, socklen_t tolen);
                  ^~~~~~
      ./ekernel/components/thirdparty/net/rt-thread/lwip/src/include/lwip/sockets.h:598:9: note: previous declaration of 'lwip_sendto' was here
       ssize_t lwip_sendto(int s, const void *dataptr, size_t size, int flags,
      

      去掉ntp出现如下编译错误

      ekernel/drivers/drv/source/net/brcm_wifi_libs/src/bcm_wifi.c:23:10: fatal error: lwip/tcpip.h: No such file or directory
       #include "lwip/tcpip.h"
      
      I 1 Reply Last reply Reply Quote Share 1
      • I
        iincity LV 5 @iincity last edited by

        0d761843-6def-4e72-8086-fbbb39e1dc8e-image.png

        I 2 Replies Last reply Reply Quote Share 1
        • I
          iincity LV 5 @iincity last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote Share 0
          • I
            iincity LV 5 @iincity last edited by

            @iincity
            wifi这块好多问题,应该没有做全面测试

            1 Reply Last reply Reply Quote Share 1
            • I
              iincity LV 5 last edited by

              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a(mhd_thread.o): relocations in generic ELF (EM: 40)
              /home/tina/proj/melis-v3.0/melis-4.x-release/source/../toolchain/riscv64-elf-x86_64-20201104//bin/riscv64-unknown-elf-ld: ekernel/drivers/drv/source/net/brcm_wifi_libs/libs/liblwip_mhd_rtthread.a: error adding symbols: file in wrong format
              scripts/Makefile.build:374: recipe for target 'ekernel/drivers/drv/source/net/brcm_wifi_libs/built-in.o' failed
              make[5]: *** [ekernel/drivers/drv/source/net/brcm_wifi_libs/built-in.o] Error 1
              scripts/Makefile.build:457: recipe for target 'ekernel/drivers/drv/source/net/brcm_wifi_libs' failed

              I 1 Reply Last reply Reply Quote Share 1
              • I
                iincity LV 5 @iincity last edited by iincity

                @iincity
                在net drivers选择了brcm ap6203 wifi driver,会导致

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

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

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