Hi,
I'm trying to rewrite one of the examples to a new project (so it's easier to read and understand) but I keep getting this error while compiling:
In file included from /home/x/newproject/lib/mbedtls/include/mbedtls/ecdh.h:38,
from /home/x/newproject/lib/mbedtls/3rdparty/everest/library/everest.c:26:
/home/x/newproject/lib/mbedtls/include/mbedtls/ecp.h:362:2: error: #error "Missing definition of MBEDTLS_ECP_MAX_BITS"
362 | #error "Missing definition of MBEDTLS_ECP_MAX_BITS"
| ^~~~~
make[2]: *** [lib/mbedtls/3rdparty/everest/CMakeFiles/everest.dir/build.make:76: lib/mbedtls/3rdparty/everest/CMakeFiles/everest.dir/library/everest.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:2151: lib/mbedtls/3rdparty/everest/CMakeFiles/everest.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It's definitely my mistake, since the original examples compile successfully . So far I found out that for some reason the version of mbedtls that is being pulled to my project differs from the one that is being pulled to this repo's examples - it compiles fine if I just move the library from examples dir to my new project dir. I have tried manually setting mbedtls version to the same commit like in examples dir, but it doesn't help. So I'm thinking if maybe I can just "calm mbedtls down" with setting what it needs, but setting MBEDTLS_ECP_MAX_BITS in port/mbedtls/inc/ssl_config.h doesn't do anything...
I realize this description is messy, but I'm honestly out of ideas how to resolve this issue and where to start... And help would be appreciated.
Hi, I'm trying to rewrite one of the examples to a new project (so it's easier to read and understand) but I keep getting this error while compiling:
It's definitely my mistake, since the original examples compile successfully . So far I found out that for some reason the version of mbedtls that is being pulled to my project differs from the one that is being pulled to this repo's examples - it compiles fine if I just move the library from examples dir to my new project dir. I have tried manually setting mbedtls version to the same commit like in examples dir, but it doesn't help. So I'm thinking if maybe I can just "calm mbedtls down" with setting what it needs, but setting
MBEDTLS_ECP_MAX_BITS
inport/mbedtls/inc/ssl_config.h
doesn't do anything...I realize this description is messy, but I'm honestly out of ideas how to resolve this issue and where to start... And help would be appreciated.