oops-org-php / mod_ncurses Goto Github PK
View Code? Open in Web Editor NEWphp ncurses backend - Terminal screen handling and optimization package
License: Other
php ncurses backend - Terminal screen handling and optimization package
License: Other
Hello -
Is there anyway that you could add a step-by-step to compile and add this to php? I am having a lot of trouble compiling because of missing flags/libraries etc ... but I am very, very interested in this project as ncurses use to be pre-packed in some distros of linux years ago and I have not been able to find one recently.
Thanks
Zack
When make test, module loading fails.
[user@host mod_ncurses]# make test PHP_EXECUTABLE=/opt/php-qa/php80/bin/php
..
Warning: PHP Startup: Unable to load dynamic library 'ncurses.so' (tried: /path/mod_ncurses/modules/ncurses.so (/path/mod_ncurses/modules/ncurses.so: undefinedymbol: ncurses_functions), /path/mod_ncurses/modules/ncurses.so.so (/path/mod_ncurses/modules/ncurses.so.so: cannot open shared object file: No such file or dictory)) in Unknown on line 0
..
Could you tell me why this examples doesn't compile:
ncurses examples
Perhaps something is wrong with the mod_ncurses?
===
php-cli 7.4
As of PHP 8.0.0, arginfo has become mandatory. Prepare to automatically generate arginfo configuration using stub supported by PHP 8.
no context
this function is decalre in ncurses_functions.c, but missing ZEND_FE(ncurses_mvvline).
Hello and thank you in advance for this mod_ncurses
it does not compile and here what is going on but first here the compilation env:
VS2017 build tools
$ phpsdk_version
PHP SDK 2.2.0-dev
PDcurses built with:-
nmake -f Makefile.vc DEBUG=Y WIDE=Y UTF8=Y all
build errors starts with this line:
pecl\ncurses-1.0.2\ncurses_functions.c(1284): warning C4013: 'putp' undefined; assuming extern returning int
THEN near the end:
Creating library D:\php-sdk2\phpmaster\vc15\x64\php-7.3.2-src\x64\Release_TS\php_ncurses.lib and object D:\php-sdk2\phpmaster\vc15\x64\php-7.3.2-src\x64\Release_TS\php_ncurses.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
ncurses_functions.obj : error LNK2019: unresolved external symbol vidattr referenced in function zif_ncurses_vidattr@@16
ncurses_functions.obj : error LNK2019: unresolved external symbol putp referenced in function zif_ncurses_putp@@16
D:\php-sdk2\phpmaster\vc15\x64\php-7.3.2-src\x64\Release_TS\php_ncurses.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe"' : return code '0x460'
Stop.
WHAT am I doing wrong?
mod_ncurses compile_session with errors.txt
ncurses_getmouse does nothing in PHP 7. I looked at ncurses_functions.c and line 2052 needs "z" to be FMT.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.