Build problem, include library?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
davef
Posts: 24
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Build problem, include library?

Post by davef » Sun Aug 02, 2020 4:00 am

Trying to build in ussl support for STM32, specifically axtls and get
the following error:.

Code: Select all

In file included from ../../lib/axtls/ssl/ssl.h:75:0,
                 from ../../extmod/modussl_axtls.c:37:
../../lib/axtls/ssl/tls1.h:43:21: fatal error: version.h: No such file or directory
 #include "version.h"
I see that there is a version.h file in my /micropython-1.12/micropython/extmod/axtls-includes/ folder.

I read about a similar problem in:
https://github.com/micropython/micropyt ... untu-16.04
... but before I get a hold of a 64bit Linux box with the latest Ubuntu installed and then
go and get the latest arm-none-eabi-gcc I just wanted to be fairly sure that I wasn't
doing something else wrong.

I can build the port I want without including ussl so it makes me think that it is
not a compiler issue.

Using Xubuntu 14.04LTS and
arm-none-eabi-gcc 4.9.3
Any clues appreciated.
Dave

azubi777
Posts: 3
Joined: Mon Aug 03, 2020 12:34 pm

Re: Build problem, include library?

Post by azubi777 » Mon Aug 03, 2020 1:07 pm

Sup

it is not a compiler problem. As the error says the compiler couldn't find the header file.
I don't know which IDE you are using but try to add it through your IDE to your project files manually.
Or if its a built-in header file try

Code: Select all

#include <version.h> 

Cheers,
777

davef
Posts: 24
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Build problem, include library?

Post by davef » Mon Aug 03, 2020 7:39 pm

I am building from the command line.

I can build ussl in the unix port, but not for the stm32 default PYBV10 port.

I tried changing #include "mbedtls/version.h" to #include <version.h> in moduhashlib.c and got the same result.

I assume that one modifies the /stm32/mpconfigport.h to add in the following:

Code: Select all

#define MICROPY_PY_USSL  (1)
#define MICROPY_SSL_MBEDTLS  (1)
Thanks for the suggestion.
Dave

Post Reply