View my account

Building the Python wrappers within the RealsenseID SDK

Comments

3 comments

  • Yu-Chern Peh

    Hi Rukshan Fonseka,

     

    I also faced the same error when building Python wrapper with the latest RealSenseID SDK. However, using RealSenseID SDK version v0.23.0 worked for me.

     

    Sharing my steps:

    sudo rm -r RealSenseID

    git clone -b v0.23.0 https://github.com/IntelRealSense/RealSenseID.git

    cd RealSenseID

    mkdir build && cd build

    cmake -DRSID_PREVIEW=ON -DRSID_SECURE=ON -DRSID_PY=ON -DRSID_SAMPLES=1 ..

    make

     

     

    Regards,

    Yu Chern

    0
    Comment actions Permalink
  • Rukshan Fonseka

    I've tried your instructions but still get the same issue. Can you tell me what version of Ubuntu, gcc, g++, python etc you are using so that I can match the versions?

     

    /home/rukshan/RealSenseID/wrappers/python/face_auth_py.cc:594:26:   required from here
    /home/rukshan/RealSenseID/build/3rdparty/pybind11/include/pybind11/detail/init.h:63:64: error: no matching function for call to ‘RealSenseID::FaceAuthenticator::FaceAuthenticator(<brace-enclosed initializer list>)’
     inline Class *construct_or_initialize(Args &&...args) { return new Class{std::forward<Args>(args)...}; }
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /home/rukshan/RealSenseID/wrappers/python/face_auth_py.cc:5:0:
    /home/rukshan/RealSenseID/src/../include/RealSenseID/FaceAuthenticator.h:39:14: note: candidate: RealSenseID::FaceAuthenticator::FaceAuthenticator(RealSenseID::SignatureCallback*)
         explicit FaceAuthenticator(SignatureCallback* callback);
                  ^~~~~~~~~~~~~~~~~
    /home/rukshan/RealSenseID/src/../include/RealSenseID/FaceAuthenticator.h:39:14: note:   candidate expects 1 argument, 0 provided
    wrappers/python/CMakeFiles/rsid_py.dir/build.make:86: recipe for target 'wrappers/python/CMakeFiles/rsid_py.dir/face_auth_py.cc.o' failed
    make[2]: *** [wrappers/python/CMakeFiles/rsid_py.dir/face_auth_py.cc.o] Error 1
    CMakeFiles/Makefile2:1388: recipe for target 'wrappers/python/CMakeFiles/rsid_py.dir/all' failed
    make[1]: *** [wrappers/python/CMakeFiles/rsid_py.dir/all] Error 2
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    0
    Comment actions Permalink
  • Yu-Chern Peh

    Hi Rukshan Fonseka,

    I am using Ubuntu 18.04 with default Python3 version, 3.6.9 and gcc 7.5.0.

     

    Regards,

    Yu Chern

    0
    Comment actions Permalink

Please sign in to leave a comment.