<div dir="ltr">Hi<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 29, 2014 at 1:45 AM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi Tim,<br><br></div>Just a quick note that the homebrew-osgeo repo (tap) is now under the OSGeo user account [0]; switched over today. Since it was transferred on github, the dakcarto/osgeo4mac tap should still work, since it is aliased by github. If you run into issues, follow the new notes here [1], i.e. switch taps. Sorry about the timing.<br>


<div><div><div class="gmail_extra"><br></div><div class="gmail_extra">If you have the Kyngchaos stable QGIS packages installed, you may be better off using the Homebrew python (and rebuilding), but only if you run into significant Python issues, some of which many not show up until you run the app. This is because the Kyngchaos GDAL.framework and others already have *.pth files in your system site-packages.<br>


<br>This is the reason for the 'isolation' mode in the qgis-22 formula and the use of the osgeo-osgeo4mac/enviro/python_startup.py script: to coexist, and not interfere, with the Kyngchaos install. Isolation requires a separate Python, for now, since initializing a virtualenv for QGIS.app on double-click startup is not yet supported (at least I think it's not). In isolation mode, no modules from /Library/* locations are loaded. So, you will have to install all modules in Homebrew's site-packages, using HOMEBREW_PREFIX/bin/pip.<br>


<br></div><div class="gmail_extra">Be really nice to have a virtualenv creation and configuration GUI in the main Options, as previously discussed.<br></div><div class="gmail_extra"><br><div>[0] <a href="https://github.com/OSGeo/homebrew-osgeo4mac" target="_blank">https://github.com/OSGeo/homebrew-osgeo4mac</a><br>


[1] <a href="https://github.com/OSGeo/homebrew-osgeo4mac#how-do-i-install-these-formulae" target="_blank">https://github.com/OSGeo/homebrew-osgeo4mac#how-do-i-install-these-formulae</a></div></div></div></div></div></blockquote>

<div><br></div><div><br></div><div>Ok thanks. I have avoided putting William's packages on my system so that I can do a 'pure' homebrew install. The qgis-22 step worked for me but I needed to do a </div><div>
<br>
</div><div>brew update</div><div><br></div><div>before</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">brew install qgis-22 --only-dependencies --with-grass --with-globe [--with-oracle]</span><br>

</div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">In order for the above step to work, so you may want to add that to your notes. I'm still working my way through the rest of your recipe.</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Thanks!</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>

</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Regards</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Tim</span></div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div class="gmail_extra">

<div><br><br></div><div>Regards,<br></div><div><br>Larry<br>
<br></div>
<br><div class="gmail_quote"><div><div class="h5">On Fri, Mar 28, 2014 at 5:09 PM, Tim Sutton <span dir="ltr"><<a href="mailto:lists@linfiniti.com" target="_blank">lists@linfiniti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">


<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 27, 2014 at 9:05 PM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Tim,<br><div class="gmail_extra"><br><div class="gmail_quote">



<div>On Thu, Mar 27, 2014 at 5:57 AM, Tim Sutton <span dir="ltr"><<a href="mailto:lists@linfiniti.com" target="_blank">lists@linfiniti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Larry<div><br></div><div>I finally have the time to sit down and try to get your recipe for building / debugging QGIS under QtCreator a try, but I cant seem to find your notes on this. I have two screenies showing some of the settings but not quite enough info to get it working. Currently I am getting this (see [2] below) output when trying to run cmake in QtCreator. I am building using options in [1].</div>







<div><br></div><div>I also made this dirty hack so that some python libs could be found [3].</div><div><br></div><div>Can you point me in the right direction of any notes etc you have?</div></div></blockquote><div><br></div>





</div><div>I will add documentation about this to the site [0]. I have been debugging this setup and now having it working smoothly on Mac 10.7.5 and 10.9.2. You can use the following notes for now and we can work on making the online docs better, eventually including it in INSTALL somehow.<br>





<br></div><div>Basic instructions:<br><br></div><div>1) Ensure deps are installed:<br><br>Install required build Python modules (use pip on system or Homebrew's pip when using its Python). You can also tap homebrew/python for some more complex modules [1]:<br>





</div><div><br>* numpy  <-- this is used by gdal.rb install, if building with python option, which is the default<br><br></div><div>$ brew tap homebrew/science<br></div><div>$ brew tap dakcarto/osgeo4mac<br></div><div>





$ brew install qgis-22 --only-dependencies --with-grass --with-globe [--with-oracle]<br><br></div><div>Install required run-time Python modules : <br><br>* psycopg2 matplotlib pyparsing<br></div><div><br></div><div>2) Copy the following directory elsewhere and use it from there: HOMEBREW_PREFIX/Library/Taps/dakcarto-osgeo4mac/scripts<br>





