{"id":1042,"date":"2010-06-19T22:29:21","date_gmt":"2010-06-19T22:29:21","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1042"},"modified":"2023-01-21T13:42:36","modified_gmt":"2023-01-21T13:42:36","slug":"installing-wine-from-source","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/installing-wine-from-source\/","title":{"rendered":"Installing WINE from source"},"content":{"rendered":"<p>At the backend of 2009, I started experiments with WINE on MacOS. I documented my findings at my <a title=\"WINE at this wiki\" href=\"https:\/\/davelevy.info\/wiki\/672\/\">WINE<\/a> page on this site. In <i>March 2010<\/i>, I returned to the project having been advised to use the <b>Macports<\/b> installation of WINE, instead of building from source. This page documents how I built from source code, and how I installed <a href=\"http:\/\/wiki.winehq.org\/winetricks\">winetricks<\/a>. I have moved some of the comments here, from my <a title=\"WINE at this wiki\" href=\"https:\/\/davelevy.info\/wiki\/672\/\">WINE<\/a> page, which I now use to capture my experiments with <a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a> &amp; Porticus.<!--more--><\/p>\n<p>The page was originally written before I had much experience on installing packages from source, so some og it&#8217;s a bit basic. The big trick is the linking of the x-windows libraries.<\/p>\n<p>The purpose is to run <b>NWN &amp; NWN2<\/b> on the MAC. I have documented my work and findings about this at <a title=\"WINE and NWN, here on this wiki\" href=\"https:\/\/davelevy.info\/wiki\/wine-and-nwn\/\">Wine and NWN<\/a> on this site.<\/p>\n<h3>Summary<\/h3>\n<ul>\n<li>Read <a href=\"https:\/\/web.archive.org\/web\/20130628011427\/http:\/\/wiki.winehq.org:80\/MacOSX\/Installing\">http:\/\/wiki.winehq.org\/MacOSX\/Installing<\/a><\/li>\n<li>Read the <a href=\"http:\/\/wiki.winehq.org\/MacOSX\/Building\">WINE Wiki \u2026 MacOSX Building<\/a><\/li>\n<li>Download <em><strong>xcode<\/strong><\/em>, for 10.5, you need version 3.1.3, now 3.1.4<\/li>\n<li>Download git (I think so)<\/li>\n<li>Download the source using git<\/li>\n<li>&#8216;make&#8217; the binary, use &#8211;disable-win16<\/li>\n<li>link the xfree libraries to \/usr\/lib<\/li>\n<\/ul>\n<h3>Building WINE from Source<\/h3>\n<p>Build from source, see also <a href=\"http:\/\/wiki.winehq.org\/MacOSX\/Building\">http:\/\/wiki.winehq.org\/MacOSX\/Building<\/a> which has a pointer to using <i>git<\/i>.<\/p>\n<div>\n<pre>.\/configure --verbose --disable-win16<\/pre>\n<\/div>\n<p>The second parameter is not documented at <a href=\"http:\/\/wiki.winehq.org\/MacOSX\/Building\">the WINE wiki<\/a>. It is now!<\/p>\n<p>Not exactly well documented by me, but I used <i>git<\/i> to get the code and then <i>made<\/i> the package. This seems to work, at least the config program runs. The C: drive is held somewhere in ${HOME}\/.wine.<\/p>\n<p>I shall test this using ConTEXT.<\/p>\n<h3>Context &amp; Freetype<\/h3>\n<p>Hmm, first, a shed load of freetype 2 errors, why&#8217;s that? however, the good news is that it works. I download context from the web, and run the program.<\/p>\n<div>\n<pre>wine ConTEXTv0_986.exe<\/pre>\n<\/div>\n<p>it installs, offer you a location based on a file explorer, so you can install into your user file space, the Mac file tree or a new tree called c:\\. I chose my user space.<\/p>\n<p>Isn&#8217;t google marvelous, google: &#8220;install wine freetype&#8221; finds <a href=\"https:\/\/web.archive.org\/web\/20170505175917\/http:\/\/forums.macnn.com:80\/104\/alternative-operating-systems\/304996\/wine-wants-freetype-font-library\/\">this forum article<\/a> at <a href=\"http:\/\/forums.macnn.com.\">http:\/\/forums.macnn.com.<\/a> They recommend linking the free type libraries into \/usr\/lib.<\/p>\n<div>\n<pre>$ locate libfreetype<\/pre>\n<\/div>\n<p>shows us that the libraries are in \/usr\/X11\/lib (I am running 10.5 Leopard) and<\/p>\n<div>\n<pre>$ cd \/usr\/lib\r\n$ sudo ln -s \/usr\/X11\/lib\/libfree* .<\/pre>\n<\/div>\n<p>seems to make the error messages go away and the program looks much better.<\/p>\n<p>I have documented my install on Mac process at <a href=\"http:\/\/forum.winehq.org\/viewtopic.php?t=6790\">this thread<\/a> on <a href=\"https:\/\/forum.winehq.org\">http:\/\/forums.winehq.org,<\/a><\/p>\n<h3>X &amp; Graphic Libraries<\/h3>\n<p><a name=\"20091205\"><\/a>On the <a href=\"http:\/\/wiki.winehq.org\/MacOSX\/Building\">WINE Wiki \u2026 MacOSX Building<\/a> page, it is recommended that setting the environment variable DYLD_FALLBACK_LIBRARY_PATH to contain \/usr\/X11\/lib and \/usr\/lib will ensure that the OpenGL libraries can be found, it also enables the xfree libraries to be found. This is a more comprehensive solution and may pick up other errors in the Mac port.<\/p>\n<p>I have deleted the symlinks, and declared DYLD_FALLBACK_LIBRARY_PATH in .bash_login, and tested it works. winefile starts.<\/p>\n<h3>winetricks<\/h3>\n<p>This a supplementary script that helps WINE deal with some more abstruse installs.<\/p>\n<ul>\n<li>The <a href=\"http:\/\/wiki.winehq.org\/winetricks\">winehq winetricks<\/a> page<\/li>\n<\/ul>\n<p>I did the following, because I couldnt find <i>wget<\/i><\/p>\n<div>\n<pre>B$ cd $(whence wine)\r\nB$ sudo bash\r\n# curl <a href=\"http:\/\/www.kegel.com\/wine\/winetricks\">http:\/\/www.kegel.com\/wine\/winetricks<\/a> &gt; winetricks\r\n# chmod +x\r\n# exit\r\nB$ cd; winetricks --version<\/pre>\n<\/div>\n<p>So after a <a href=\"https:\/\/davelevy.info\/wiki\/macports\/\">macports<\/a> install of cabextract, we have it installed. Another chance to use winetricks.<\/p>\n<h3>Cleaning up<\/h3>\n<p>I installed all this manual stuff into \/usr\/local because my first &#8216;NIX was BSD. Now I have a macports managed install I need to clean this up. macports installs into \/opt<\/p>\n<ol>\n<li>Check up on the cabextract location and check if I have more than one install<\/li>\n<li>Will the make files uninstall?<\/li>\n<li>Probably have to rm the winetricks binary<\/li>\n<li>Check the $HOME\/Build directory to see what&#8217;s left behind<\/li>\n<li>Do I want to uninstall &#8216;git&#8217;?<\/li>\n<\/ol>\n<p>The MAC now needs tidying up, too many installs of WINE. Fortunately, I still have the install tree in ~\/Builds.<\/p>\n<p><code>$ configure &amp;&amp; make uninstall<\/code><\/p>\n<p>do the trick, winetricks does need to be removed seperately. I am hunting down the \/Users copy of the c drive, it needs to be removed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the backend of 2009, I started experiments with WINE on MacOS. I documented my findings at my WINE page on this site. In March 2010, I returned to the project having been advised to use the Macports installation of WINE, instead of building from source. This page documents how I built from source code,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2572,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[3,7],"tags":[213,75,152,332,911,915,193],"class_list":["post-1042","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-virtualisation","tag-install","tag-macos","tag-macport","tag-source","tag-technology","tag-virtualisation","tag-wine"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2011\/06\/WineHQ-Database-Hacked.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1042"}],"version-history":[{"count":11,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1042\/revisions"}],"predecessor-version":[{"id":7016,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1042\/revisions\/7016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/2572"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}