Skip to content

Using LWIP on Windows #6463

@gvanem

Description

@gvanem

First off, building MicroPython with MSVC and the ports/windows/micropython.vcxproj was exceptionally easy. Good job!

But when trying to add support for LwIP with:

  • -DMICROPY_PY_LWIP=1
  • -DMICROPY_ENABLE_SCHEDULER=1
  • Add extmod/modlwip.c and lib/netutils/netutils.c.

And trying to figure out where to add that in the .vcxproj files was not so easy. So I hacked up my own GNU-makefile.
And then getting to the link stage, I got this error:

lwip32.lib(sys_arch.obj) : error LNK2005: _sys_arch_protect already defined in MicroPython.lib(modlwip.obj)
lwip32.lib(sys_arch.obj) : error LNK2005: _sys_arch_unprotect already defined in MicroPython.lib(modlwip.obj)

Is there another define that should be set to avoid this? Adding -DNO_SYS=1 did not help.

Or are we supposed to link with a dynamic LwIP import-library? Since that works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy