UPDATE, 4/19/2016, Lucian Smith 

Based on the most recent behavior of wxwidgets on the mac, it looks like the Mac operating system 
itself is a moving target, enough so that it seems like only the most recent version of wxwidgets will 
work on it.  As a result, we recommend that you get the most recent version of wxwidgets, compile it 
for the mac, and then use that, every time a new version of lam_conv for the mac is needed.

Here's what worked in April of 2016 for OSX 10.10:

* Fetched version 3.1.0 from wxwidgets.org
* untarr'ed to wxWidgets-3.1.0/
* cd wxWidgets-3.1.0/
* mkdir build
* cd build
* ../configure --disable-shared --with-cocoa --with-macosx-version-min=10.7 
* make

To make sure things worked, you can then:
* cd samples/minimal/
* make
* open minimal.app

(see https://forums.wxwidgets.org/viewtopic.php?t=41965)

Then when you configure lamarc, point it to the newly-built wx-config:

* cd lamarc/build/
* ../configure --with-wx-config=../../wxWidgets-3.1.0/build/wx-config

And that will hopefully work!

If wxwidgets stops supporting 10.7, you'll need to update to 10.8 or whatever, and then make a 
corresponding change to Makefile.am: wherever you see '-mmacosx-version-min=10.7', change that to 
10.8.  It might also be necessary to change how tinyxml is linked: when I added that line when 
compiling it, this caused X11 to no longer be used, and it couldn't be found--this explains the lines 
in Makefile.am:

lam_conv_LDADD          = @WX_LIBS@
if LAMARC_APP_OSX
   lam_conv_LDADD      += libtinyxml.a 
else
   lam_conv_LDADD      += -lX11 libtinyxml.a 
endif

So, if X11 starts being used again, re-add it to the osx-specific line.





ORIGINAL TEXT, from 2012 (Elizabeth Walkup):

This file is supposed to live here:

    malecot.gs.washington.edu:/Users/Shared/wxWidgets/wx-osx-notes.txt

* fetched wxWidgets source from wxwidgets.org
* untar'd under /Users/Shared/wxWidgets/Builds


    export WX_VERSION=2.9.4
    export WX_INSTALL=/Users/Shared/wxWidgets/wx-install
    cd /Users/Shared/wxWidgets/Builds/wxWidgets-${WX_VERSION}

    mkdir osx-debug
    cd osx-debug
    ../configure --disable-unicode --disable-shared \
        --with-osx_cocoa \
        --with-macosx-version-min=10.6 \
        --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
        --with-libjpeg=builtin --with-libpng=builtin \
        --with-regex=builtin --without-libtiff \
        --with-zlib=builtin --with-expat=builtin \
        --enable-debug \
        --prefix=${WX_INSTALL}

    make
    make install

    cd /Users/Shared/wxWidgets/Builds/wxWidgets-${WX_VERSION}
    mkdir osx-release
    cd osx-release
    ../configure --disable-unicode --disable-shared \
        --with-osx_cocoa \
        --with-macosx-version-min=10.6 \
        --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
        --with-libjpeg=builtin --with-libpng=builtin \
        --with-regex=builtin --without-libtiff \
        --with-zlib=builtin --with-expat=builtin \
        --prefix=${WX_INSTALL}

    make
    make install

# note -- you will need to use the following flags when configuring lamarc

    export WX_INSTALL=/Users/Shared/wxWidgets/wx-install

    cvs co -P lamarc
    cd lamarc
    mkdir release-osx
    cd release-osx
    ../configure --disable-unicode --disable-shared \
        --with-osx_cocoa \
        --with-macosx-version-min=10.6 \
        --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
        --with-wx-config=${WX_INSTALL}/bin/wx-config


