wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Building wolfssl in Visual studio 2015 with the flag in user_settings.h - MICROCHIP_PIC32 fails

Open Michael-lindell opened this issue 2 years ago • 1 comments

Version

Latest commit of the repo. Visual Studio 2015 Community Edition

Description

Greetings,

I am trying to build the wolfssl static library and DLL to use it with Microchip pic32 platform, and more specifically for the MQTT functionality. The setup I am using is Visual Studio 2015 Community Edition. I am following this guide on how to build the wolfSSL static library: https://www.wolfssl.com/docs/visual-studio/?_gl=1z3cqnw_gaOTcwMzEyMTcuMTY5Njk0MjIzOQ.._ga_19EKT1MGL2*MTY5ODIxNDQwOS4yLjEuMTY5ODIxODUxNS41MC4wLjA.

I am able to build the release / debug version of the solution for pic32 by adding the following on line 89 in <wolfssl_root>/wolfssl/wolfcrypt/wolfmath.h: #include <wolfssl/wolfcrypt/tfm.h>

I added this line since it was the first reference to the mp_init structure (which was the initial error I had to resolve) I could find in the repo. Is this correct or is it supposed to be defined somewhere else?

Furthermore, when I am trying to build the same for the DLL Release / Debug version of the solution I get errors with unresolved external symbols. More precise these are the errors I am getting: Unresolved external symbol InetPton ssl.obj Unresolved external symbol wc_RsaPublicKeyDecodeRaw asn.obj Unresolved external symbol mp_rand rsa.obj Unresolved external symbol get_digit_count rsa.obj Unresolved external symbol mp_revirese tfm.obj Unresolved external symbol wc_off_on_addr tfm.obj

Can you help me solve these issues?

Best regards, Michael

Michael-lindell avatar Oct 25 '23 09:10 Michael-lindell

Hi @Michael-lindell , My name is Anthony Hu and I am a member of the wolfSSL team. I'm not sure we support building on visual studio for the pic32. Please see the following page for some guidance : https://www.wolfssl.com/docs/pic32/ .

Warm regards, Anthony

anhu avatar Oct 25 '23 16:10 anhu