Re: [Qgis-developer] Compiling QGIS on Mavericks

2014-04-13 Thread nzfarmer
Larry

This is helpful.  But setting up the dev environment has raised more
questions than answers:

I needed to either download the patches to QGIS-2-0_1-final or suspend the
brew with --debug to create my own tree.

(having a brew -n to simulate the actions only would be nice; and a brew
--no_purge could be useful)

So my current dev tree is now not under version control - but I would at the
very least like to place the Plugin code under VC.  

The original plugin code I'm basing my work off is already accessible via
GitHub so do I make a new branch? And if so can I make this private until
I'm ready to share the work? Or can I simply setup a local Git repo and
merge this later as a new branch or the original as required? Welcome your
thoughts. 

(Sorry, I somewhat new to GitHub as well as homebrew  - btw I am using
qgis-20 - 22 was a typo.)




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiling-QGIS-on-Mavericks-tp5134650p5134746.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Compiling QGIS on Mavericks

2014-04-11 Thread nzfarmer
Well, after about a week of running battles and some great support from
Larry, I now have a successful dev environment.

I ended up with brew installation as per Larry's instructions:

brew tap osgeo/osgeo4mac
brew install qgis-22 --with-grass --with-globe

The first of these caused warnings and required me to install a few of the
dependencies explicitly - namely gdal, pdal and grass.

i.e brew install osgeo/osgeo4mac/gdal

The globe dependency failed to build but I may revisit this now I have a
working environment.

When I went to replicate the brew so I can work offline, I:

- took a patched version QGIS-Final-2_0_1
- wrote my own build script based on the brew generated parameters
- added the following env vars
export CXX=`which clang++`;
export CXXFLAGS=-F/usr/local/opt/qt/lib

I can now compile and run the program, and of course start writing some c++
plugins (which was the original goal)

thanks again.

Andrew







--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiling-QGIS-on-Mavericks-tp5134650.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Compiling QGIS on Mavericks

2014-04-11 Thread nzfarmer
See original thread https://github.com/OSGeo/homebrew-osgeo4mac  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiling-QGIS-on-Mavericks-tp5134650p5134681.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Building on OSX - QgsAbstractFeatureIteratorFromSource

2014-04-07 Thread nzfarmer
Ok. cracked it.  But in the process ended up upgrading to Mavericks to
install Xcode 5+.

A few tips for those building on OSX.

- The homebrew installers are helpful for the dependencies
- use make rather than make -j# on the main build



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Building-on-OSX-QgsAbstractFeatureIteratorFromSource-tp5133371p5133667.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Building on OSX - QgsAbstractFeatureIteratorFromSource

2014-04-06 Thread nzfarmer
Environment: OSX Lion

This is a frustrating one.  The other day after following the build
instructions  I was able to build the main QGIS src tree successfully.

However, today I had to make a fresh build (of just the main tree) and kept
getting stuck here:

/dev/cpp/QGIS/src/core/qgsvectorlayerfeatureiterator.cpp:87: error: class
‘QgsVectorLayerFeatureIterator’ does not have any field named
‘QgsAbstractFeatureIteratorFromSource’
/dev/cpp/QGIS/src/core/qgsvectorlayerfeatureiterator.cpp:88: error: no
matching function for call to
‘QgsAbstractFeatureIteratorFromSourceQgsVectorLayerFeatureSource::QgsAbstractFeatureIteratorFromSource()’


It is almost certainly something environmental and likely trivial, but being
new to the dev. environment I post this here in the hope someone can point
me in the right direction quickly.

Thank you.







--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Building-on-OSX-QgsAbstractFeatureIteratorFromSource-tp5133371.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer