Building Qt on Mac

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Wed May 22 05:22:08 PDT 2013


On Tue, May 21, 2013 at 3:07 PM, Robert Helling <helling at lmu.de> wrote:

> I have problems building the current master (now with Qt) on my Mac. I
> tried to install the required Macports packages (I guess those are at least
> qt4-mac and marble, attached is a patch for the README)
> But I have trouble with marble, actually its dependencies:
>
> Last time I tried fiddling with options like +x11 I ended up removing my
> borked MacPorts installation and doing a clean install. Any ideas? It seems
> libioebc seems to be the problem.
>


OK, I finally got this to build. You don't need to do a clean MacPorts
install, but you need to switch from the +quartz variant to the
+x11 variant.  This will do the trick:

# port install cairo +x11
# port install pango +x11
# port install py27-pygtk +x11
# port install gtk2 +x11
# port install marble

Make sure you don't have subsurface or libdivecomputer installed from
MacPorts:

# port uninstall subsurface
# port uninstall libdivecomputer

And of course build and install libdivecomputer 0.4.0.

Somehow I also needed to create ui_mainwindow.h in Subsurface manually.
Don't know why:

$ make ui_mainwindow.h
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make

Also, you need a small patch which I'll send shortly.

Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130522/f5353b73/attachment.html>


More information about the subsurface mailing list