Important: Please read the Qt Code of Conduct -

Build dynamic library and change the extension from .dll to .pyd

  • Hi,

    I'm not quite familiar with QMake (CMake) so I decided to ask.
    I have a project called PyBind11_proba
    I want to build it as a library so in QMake I write:

    TEMPLATE = lib

    Then I need that .dll labrary have a name myLib.pyd
    How to do that?

    Also as I use pybind11 it become possible to use myLib.pyd in python and C++. So how to add this dynamic library to other Qt project then?

Log in to reply