<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">Dirk Hohndel wrote:
<blockquote cite="mid:20141226160322.GZ19794@rrmbp.gr8dns.org" 
type="cite">
  <pre wrap="">On Fri, Dec 26, 2014 at 11:35:41AM +0100, Robert C. Helling wrote:
</pre>
  <blockquote type="cite"><blockquote type="cite"><pre wrap="">Am 26.12.2014 um 11:02 schrieb Henrik Brautaset Aronsen <a class="moz-txt-link-rfc2396E" href="mailto:subsurface@henrik.synth.no"><subsurface@henrik.synth.no></a>:

I updated the build instructions on the web page awhile ago,
</pre></blockquote><pre wrap="">Do those really work for you? For me qt5 from homebrew is "keg only" i.e. Does not link files not to interfere wit qt4. Even 

brew link --force qt5

Leaves my system in an unusable mess. So I gave up on qt5 from homebrew and compiled it manually. 
</pre></blockquote>
  <pre wrap=""><!---->
I gave up on homebrew ages ago. It causes way more problems than it
solves, especially when trying to ship binaries</pre>
</blockquote>
<br>
I had a Mac here without any dev tools on it, so I decided to try the 
build instructions that I updated on the website in October.  It has 
later been changed by others, but my version still works with minor 
changes.  <br>
<br>
Advantages:<br>
- Uses Qt5 from Homebrew, no compilation necessary.<br>
- Uses latest Marble from official sources, no special branch or patches
 necessary.<br>
- Fewer options in Subsurface qmake.<br>
<br>
Disadvantages:<br>
- Somewhat longer Marble build instructions.  But I could make a script 
in packages/macosx/ to fix that (if anyone wants it).<br>
<br>
Here it is:<br>
<br>
$ brew install asciidoc libzip qt5 sqlite cmake libusb pkg-config 
libgit2<br>
$ brew link --force sqlite<br>
<br>
$ cd ~/src<br>
$ git clone <a class="moz-txt-link-freetext" href="git://anongit.kde.org/marble">git://anongit.kde.org/marble</a> marble-source<br>
$ cd marble-source<br>
$ mkdir marble-build<br>
$ cd marble-build<br>
$ cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=TRUE -DWITH_PHONON=OFF 
-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake 
-DCMAKE_INSTALL_PREFIX=/usr/local ..<br>
$ cd src/lib/marble<br>
$ make -j4<br>
$ install_name_tool -id /usr/local/lib/$(echo libmarblewidget.??.dylib) 
libmarblewidget.dylib<br>
$ cp -v *dylib /usr/local/lib/<br>
$ mkdir -p /usr/local/include/marble<br>
$ cp -v $(find ~/src/marble-source/src/lib -name '*.h') 
/usr/local/include/marble/<br>
<br>
$ cd ~/src<br>
$ brew install automake libtool<br>
$ git clone -b Subsurface-testing <a class="moz-txt-link-freetext" href="git://subsurface-divelog.org/libdc">git://subsurface-divelog.org/libdc</a> 
libdivecomputer<br>
$ cd libdivecomputer<br>
$ autoreconf --install<br>
$ ./configure --disable-shared<br>
$ make -j4<br>
$ make install<br>
<br>
$ cd ~/src<br>
$ git clone <a class="moz-txt-link-freetext" href="git://subsurface-divelog.org/subsurface.git">git://subsurface-divelog.org/subsurface.git</a><br>
$ cd subsurface<br>
$ /usr/local/opt/qt5/bin/qmake INCLUDEPATH+="/usr/local/include 
/usr/local/opt/sqlite/include" LIBS+="-L/usr/local/lib 
-L/usr/local/opt/sqlite/lib"<br>
$ make -j4<br>
$ make install_mac_bundle<br>
<br>
Should I create a patch for the INSTALL file, and update the website?<br>
<br>
Henrik<br>
<br>
</body></html>