<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.eiffelroom.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>eiffelroom - How to install GTK from source code on Solaris 10 - Comments</title>
 <link>http://www.eiffelroom.org/blog/larryliuming/how_to_install_gtk_from_source_code_on_solaris_10</link>
 <description>Comments for &quot;How to install GTK from source code on Solaris 10&quot;</description>
 <language>en</language>
<item>
 <title>You do not have to override</title>
 <link>http://www.eiffelroom.org/blog/larryliuming/how_to_install_gtk_from_source_code_on_solaris_10#comment-415</link>
 <description>&lt;p&gt;You do not have to override your existing version of GTK for that. You can set the `prefix&#039; and compile/install it in your home directory. Then it is just a matter of switching the value of LD_LIBRARY_PATH and PKG_CONFIG_PATH to point to the right version.&lt;/p&gt;

</description>
 <pubDate>Wed, 26 Dec 2007 10:24:09 -0800</pubDate>
 <dc:creator>manus_eiffel</dc:creator>
 <guid isPermaLink="false">comment 415 at http://www.eiffelroom.org</guid>
</item>
<item>
 <title>How to install GTK from source code on Solaris 10</title>
 <link>http://www.eiffelroom.org/blog/larryliuming/how_to_install_gtk_from_source_code_on_solaris_10</link>
 <description>
&lt;h2 id=&quot;toc0&quot;&gt;Background&lt;/h2&gt;
 I&#039;m fixing bug#13770 for Eiffel Studio 6.1.71477, so I have to switch my Solaris 10&#039;s GTK version from default &lt;a href=&quot;http://2.4.1&quot;&gt;2.4.1&lt;/a&gt; to 2.4.9. It means the bug only happens on GTK &lt;a href=&quot;http://2.4.9&quot;&gt;2.4.9&lt;/a&gt; but not 2.4.1. &lt;p&gt;Gtk relies on Glib, Pango, Atk libraries. So if you want to compile Gtk library, you have to prepare all the libraries source codes.&lt;/p&gt;

&lt;p&gt;In practice I only downloaded Gtk, Glib and Pango libraries. Atk library seems not needed in my case.&lt;/p&gt;


&lt;h2 id=&quot;toc1&quot;&gt;Download source codes&lt;/h2&gt;
&lt;p&gt;Please make sure the version values of Glib, Gtk and Pango can&#039;t be too much differences. Otherwise when making GTK, syntax error happens. For me, the exactly error is:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;../../gtk/gtkstatusbar.h:71: error: syntax error before &amp;quot;GMemChunk&amp;quot;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So it&#039;s a good idea to download all of the three libraries from the same page like:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;ftp://ftp.gtk.org/pub/gtk/v2.4/&quot;&gt;ftp://ftp.gtk.org/pub/gtk/v2.4/&lt;/a&gt;&lt;/p&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Before install&lt;/h3&gt;
&lt;p&gt;Rename/remove all library (Gtk, Glib, Pango) related files before `./configure&#039;. Otherwise, it will NOT overwrite OLD glib files. The `./configure&#039;, `make&#039; and `make install&#039; will NOT report any error for this. So it looks everything goes fine, but actually you still using the old one if you haven&#039;t remove them first.&lt;/p&gt;

&lt;p&gt;I use command&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;find /usr -name xxx&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;to find all related library folders, then rename the folder with a `~&#039; prefix.&lt;/p&gt;

&lt;p&gt;When compiling (make) GTK 2.4.9, maybe we have to revert the rename/remove of pango-1.0 folder in /usr/include. I&#039;m not sure whether this step is correct. Sorry.&lt;/p&gt;


&lt;h2 id=&quot;toc3&quot;&gt;Start install&lt;/h2&gt;
 Like install all other softwares from source codes on Unix, the procedure is&lt;ul&gt;
    &lt;li&gt;cd $your_gtk_source_codes&lt;/li&gt;
    &lt;li&gt;./configure&lt;/li&gt;
    &lt;li&gt;make&lt;/li&gt;
    &lt;li&gt;make install&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But on Solaris, we have to define PKG_CONFIG_PATH before the run `./configure&#039;. Otherwise, it will not update *.pc file. The bad result is when you query library version from `pkg-config --modversion xxx&#039;, it will tell you the old value.&lt;/p&gt;

&lt;p&gt;For example, on my machine when installing Glib 2.4.1, I first &lt;ul&gt;
    &lt;li&gt;export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig&lt;/li&gt;
&lt;/ul&gt;

&lt;/p&gt;

&lt;p&gt;Then run the `./configure&#039;, `make&#039; and `make install&#039;. After installation, I run &lt;ul&gt;
    &lt;li&gt;pkg-config --modversion glib-2.0&lt;/li&gt;
&lt;/ul&gt;

&lt;/p&gt;

&lt;p&gt;It will return &lt;a href=&quot;http://2.4.1&quot;&gt;2.4.1&lt;/a&gt; which is expected.&lt;/p&gt;

</description>
 <comments>http://www.eiffelroom.org/blog/larryliuming/how_to_install_gtk_from_source_code_on_solaris_10#comments</comments>
 <category domain="http://www.eiffelroom.org/tag/gtk">GTK</category>
 <category domain="http://www.eiffelroom.org/tag/solaris">Solaris</category>
 <pubDate>Tue, 25 Dec 2007 23:59:26 -0800</pubDate>
 <dc:creator>larryliuming</dc:creator>
 <guid isPermaLink="false">247 at http://www.eiffelroom.org</guid>
</item>
</channel>
</rss>
