Author Topic: Utasker Simulator 1.4 not compiling (mbedtls)  (Read 774 times)

Offline SomeUser

  • Newbie
  • *
  • Posts: 4
    • View Profile
Utasker Simulator 1.4 not compiling (mbedtls)
« on: December 18, 2017, 03:46:57 PM »
Hello, following the getting started section of the following document
http://www.utasker.com/docs/KINETIS/uTaskerV1.4_Kinetis.pdf
I seem to be unable to get the simulator to compile.

Using visual studio 2017 community edition I get the following errors:

Code: [Select]
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\x509.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\x509_crt.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\pk_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\rsa.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\sha256.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\ssl_tls.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\ecp.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\md.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\md_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\pem.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\asn1parse.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\asn1write.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\bignum.obj 1
Error LNK2001 unresolved external symbol _mbedtls_calloc uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\cipher_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\x509_crt.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\pk_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\rsa.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\sha256.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\ssl_tls.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\ecp.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\md.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\md_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\pem.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\asn1parse.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\asn1write.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\bignum.obj 1
Error LNK2001 unresolved external symbol _mbedtls_free uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\cipher_wrap.obj 1
Error LNK2001 unresolved external symbol _mbedtls_snprintf uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\oid.obj 1
Error LNK2001 unresolved external symbol _mbedtls_snprintf uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\x509.obj 1
Error LNK2001 unresolved external symbol _mbedtls_snprintf uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\x509_crt.obj 1
Error LNK1120 3 unresolved externals uTaskerKinetis .\uTasker-GIT-Kinetis\Applications\uTaskerV1.4\Simulator\uTasker___Win32_uTasker_Kinetis_plus_GCC_build\uTaskerKinetis.exe 1

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2955
    • View Profile
    • uTasker
Re: Utasker Simulator 1.4 not compiling (mbedtls)
« Reply #1 on: December 18, 2017, 04:05:07 PM »
Hi

There are (new) 4 targets in the VS project:
- uTasker Kinetis
- uTasker Kinetis plus GNU build
- uTasker kinetis - SSL
- uTasker Kinetis - SSL plus GNU build

Make sure that you are using "uTasker Kinetis" and not one with SSL.

If one with SSL is enabled also mbedSSL code will be included, which needs the missing functions, which are however only available if a secure protocol is really being enabled.
Presently the secure layer is experimental and cannot be used for productive work - it should go live in January 2018.

I don't know why VS 2017 seems to default to the wrong target (it should default to "uTasker Kinetis") but it is easy to fix as above

Regards

Mark

Offline SomeUser

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Utasker Simulator 1.4 not compiling (mbedtls)
« Reply #2 on: December 19, 2017, 12:29:30 AM »
Wow, I'm impressed by
how fast you responded!  :D

That solved my problem indeed.
Thank you very much!

Sorry for not figuring it out on my own.  :-[