{"id":2903,"date":"2013-04-29T18:26:18","date_gmt":"2013-04-29T18:26:18","guid":{"rendered":"http:\/\/www.readytext.co.uk\/?p=2903"},"modified":"2013-11-28T08:12:08","modified_gmt":"2013-11-28T08:12:08","slug":"building-sils-graphite2-on-windows","status":"publish","type":"post","link":"https:\/\/www.readytext.co.uk\/?p=2903","title":{"rendered":"Building SIL&#8217;s Graphite2 on Windows"},"content":{"rendered":"<h1>A very short post<\/h1>\n<p>I&#8217;ve been reading about SIL International&#8217;s <a href=\"http:\/\/scripts.sil.org\/cms\/scripts\/page.php?site_id=projects&#038;item_id=graphite_home\">Graphite engine<\/a> and it looks really interesting. I downloaded the code and ran the CMake-based build process through the <a href=\"http:\/\/www.cmake.org\/\">CMake<\/a> graphical interface. It didn&#8217;t work. Eventually, I found some instructions to build it from the command line, so here&#8217;s the way I did it. <\/p>\n<ol>\n<li>Make sure the <code>cmake.exe<\/code> is in your Windows <code>PATH<\/code>.<\/li>\n<li>Download the <a href=\"http:\/\/projects.palaso.org\/projects\/graphitedev\/files\">Graphite source code<\/a> and unpack into a directory (e.g, called <code>Graphite<\/code>).<\/li>\n<li>Change directory to the one containing the Graphite source code.<\/li>\n<li>I use Microsoft Visual Studio 2008 so you&#8217;ll need to adjust the <code>-G<\/code> parameter (below) to your build environment (<code>cmake --help<\/code> tells you the ones it supports).<\/li>\n<li>Run the command (all on one line): <code>cmake -G \"Visual Studio 9 2008\" -DCMAKE_BUILD_TYPE=Release -DGRAPHITE2_COMPARE_RENDERER:BOOL=OFF<\/code><\/li>\n<\/ol>\n<p>If all goes well you should see something like the following, together with a generated Visual Studio Solution file <code>graphite2.sln<\/code>.<\/p>\n<pre class=\"brush: plain; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\n-- Build: Release\r\n-- Segment Cache support: enabled\r\n-- File Face support: enabled\r\n-- Tracing support: enabled\r\nCMake Warning at CMakeLists.txt:54 (message):\r\n  vm machine type direct can only be built using GCC\r\n\r\n-- Using vm machine type: call\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: E:\/SILgraide\/Graphite\r\n<\/pre>\n<p>Your Visual Studio Solution should look something like this:<\/p>\n<p><img decoding=\"async\" width=\"100%\" src=\"https:\/\/www.readytext.co.uk\/files\/graphite2.png\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A very short post I&#8217;ve been reading about SIL International&#8217;s Graphite engine and it looks really interesting. I downloaded the code and ran the CMake-based build process through the CMake graphical interface. It didn&#8217;t work. Eventually, I found some instructions to build it from the command line, so here&#8217;s the way I did it. Make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,10],"tags":[],"class_list":["post-2903","post","type-post","status-publish","format-standard","hentry","category-post-about-about-fonts-glyphs-and-characters","category-unicode"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2903"}],"version-history":[{"count":14,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2903\/revisions"}],"predecessor-version":[{"id":3220,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2903\/revisions\/3220"}],"wp:attachment":[{"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.readytext.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}