Linux installation

License authorization

[Single machine online authorization option]

  • ./tools/licenceAuthOnline [SN_CODE]

[Single machine offline authorization option]

  • ./tools/licenceLocalInfo [SN_CODE] [OUTPUT_FILE]. (will generate device fingerprint OUTPUT_FILE).

  • Send us the device fingerprint file

  • We generate an authorization file based on the fingerprint file and send it to you

  • ./tools/licenceAuthOffline [UPDATE_FILE]

[Group authorization option]

  • ./tools/licenceSetLocalServer [IP] [PORT], (IP PORT is the IP and port number of the group license server)

Set environment variables

  1. source setup_env.sh to set environment variables, but this is only valid for the current terminal

  2. You can also add the following two lines to the end of the /etc/profile file, permanently effective

export DFACE_SDK_ROOT={sdk_path}
export LD_LIBRARY_PATH={sdk_path}/lib:{sdk_path}/3rdparty/opencv/lib

Note: Replace {sdk_path} with the actual absolute path of dface_sdk

QT demo running

  1. Command line ./qt_demon.sh can run

QT demo project configuration

  1. QT Creator opens {sdk_path}/example/cpp/dface_qt_demo project

  2. Double-click Projects->Run->Run Environment

  • add enviroment LD_LIBRARY_PATH={sdk_path}/lib:{sdk_path}/3rdparty/opencv/lib

  • add enviroment DFACE_SDK_ROOT= {sdk_path}

  • see {sdk_path}/example/cpp/dface_qt_demo_setup.jpg for details

../_images/dface_qt_demo_setup_linux.jpg