No... i cant figure it out how i input the -Wno-error=unused-const-variable and -Wno-unused-const-variable flags.
can you tell me what to do ?
EDIT:
I figured how to insert the flags. Now it gets past the previus error. But cant still not compile. I am again in the point of my previous post. Here...
The flags are inserted in the micropython.cmake file i posted above.
Just add this line at the end :
Now...does anyone have any suggestions how to proceed ?
Giorgos
can you tell me what to do ?
EDIT:
I figured how to insert the flags. Now it gets past the previus error. But cant still not compile. I am again in the point of my previous post. Here...
Code:
/home/labcnc/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: CMakeFiles/micropython.elf.dir/home/labcnc/Desktop/micropython/modules/micropython_ugfx/modugfx.c.obj:(.literal+0x14): undefined reference to `ugfx_surface_c_free'
/home/labcnc/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: CMakeFiles/micropython.elf.dir/home/labcnc/Desktop/micropython/modules/micropython_ugfx/modugfx.c.obj: in function `ugfx_display_surface_refresh':
modugfx.c:(.text+0x39b): undefined reference to `ugfx_surface_c_free'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Makefile:34: recipe for target 'all' failed
make: *** [all] Error 2
The flags are inserted in the micropython.cmake file i posted above.
Just add this line at the end :
Code:
target_compile_options(usermod_ugfx INTERFACE -Wno-error=unused-const-variable -Wno-unused-const-variable)
Now...does anyone have any suggestions how to proceed ?
Giorgos