[Qgis-developer] QGIS setup with Qt 5 on mac
larrys at dakotacarto.com
Tue Nov 8 09:13:56 PST 2016
On Sun, Nov 6, 2016 at 7:23 PM, Etienne Trimaille <
etienne.trimaille at gmail.com> wrote:
> Thanks David and Matthias for providing some feedbacks about QGIS 3 on mac.
> I also would like QGIS 3 compiling on mac.
> I hope you will update the install.md on the repo when you will have a
> working workflow ? Thanks
I have been preparing Homebrew and OSGeo4Mac 'taps' for this move and am
now focusing on QGIS 3 formulae, probably starting on Thursday or Friday. I
hope to have everything building and docs completed by the end of the
The new formulae will not be hosted in OSGeo4Mac or Homebrew (at least not
until there are stable releases), but in a specific tap for QGIS
development and Travis CI support:
So, look for changes there as things progress. Please contribute or post
bug reports there for those dev formulae or docs, once they are available.
Black Hills, South Dakota
> 2016-11-01 1:22 GMT+07:00 Matthias Kuhn <matthias at opengis.ch>:
>> Hi Diane and welcome aboard,
>> I also didn't manage to compile master on osx yet.
>> Some more information can be found here also:
>> I think most of the dependencies should meanwhile be available on
>> homebrew (but not sure).
>> On 10/31/2016 06:56 PM, David Marteau wrote:
>> > Hi
>> > I will speak with my own experience using and compiling Qgis on Mac (El
>> capitan and Maverick):
>> > First I use Macport: MacPort use clang/libc++ by default (at least with
>> XCode 5.3 on Maverick, 7.3 on El capitan) so this should solve one of your
>> > I have installed qt5 from MacPort without problems.
>> > The problems arise with some ports that do not fully support qt5
>> variants and you need to tweak some portfiles: qscintilla and py-qscintilla
>> are one of them and are required by Qgis.
>> > If you are interested I can give you my diff files for portfiles.
>> > I had to build qwt directly from sources because tweaking Macport
>> portfiles was too painful, but I did not encounter any serious problems as
>> far as I can remember.
>> > No source code was needed to be patched, only compilation
>> > Once you get all dependencies you need to set the cmake options
>> accordingly to the path of your installation:
>> > Here is my defines:
>> > » » -DCMAKE_INSTALL_PREFIX:PATH=/Applications \
>> > » » -DWITH_SERVER=ON \
>> > » » -DWITH_PYSPATIALITE=ON \
>> > » » -DPYTHON_CUSTOM_FRAMEWORK:PATH=/opt/local/Library/Frameworks/Python.framework
>> > » » -DEXPAT_INCLUDE_DIR:PATH=/opt/local/include \
>> > » » -DEXPAT_LIBRARY:FILEPATH=/opt/local/lib/libexpat.dylib \
>> > » » -DSQLITE3_INCLUDE_DIR:PATH=/opt/local/include \
>> > » » -DSQLITE3_LIBRARY:FILEPATH=/opt/local/lib/libsqlite3.dylib \
>> > » » -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/qmake
>> > » » -DQWT_INCLUDE_DIR:PATH=/usr/local/qwt-6.1.3/lib/qwt.framework/Versions/6/Headers
>> > » » -DQWT_LIBRARY:FILEPATH=/usr/local/qwt-6.1.3/lib/qwt.framework/Versions/6/qwt
>> > » » -DQCA_INCLUDE_DIR:PATH=/opt/local/include/qca \
>> > » » -DQCA_LIBRARY:FILEPATH=/opt/local/lib/libqca.dylib \
>> > » » -DQSCINTILLA_INCLUDE_DIR:PATH=/opt/local/libexec/qt5/include \
>> > » » -DQSCINTILLA_LIBRARY:FILEPATH=/opt/local/libexec/qt5/lib/libqscintilla2.dylib
>> > » » -DQT_LRELEASE_EXECUTABLE:FILEPATH=/opt/local/libexec/qt5/bin/lrelease
>> > I hope that full support for qt5 will be available from Macport soon,
>> but for now I have managed to compile Qgis from the master branch without
>> struggling too much.
>> > Best,
>> > David
>> >> Le 31 oct. 2016 à 16:12, Diane Perez <lintawa at gmail.com> a écrit :
>> >> Dear QGIS developers,
>> >> First of all, thank you very much for the great job, I have been a
>> very happy user for years !
>> >> I would like to contribute now to the development, but I found myself
>> stuck at the installation of dependencies.
>> >> According to the instructions of the INSTALL file provided with the
>> source code, mac users should use Qt 4 and compile and install a bunch of
>> dependencies for which binaries are not available (mainly Spatialindex,
>> SIP, QScintilla2, PyQt, Qwt and bison) before being able to compile QGIS. I
>> followed the instructions and got stuck at compiling QGIS as the master now
>> requires Qt 5.
>> >> Now as I actually started by installing Qt 5 by mistake, I had the
>> opportunity to see that it leads to a lot of problems to compile the
>> dependencies. As far as I understand, Qt 5 requires C++11, which means one
>> must use the new libc++ library instead of the old libstdc++ (at least on
>> my configuration, with El Capitan and clang/llvm). Some modifications are
>> such that mixing both is not possible, so everything must be compiled from
>> start with C++11 and libc++. Unfortunately most of the dependencies I
>> mention above do not compile without tweaking, and I stopped doing it when
>> it started meaning not only modifying the Makefiles but the code itself...
>> >> I guess some of you work on mac, and have a far better understanding
>> of all this than me. So my question is : how did you install those
>> dependencies to compile the last version of QGIS with Qt 5 ?
>> >> Did you have to compile again all of them or only a subset using Qt 5
>> and C++11 ? If so, how did you do it ? I got stuck at Qwt (6.1.3) which
>> uses lots of functions deprecated in Qt 5.
>> >> I hope someone can give me pointers, as I would really like to
>> contribute to QGIS (and hopefully fix a few bugs bugging me) !
>> >> Best regards,
>> >> Diane
>> >> _______________________________________________
>> >> Qgis-developer mailing list
>> >> Qgis-developer at lists.osgeo.org
>> >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > _______________________________________________
>> > Qgis-developer mailing list
>> > Qgis-developer at lists.osgeo.org
>> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer