<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>compiling php-gtk2 on Ubuntu 14.04</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/157 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="157"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document" id="php-gtk2-with-php-5-5-9"&gt;
&lt;h1 class="title"&gt;php-gtk2 with PHP 5.5.9&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p class="first"&gt;Install the following packages: &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;libglib2.0-dev&lt;/span&gt;&lt;/tt&gt;, &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;libgtk2.0-dev&lt;/span&gt;&lt;/tt&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;install the cairo php extension:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ pecl install cairo-beta
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;apply patch from &lt;a class="reference external" href="http://squirrelshaterobots.com/programming/php-gtk/compiling-php-gtk2-on-ubuntu-10/"&gt;http://squirrelshaterobots.com/programming/php-gtk/compiling-php-gtk2-on-ubuntu-10/&lt;/a&gt;&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ git clone https://github.com/php/php-gtk-src
$ cd php-gtk-src
$ wget http://squirrelshaterobots.com/files/phpgtk/phpgtk-buildfix-20090105a.diff
$ patch -p1 &amp;lt; phpgtk-buildfix-20090105a.diff
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;build and compile php-gtk:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ ./buildconf
$ ./configure
$ make
$ sudo make install
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/157/rev-raw/b3f281698a440dad2ceb3fe1d9301a882f24c67c/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/157#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.diff .de1, .diff .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.diff  {font-family:monospace;}
.diff .imp {font-weight: bold; color: red;}
.diff li, .diff .li1 {color: #DDD;}
.diff .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.diff .kw1 {color: #aaaaaa; font-style: italic;}
.diff .re0 {color: #440088;}
.diff .re1 {color: #991111;}
.diff .re2 {color: #00b000;}
.diff .re3 {color: #888822;}
.diff .re4 {color: #888822;}
.diff .re5 {color: #0011dd;}
.diff .re6 {color: #440088;}
.diff .re7 {color: #991111;}
.diff .re8 {color: #00b000;}
.diff .re9 {color: #888822;}
.diff span.xtra { display:block; }
&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="diff"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;1
2
3
4
5
6
7
8
9
10
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;diff -ur php-gtk/build2/build2.mk php-gtk-bob/build2/build2.mk
&lt;span class="re3"&gt;--- php-gtk/build2/build2.mk&amp;#160; &amp;#160; 2005-10-10 14:34:39.000000000 -0400&lt;/span&gt;
&lt;span class="re4"&gt;+++ php-gtk-bob/build2/build2.mk&amp;#160; &amp;#160; &amp;#160; &amp;#160; 2009-01-05 10:46:29.000000000 -0500&lt;/span&gt;
&lt;span class="re6"&gt;@@ -10,6 +10,7 @@&lt;/span&gt;
&amp;#160;
&amp;#160;aclocal.m4: configure.in acinclude.m4
&amp;#160; &amp;#160; &amp;#160; &amp;#160; @echo rebuilding $@
&lt;span class="re8"&gt;+ &amp;#160; &amp;#160; &amp;#160; cat /usr/share/aclocal/lt~obsolete.m4 /usr/share/aclocal/ltoptions.m4 /usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4 &amp;gt;&amp;gt; ./build/libtool.m4&lt;/span&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; cat acinclude.m4 ./build/libtool.m4 php_gtk.m4 &amp;gt; $@
&amp;#160;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/157/rev-raw/b3f281698a440dad2ceb3fe1d9301a882f24c67c/phpgtk-buildfix-20090105a.diff" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/157#phpgtk-buildfix-20090105a.diff"&gt;phpgtk-buildfix-20090105a.diff&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
