andlabs / libui

Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
Other
10.72k stars 614 forks source link

Warning: PHP Startup: Unable to load dynamic library 'ui.so' #502

Open wenzhizhong opened 4 years ago

wenzhizhong commented 4 years ago

Hello Mr!
I run 'make test' command, but PHP can`t load ui.so. what should I do ?


root@qing-PC:/usr/local/src/php_ui/ui# make test

Build complete. Don't forget to run 'make test'.

===================================================================== PHP : /opt/lampp/bin/php Warning: PHP Startup: Unable to load dynamic library 'ui.so' (tried: /usr/local/src/php_ui/ui/modules/ui.so (/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates), /usr/local/src/php_ui/ui/modules/ui.so.so (/usr/local/src/php_ui/ui/modules/ui.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP_SAPI : cli PHP_VERSION : 7.2.19 ZEND_VERSION: 3.2.0 PHP_OS : Linux - Linux qing-PC 5.3.0-3-amd64 #1 SMP deepin 5.3.15-6apricot (2020-04-13) x86_64 INI actual : /usr/local/src/php_ui/ui/tmp-php.ini More .INIs :

PHP : /opt/lampp/bin/phpdbg PHP_SAPI : PHP Warning: PHP Startup: Unable to load dynamic library 'ui.so' (tried: /usr/local/src/php_ui/ui/modules/ui.so (/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates), /usr/local/src/php_ui/ui/modules/ui.so.so (/usr/local/src/php_ui/ui/modules/ui.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'ui.so' (tried: /usr/local/src/php_ui/ui/modules/ui.so (/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates), /usr/local/src/php_ui/ui/modules/ui.so.so (/usr/local/src/php_ui/ui/modules/ui.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 phpdbg PHP_VERSION : 7.2.19 ZEND_VERSION: 3.2.0 PHP_OS : Linux - Linux qing-PC 5.3.0-3-amd64 #1 SMP deepin 5.3.15-6apricot (2020-04-13) x86_64 INI actual : /usr/local/src/php_ui/ui/tmp-php.ini More .INIs :

CWD : /usr/local/src/php_ui/ui Extra dirs : VALGRIND : Not used

TIME START 2020-08-16 03:28:02

No tests were run.

andlabs commented 4 years ago

The library is built as libui.so, not ui.so. But if you are using someone's PHP binding, you'll likely need to file a bug with the PHP binding author first, since the problem could be how they are distributing it.