STMCubeIDE + LwIP : lwip/opt.h no such file
I built a tiny project from scratch with LwIP (without FreeRTOS).
CubeMX generates a project without any errors which I can compile and run.
But when I modify my source code in main.c every compile stops with:
../Inc/lwip.h:28:10: fatal error: lwip/opt.h: No such file or directory
In Tool Settings->MCU GCC Compiler->Includes are no entries in the list.
I added at least:
../Middlewares/Third_Party/LwIP/src/include
../Middlewares/Third_Party/LwIP/system
../Middlewares/Third_Party/LwIP/src/include/lwip
../Middlewares/Third_Party/LwIP/src/include/lwip/apps
../Middlewares/Third_Party/LwIP/src/include/lwip/priv
../Middlewares/Third_Party/LwIP/src/include/lwip/prot
Same problem.
But when I make a change in CubeMX, save it and new code is generated
the project can be compiled.
How can I fix this to be able to compile a project with LwIP in STMCubeIDE ?
Thank you.
