Skip to main content
Visitor II
March 17, 2022
Solved

Pi wrapper for the st25ru3993 hpev : 'pythread_create' is undefined

  • March 17, 2022
  • 1 reply
  • 577 views

I am trying to compile the python wrapper for the st25ru3993 hpev to the raspberry pi but get errors saying 'pythread_create' is undefined.

0693W00000Kd41GQAR.pnghere is a picture of the errors.

I am trying to compile the python wrapper for the st25ru3993 hpev to the raspberry pi. When I run the python demonstration it says the dll is missing. I goto compile the wrapper, but I am getting these errors. I have tried to fix this with the -pthread and -lpthread flags but neither of them seem to work. Its possible i am doing it wrong, but I think this is correct.

0693W00000Kd42xQAB.pngAny help would be appreciated I have spent hours trying to fix this issue.

    This topic has been closed for replies.
    Best answer by Nick K

    Hello AChap.2,

    checked now the STUHFL wrapper VS2017 project and you are right the Release/ARM configuration has this issue.

    The Debug/ARM configuration in VS2017 and also the makefile for GCC, which is also included in the SDK, works fine.

    If you want to use the VS2017 project to do a release ARM build for the STUHFL wrapper shared object for your RPI you need to add the -pthread switch to both the C/C++ and Linker "Additional options". Also the target name and extension must be modified to generate libSTUHFL.so instead of STUHFL.out. For the filename and extension modifications please have a look to the Debug configuration in section "General"

    BR

    Nick

    1 reply

    Nick KAnswer
    ST Employee
    March 21, 2022

    Hello AChap.2,

    checked now the STUHFL wrapper VS2017 project and you are right the Release/ARM configuration has this issue.

    The Debug/ARM configuration in VS2017 and also the makefile for GCC, which is also included in the SDK, works fine.

    If you want to use the VS2017 project to do a release ARM build for the STUHFL wrapper shared object for your RPI you need to add the -pthread switch to both the C/C++ and Linker "Additional options". Also the target name and extension must be modified to generate libSTUHFL.so instead of STUHFL.out. For the filename and extension modifications please have a look to the Debug configuration in section "General"

    BR

    Nick