Jump to content


Recommended Posts

How to compile Denarius (D) on macOS Mojave 10.14

By Carsen K

First download Xcode from the App Store (v10.x)

Install Xcode Command Line Tools via your Terminal:

sudo xcode-select --install

Accept Xcode License

sudo xcodebuild -license

Type agree after hitting space to get to the end


Download Qt 5.3.2 from: https://download.qt.io/archive/qt/5.3/5.3.2/qt-opensource-mac-x64-clang-5.3.2.dmg

Install Qt and Qt Creator from this dmg (no need to install source files)

Now in your default_pre.prf file inside your Qt 5.3.2 install change the following lines

Example Location:



isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))


isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null")))

Sometimes you just need to comment out line 16 the line below this (#error()) for Qt to recognize Xcode


Then download MacPorts from: https://www.macports.org/install.php

Once installed run the following command in your Terminal to install all required Denarius dependancies.

sudo port install boost db48 qrencode libevent miniupnpc openssl git

Now you are almost ready to compile!


git clone https://github.com/carsenk/denarius

cd denarius

Now inside your denarius-qt.pro on line 14, replace the current QMAKE_CXXFLAGS with:

QMAKE_CXXFLAGS += -fpermissive -Wno-literal-suffix -stdlib=libc++

Run this command in your terminal session with the denarius folder open, replace your username with your username or the entire path below with your correct QT location.

export PATH=$PATH:/Users/<yourname>/Qt5.3.2/5.3/clang_64/bin

Run qmake --version which should return Qt 5.3.2

You can now compile Denarius with the usual commands

qmake "USE_UPNP=1" "USE_QRCODE=1" denarius-qt.pro

make -j4

After compiling you can create a .dmg installer by running this command in the denarius root (you must have Python 2.7 installed, can be installed via MacPorts)

sudo python contrib/macdeploy/macdeployqtplus Denarius.app -dmg

You have successfully compiled Denarius on macOS!

  • Like 1
  • Upvote 1

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...