<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">So I've spent some time today with Guido on the challenges of building Subsurface on a Mac from scratch. And to call the experience for him a disaster would be putting it way too kindly.<div class=""><br class=""></div><div class="">I pushed a few changes that I hope will make this better but this will require some more testing. </div><div class=""><br class=""></div><div class="">If you have a Mac and would like to help, the steps to do this are a bit drastic because we need to make sure we have a somewhat consistent starting point, but based on my attempts in a fresh OS X 10.10 VM I think this should work.</div><div class=""><br class=""></div><div class="">So Guido, here is what I think you (and anyone else who wants to play along) will have to do.</div><div class=""><br class=""></div><div class="">a) remove Qt 5 - regardless where it came from: official installer, built from source, installed via MacPorts or Homebrew or whatever </div><div class="">b) uninstall Homebrew and all packages you have installed via Homebrew</div><div class="">c) remove the Subsurface-created folders under ~/src</div><div class=""><br class=""></div><div class="">OK, now you have a pretty clean and reproducible environment.</div><div class=""><br class=""></div><div class="">cd ~/src</div><div class="">git clone <a href="git://subsurface-divelog.org/subsurface" class="">git://subsurface-divelog.org/subsurface</a></div><div class=""><br class=""></div><div class="">now read the instructions in subsurface/INSTALL - or simply follow along here:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">1)  Install Homebrew</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ ruby -e "$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install" class="">https://raw.githubusercontent.com/Homebrew/install/master/install</a>)"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">2) Install needed dependencies</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ brew install asciidoc libzip sqlite cmake libusb pkg-config automake libtool</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">3) Make the brew version of sqlite the default</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ brew link --force sqlite</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">4) Download and install Qt</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Download the online installer:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ curl -L -o ~/Downloads/qt-unified-mac-x64-online.dmg \</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">        <a href="http://download.qt.io/official_releases/online_installers/qt-unified-mac-x64-online.dmg" class="">http://download.qt.io/official_releases/online_installers/qt-unified-mac-x64-online.dmg</a></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ open ~/Downloads/qt-unified-mac-x64-online.dmg</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Double click on the Qt installer shown in the Finder window.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">In the installer, use the default install folder /home/<your username>/Qt)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">To save time and disk space you can unselect Android and IOS packages</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">as well as QtWebEngine, Qt3D, Qt Canvas 3D and the Qt Extras.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">5) run the build script</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ cd ~/src</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ bash subsurface/scripts/build.sh</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">After the above is done, Subsurface.app will be available in the</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">subsurface/build directory. You can run Subsurface with the command</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ open subsurface/build/Subsurface.app</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I'm foolishly optimistic that this will work. And I would like people to try this so we can see where it breaks and fix those missing pieces.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">/D</div></body></html>