Build Qt GUI
- Download and install Qt 4.8.5.
- Download and install Qt Creator 3.6.1.
- Open
nubit/nu.pro in Qt Creator.
- Click ‘Configure Project’.
- Click on the monitor icon on the left toolbar above Debug and change it to Release.
- Click Build > Build Project “nu” (or press Command–B).
When it’s done, nu.app should be in the nubit directory. You can’t run it directly yet.
sudo ln -s /opt/local/lib /opt/local/lib/lib
sudo ln -s /opt/local/lib/db48/libdb_cxx-4.8.dylib /opt/local/lib/libdb_cxx-4.8.dylib
cd nubit
mkdir deploy
cp -r nu.app deploy
sudo macdeployqt deploy/nu.app
You can now run nubit/deploy/nu.app directly.
It’s not clear to me whether the next step is necessary:
install_name_tool -change "/opt/local/lib/db48/libdb_cxx-4.8.dylib" "@executable_path/../Frameworks/libdb_cxx-4.8.dylib" deploy/nu.app/Contents/MacOS/Nu
Change
nubit/nu.pro:3
macx:TARGET = "nu"
Uppercase to build Nu.app.
nubit/nu.pro:4
VERSION = 2.1.0
Current version is 4.0.0.
nubit/src/qt/guiutil.cpp:440
setWindowTitle(tr("Bitcoin-Qt"));
Change “Bitcoin-Qt” to “Nu”.
nubit/share/qt/Info.plist:5-6
<key>CFBundleIconFile</key>
<string>bitcoin.icns</string>
Change to nu.icns.
nubit/share/qt/Info.plist:17-18
<key>CFBundleExecutable</key>
<string>Bitcoin-Qt</string>
Change to Nu.
nubit/share/qt/Info.plist:19
<key>CFBundleName</key>
<string>Nu</string>
Add.
Issue: Info.plist isn’t applied to the build.