Jump to content
Sign in to follow this  

How to compile Denarius on macOS Mojave 10.14

Recommended Posts

Ghost    Ghost

324 posts
657 BF$

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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...