I can't get the version of dlib without compiling it using cmake.
This commit is contained in:
8
pdlib.cc
8
pdlib.cc
@@ -35,7 +35,7 @@ extern "C" {
|
||||
#include "src/face_landmark_detection.h"
|
||||
#include "src/vector.h"
|
||||
|
||||
#include <dlib/revision.h>
|
||||
//#include <dlib/revision.h>
|
||||
|
||||
/* If you declare any globals in php_pdlib.h uncomment this:
|
||||
ZEND_DECLARE_MODULE_GLOBALS(pdlib)
|
||||
@@ -221,9 +221,9 @@ PHP_MINFO_FUNCTION(pdlib)
|
||||
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_header(2, "pdlib support", "enabled");
|
||||
php_info_print_table_row(2, "pdlib extension version", PHP_PDLIB_VERSION);
|
||||
snprintf(buf, sizeof(buf), "%d.%d.%d", DLIB_MAJOR_VERSION, DLIB_MINOR_VERSION, DLIB_PATCH_VERSION);
|
||||
php_info_print_table_row(2, "dlib library version", buf);
|
||||
// php_info_print_table_row(2, "pdlib extension version", PHP_PDLIB_VERSION);
|
||||
// snprintf(buf, sizeof(buf), "%d.%d.%d", DLIB_MAJOR_VERSION, DLIB_MINOR_VERSION, DLIB_PATCH_VERSION);
|
||||
// php_info_print_table_row(2, "dlib library version", buf);
|
||||
#ifdef DLIB_USE_CUDA
|
||||
php_info_print_table_header(2, "DLIB_USE_CUDA", "true");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user