{"id":183,"date":"2019-03-18T21:27:29","date_gmt":"2019-03-18T21:27:29","guid":{"rendered":"https:\/\/www.fartcoin-project.com\/?p=183"},"modified":"2019-03-30T21:57:29","modified_gmt":"2019-03-30T21:57:29","slug":"183","status":"publish","type":"post","link":"https:\/\/www.fartcoin-project.com\/index.php\/2019\/03\/18\/183\/","title":{"rendered":"Mac OS X Build Instructions and Notes"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong>This guide will show you how to build fartcoin-qt for OSX.<\/strong><br><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Tested on OSX 10.9 on 64-bit Intel processors only.<br><\/li><li>All of the commands should be executed in a Terminal application.  <\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u2014 Preparation<\/h2>\n\n\n\n<p>You need to install Xcode, when you type \u201cgit\u201d in Terminal an installation popup will appear. The installation for Xcode will be done in the AppStore, and needs to download at least 5 GB.<\/p>\n\n\n\n<p>sudo xcode-select -s \/Applications\/Xcode.app\/Contents\/Developer<\/p>\n\n\n\n<p>While downloading you can already install <a href=\"http:\/\/brew.sh\">Homebrew<\/a><br>\nAfter Xcode is installed you can install <a href=\"https:\/\/www.macports.org\/\">MacPorts<\/a> <br>\nWe need this in order to install library dependencies. <br>\nInstalling the dependencies using MacPorts and Brew is very straightforward.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2014 Instructions: MacPorts<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo port install boost openssl miniupnpc autoconf pkgconfig automake qt4-mac qrencode protobuf-cpp\nsudo port install qwt qwtplot3d gsl py27-pyqt4 py-pyqwt py27-sip muparser\nsudo port install clang-7.0 clang_select giflib jasper ld64 ld64-latest libcxx libomp libsdl2 llvm-3.7 llvm-7.0 llvm_select perl5 qt5-qtsvg qt5-qttools qt5-qttranslations qt5-sqlite-plugin webp xar xorg-libice xorg-libsm<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2014  Instructions: Homebrew<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code> brew install autoconf automake berkeley-db boost miniupnpc openssl pkg-config protobuf qt<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2014 Building fartcoin-core<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Clone the github tree to get the source code and go into the directory. <ul><li><code>git clone https:\/\/github.com\/fartcoin\/fartcoin.git cd fartcoin<\/code><\/li><\/ul><\/li><li>Build Berkeley-db-5.1.29.NC in \/Users\/OSX_USER\/fartcoin\/: <ol><li>Download berkeley-db from oracle, and extract it into \/fartcoin\/<br> http:\/\/download.oracle.com\/berkeley-db\/db-5.1.29.NC.tar.gz <\/li><li>In the fartcoin folder type: <ul><li>BITCOIN_ROOT=$(pwd)<br> BDB_PREFIX=&#8221;${BITCOIN_ROOT}\/db5&#8243;<br> mkdir -p $BDB_PREFIX<br> cd db-5.1.29.NC\/<br> curl -OL https:\/\/raw.github.com\/narkoleptik\/os-x-berkeleydb-patch\/master\/atomic.patch<br> patch src\/dbinc\/atomic.h &lt; atomic.patch<br> cd build_unix\/<br> ..\/dist\/configure &#8211;enable-cxx &#8211;disable-shared &#8211;with-pic &#8211;prefix=$BDB_PREFIX<br> make install<br> cd $BITCOIN_ROOT<\/li><\/ul><\/li><\/ol><\/li><li>Build fartcoin-core: <ul><li><code>.\/autogen.sh<\/code> <\/li><li>.\/configure LDFLAGS=&#8221;-L$(pwd)\/db5\/lib\/ -L\/opt\/local\/libexec\/qt4\/lib&#8221; CPPFLAGS=&#8221;-I$(pwd)\/db5\/include\/ -I\/opt\/local\/libexec\/qt4\/include&#8221; PKG_CONFIG_PATH=&#8221;\/opt\/local\/libexec\/qt4\/lib\/pkgconfig&#8221;<br>     make<br> make deploy<\/li><\/ul><\/li><li>It is a good idea to build and run the unit tests, too: <ul><li><code>make check<\/code><\/li><\/ul><\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to build fartcoin-qt for OSX. Tested on OSX 10.9 on 64-bit Intel processors only. All of the commands should be executed in a Terminal application. \u2014 Preparation You need to install Xcode, when you type \u201cgit\u201d in Terminal an installation popup will appear. The installation for Xcode will be &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.fartcoin-project.com\/index.php\/2019\/03\/18\/183\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mac OS X Build Instructions and Notes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"_links":{"self":[{"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":6,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/posts\/183\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fartcoin-project.com\/index.php\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}