# Reconnaissance faciale - problème avec Pdlib

**URL:** <https://help.nextcloud.com/t/reconnaissance-faciale-probleme-avec-pdlib/242859>\
**Category:** 🌐 International support\
**Tags:** français-french, php81\
**Created:** [April 3, 2026, 9:21am UTC](https://help.nextcloud.com/t/reconnaissance-faciale-probleme-avec-pdlib/242859 "2026-04-03T09:21:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![corias](https://help.nextcloud.com/letter_avatar/corias/32/5_5575768a8748004e209b776fc1b2916d.png) [@corias](https://help.nextcloud.com/u/corias)\
**Post date:** [April 3, 2026, 9:21am UTC](https://help.nextcloud.com/t/reconnaissance-faciale-probleme-avec-pdlib/242859/1 "2026-04-03T09:21:22Z")

</div>

Bonjour,

Je voudrais utiliser la reconnaissance faciale sur mon NC.

Je suis parvenu avec difficultés à installer l’extension requise pdlib mais lorsque je veux installer un modèle j’ai le message suivant

```auto
sudo -u www-data php occ face:setup -m 1
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdlib.so’ (tried: /usr/lib/php/20220829/pdlib.so (/usr/lib/php/20220829/pdlib.so: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/pdlib.so.so (/usr/lib/php/20220829/pdlib.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

You do not meet the dependencies to install the model 1 (Default)
Summary: The PDlib PHP extension is not loaded

```

J’ai donc copié pdlib.so vers le dossier /usr/lib/php/20220829/ et après j’ai le message suivant:

`Module compiled with module API=20210902`  
`PHP compiled with module API=20220829`  
`These options need to match`  
`in Unknown on line 0`

Quand je lance les tests de l’extension j’ai un test en fail que je ne parviens pas à résoudre.  
J’ai lu qu’il suffisait de mettre à jour la version du fichier test (update the test file tests/version.phpt to expect the updated version 1.1.0) mais ne vois pas comment faire.

```auto
Build complete.
Don’t forget to run ‘make test’.

=====================================================================
PHP : /usr/bin/php8.1
PHP_SAPI : cli
PHP_VERSION : 8.1.34
ZEND_VERSION: 4.1.34
PHP_OS : Linux - Linux victor-NAS 6.8.0-106-generic #106~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 6 08:44:59 UTC x86_64
INI actual : /home/victor/dlib/dlib/build/pdlib/tmp-php.ini
More .INIs :
CWD : /home/victor/dlib/dlib/build/pdlib
Extra dirs :
VALGRIND : Not used

TIME START 2026-04-03 08:29:46

PASS Check for pdlib presence [tests/001.phpt]
PASS Basic tests for chinese_whispers [tests/chinese_whispers_basic.phpt]
PASS Edge given in edges array for chinese_whispers functions is associative array [tests/chinese_whispers_edge_associative_array_error.phpt]
PASS Edge elements given in edges array for chinese_whispers functions are not of long type [tests/chinese_whispers_edge_elements_not_long.phpt]
PASS Edge given in edges array for chinese_whispers functions is not having all values to be arrays with 2 elements [tests/chinese_whispers_edge_not_2_element_error.phpt]
PASS Edge given in edges array is not array for chinese_whispers functions [tests/chinese_whispers_edge_not_array_error.phpt]
PASS Args given to chinese_whispers functions is not correct [tests/chinese_whispers_wrong_arg_type_error.phpt]
PASS Testing CnnFaceDetection constructor without arguments [tests/cnn_face_detection_ctor_error.phpt]
PASS Testing CnnFaceDetection constructor with model that do not exist [tests/cnn_face_detection_ctor_model_not_found_error.phpt]
PASS Frontal face detection. [tests/dlib_face_detection.phpt]
PASS Testing FaceLandmarkDetection constructor without arguments [tests/face_landmark_detection_ctor_error.phpt]
PASS Testing FaceRecognition constructor without arguments [tests/face_recognition_ctor_error.phpt]
SKIP Full test for face recognition - download models, detect faces, landmark detection and face recognition. [tests/integration_face_recognition.phpt] reason: bz2 extension missing
PASS Basic tests for dlib_vector_length [tests/vector_length.phpt]
FAIL Just test php extension version [tests/version.phpt]

TIME END 2026-04-03 08:29:50

=====================================================================
TEST RESULT SUMMARY

Exts skipped : 0
Exts tested : 16

Number of tests : 15 14
Tests skipped : 1 ( 6.7%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 1 ( 6.7%) ( 7.1%)
Tests passed : 13 ( 86.7%) ( 92.9%)

Time taken : 4 seconds

=====================================================================
FAILED TEST SUMMARY

Just test php extension version [tests/version.phpt]

You may have found a problem in PHP.

```

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [July 2, 2026, 9:22am UTC](https://help.nextcloud.com/t/reconnaissance-faciale-probleme-avec-pdlib/242859/2 "2026-07-02T09:22:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
