<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Dirk,<div><br></div><div>Thanks for all your efforts.</div><div>I though it might be useful to protocol on how I uninstalled what you listed below.</div><div><br></div><div>What is kind of frustrating is that when removing QT with the maintenance tool, which is what they recommend, certain traces in the /usr/local/ folder remain</div><div>from which a normal user would not know what can be deleted vs. what not.</div><div><br></div><div>For example: /usr/local/lib contains</div><div>/cmake/ : assume can be removed</div><div>libosxfuse_xxx</div><div>tons of libQT5xxxx and QTxxx  stuff</div><div>/pkgconfig/ : can go</div><div><br></div><div>/usr/local/libexec contains QTWebProcess</div><div><br></div><div>/use/local/qml contains lots of QTxxxx stuff</div><div> </div><div>There is more and I am not 100% sure what to remove and what not, if I keep it there, would that have any negative impact ?</div><div><br></div><div>Uninstalling:</div><div><br></div><div>1. ) ran</div><div><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.6000003814697px; margin-top: 0px; margin-bottom: 0px; line-height: 1.45; padding: 16px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal; word-break: normal; color: rgb(51, 51, 51); widows: 1; background-color: rgb(247, 247, 247);">ruby -e <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span><span class="pl-s" style="box-sizing: border-box;"><span class="pl-pds" style="box-sizing: border-box;">$(</span>curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/uninstall">https://raw.githubusercontent.com/Homebrew/install/master/uninstall</a><span class="pl-pds" style="box-sizing: border-box;">)</span></span><span class="pl-pds" style="box-sizing: border-box;">"</span></span></pre><div>to uninstall brew</div></div><div><br></div><div>2.) ran maintenance tool to “remove” QT</div><div><br></div><div>3.) removed the entire ~/src folder and recreated it</div><div><br></div><div>I’ll wait for feedback till I continue with the installation</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">Viele Güsse, Best regards,<br><br>Guido Lerch<br><a href="mailto:guido.lerch@gmx.ch">guido.lerch@gmx.ch</a><br><br><br></span>
</div>
<br><div><div>On 17 Aug 2015, at 04:12, Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div 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></div></blockquote></div><br></div></body></html>