gtkforphp / cairo

PHP extension for Cairo Graphics Library
Other
27 stars 19 forks source link

PHP7 compiling error #19

Closed swen100 closed 9 years ago

swen100 commented 9 years ago

Hi Elizabeth, i got an error while compiling with PHP7 alpha2 on OpenSuse 13.2:

/bin/sh /usr/src/cairo/libtool --mode=compile cc  -I. -I/usr/src/cairo -DPHP_ATOM_INC -I/usr/src/cairo
/include -I/usr/src/cairo/main -I/usr/src/cairo -I/usr/local/include/php -I/usr/local/include/php/main -I/usr
/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include
/php/ext/date/lib -I/usr/local/include/cairo -I/usr/local/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64
/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include
/libpng16  -DHAVE_CONFIG_H  -g -O2   -c /usr/src/cairo/src/cairo.c -o src/cairo.lo
mkdir src/.libs

 cc -I. -I/usr/src/cairo -DPHP_ATOM_INC -I/usr/src/cairo/include -I/usr/src/cairo/main -I/usr/src/cairo 
-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include
/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/cairo 
-I/usr/local/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libpng16 -DHAVE_CONFIG_H -g -O2 -c 
/usr/src/cairo/src/cairo.c  -fPIC -DPIC -o src/.libs/cairo.o
make: *** No rule to make target '/usr/src/cairo/src/exception.c', needed by 'src/exception.lo'.  Stop.

Just FYI, please don't stress yourself, i only wanted trying it out, nothing more :relaxed:

auroraeosrose commented 9 years ago

I forgot to commit a file :) the extension is still really in flux with stuff moving around

auroraeosrose commented 9 years ago

Ok - try this - you need https://github.com/eos-org/datastructures <- this repo

phpize, configure, make and make install

then do cairo and do make test

Matrix is ported, cairo status, filter, extend, and pattern\type enums are done cairoexception exists (mainly used for handling bad statuses before calls)

all parameter parsing throws PHP typeerrors now :) I'll try to get the rest of the pattern stuff building today - let me know if something is breaking for you!

swen100 commented 9 years ago

Wow Elizabeth, u are awesome. I'll check it out!

swen100 commented 9 years ago

Compilation went fine. All tests (which had been made) passed :)