<br>Note: it's important to not edit the scripts where they are located, in 
the tap, because it is a git repo. You should keep that working tree 
clean so that `brew update` always works.<br><br>Open and review scripts:<br><br>* qgis-cmake-options.py - for generating CMake option string for use in Qt Creator when built off dependencies from homebrew-osgeo4mac tap. Edit CMake options to suit your build needs. Note, the current script usually has CMake options for building 
QGIS with *all* options that the current Homebrew formula, e.g. qgis-22, supports, which can include things like Oracle support, etc. You will probably want to edit it and comment out such lines for an initial build. I add this as an external tool in Qt Creator [2].<br>





<br>* qgis-set-app-env.py - for setting env vars in dev build and installed QGIS.app, to ensure they are available on double-click run. Needs to stay in the same directory as the next scripts.<br></div><div><br>* qgis-creator-build.sh - sets up the build environ and ensures the QGIS.app in the build directory can find resources, so it can run from there.<br>





<br>* qgis-creator-install.sh - installs the app and ensures QGIS.app has proper env variables, so it can be moved around on the filesystem. Currently QGIS.app bundling beyond QGIS_MACAPP_BUNDLE=0 is not supported.<br></div>





<div><br></div><div>3) Configure a Creator Qt version and kit [3, 4].<br><br></div><div>4) Configure Creator project with prepended environment variables and to use the build and install scripts [5].<br></div><div><br></div>





<div>This whole setup supports builds where the OSGeo4Mac deps are in a non-standard Homebrew location, e.g. /usr/local/osgeo4mac or /opt/osgeo4mac, instead of /usr/local. This allows for multiple build scenarios, including placing the deps on an external drive, though that requires building all deps with special 'bottle' parameters.<br>





</div><div><br></div><div>I've tried to make the setup as simple and flexible as possible, though I'm sure it can use some work.<br><br>Let me know how it goes!  :-)<br></div><div><br>[0] <a href="https://github.com/dakcarto/homebrew-osgeo4mac" target="_blank">https://github.com/dakcarto/homebrew-osgeo4mac</a><br>





[1] <a href="https://github.com/Homebrew/homebrew-python" target="_blank">https://github.com/Homebrew/homebrew-python</a><br><br>In screen snaps, substitute the appropriate directories for your setup, as per notes above:<br>




[2] <a href="http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QGIS-CMakeOptions.png" target="_blank">http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QGIS-CMakeOptions.png</a><br>
[3] <a href="http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_Kits.png" target="_blank">http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_Kits.png</a><br>[4] <a href="http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QtVersions.png" target="_blank">http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QtVersions.png</a><br>





[5] <a href="http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QGIS-Project.png" target="_blank">http://drive.dakotacarto.com/osgeo4mac/QtCreator_osgeo4mac_QGIS-Project.png</a><br><br></div></div></div></div></blockquote>




<div><br></div><div>Thanks very much Larry - I'm running through your notes now!<div><br></div><div>Regards</div><div><br></div><div>Tim</div></div></div></div></div></blockquote><div><br></div></div></div><div>---- 8< ---snip------ <br>


</div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra">

<span><font color="#888888"><div><br></div>-- <br>
<div dir="ltr">Tim Sutton - QGIS Project Steering Committee Member<br>==============================================<br>Please do not email me off-list with technical<br>

support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>




==============================================</div>
</font></span></div></div>
</blockquote></div></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Tim Sutton - QGIS Project Steering Committee Member<br>==============================================<br>Please do not email me off-list with technical<br>

support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>

==============================================</div>
</div></div>