These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||||
% mkdir phpopengl % cd phpopengl % cvs -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl login % cvs -z3 -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl co -P . % cd php_opengl % (cd opengl ; phpize ; ./configure ; make ) # ☆ これで失敗する ☆ % (cd gult ; phpize ; ./configure ; make )
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:5779: error: 'GL_COLOR_TABLE_GREEN_SIZE_EXT' undeclared (first use in this function)どうやら、これらの ..._EXT は ..._SGI と同じ値っぽい。 #define ..._EXT ..._SGI を片っ端からかけて解決。
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:56: error: 'BYREF_FORCE' undeclared here (not in a function) /home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:59: error: 'BYREF_NONE' undeclared here (not in a function)BYREF_... は PHP4 extension の引数定義に使うもので、 PHP5 では ZEND_BEGIN_ARG_INFO を使うらしい。
% grep BYREF_ ~/src/php/php-4.0.0/*/*.h /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_NONE 0 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE 1 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_ALLOW 2 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE_REST 3とりあえず、全部 NULL に define する。
/* {{{ arginfo */ #ifdef ZEND_ENGINE_2 #define force_ref_first_arg NULL #define force_ref_second_arg NULL #define force_ref_third_arg NULL #define force_ref_fourth_arg NULL #define force_ref_ninth_arg NULL #else (BYREF_ 何とかしてる場所) #endif /* }}} */
% mkdir phpopengl % cd phpopengl % git init (オリジナルの php_opengl samples をコピーしてくる) % git add php_opengl samples % git commit -m 'copy from phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl' % git remote add origin git@github.com:yoya/phpopengl.git % git push origin master改造分を反映(commit & push)
% emacs php_opengl.h (編集) % emacs php_opengl.c (編集) % git commit -a (vi 画面が開くので上の方にコメントを追記) % git push origin master