<div dir="ltr">Thanks David and Matthias for providing some feedbacks about QGIS 3 on mac.<div>I also would like QGIS 3 compiling on mac.</div><div><br></div><div>I hope you will update the <a href="http://install.md">install.md</a> on the repo when you will have a working workflow ? Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-01 1:22 GMT+07:00 Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Diane and welcome aboard,<br>
<br>
I also didn't manage to compile master on osx yet.<br>
<br>
Some more information can be found here also:<br>
<br>
<a href="https://github.com/OSGeo/homebrew-osgeo4mac/pull/146#issuecomment-254011621" rel="noreferrer" target="_blank">https://github.com/OSGeo/<wbr>homebrew-osgeo4mac/pull/146#<wbr>issuecomment-254011621</a><br>
<br>
I think most of the dependencies should meanwhile be available on<br>
homebrew (but not sure).<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Matthias<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 10/31/2016 06:56 PM, David Marteau wrote:<br>
> Hi<br>
><br>
> I will speak with my own experience using and compiling Qgis on Mac (El capitan and Maverick):<br>
><br>
> 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 problems.<br>
> I have installed qt5 from MacPort without problems.<br>
><br>
> 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.<br>
> If you are interested I can give you my diff files for portfiles.<br>
><br>
> 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.<br>
><br>
> No source code was needed to be patched, only compilation configurations.<br>
><br>
> Once you get all dependencies you need to set the cmake options accordingly to the path of your installation:<br>
><br>
> Here is my defines:<br>
><br>
> »   »   -DCMAKE_INSTALL_PREFIX:PATH=/<wbr>Applications \<br>
> »   »   -DWITH_SERVER=ON \<br>
> »   »   -DWITH_PYSPATIALITE=ON \<br>
> »   »   -DPYTHON_CUSTOM_FRAMEWORK:<wbr>PATH=/opt/local/Library/<wbr>Frameworks/Python.framework  \<br>
> »   »   -DEXPAT_INCLUDE_DIR:PATH=/opt/<wbr>local/include \<br>
> »   »   -DEXPAT_LIBRARY:FILEPATH=/opt/<wbr>local/lib/libexpat.dylib \<br>
> »   »   -DSQLITE3_INCLUDE_DIR:PATH=/<wbr>opt/local/include \<br>
> »   »   -DSQLITE3_LIBRARY:FILEPATH=/<wbr>opt/local/lib/libsqlite3.dylib \<br>
> »   »   -DQT_QMAKE_EXECUTABLE:<wbr>FILEPATH=/opt/local/libexec/<wbr>qt5/bin/qmake \<br>
> »   »   -DQWT_INCLUDE_DIR:PATH=/usr/<wbr>local/qwt-6.1.3/lib/qwt.<wbr>framework/Versions/6/Headers \<br>
> »   »   -DQWT_LIBRARY:FILEPATH=/usr/<wbr>local/qwt-6.1.3/lib/qwt.<wbr>framework/Versions/6/qwt \<br>
> »   »   -DQCA_INCLUDE_DIR:PATH=/opt/<wbr>local/include/qca \<br>
> »   »   -DQCA_LIBRARY:FILEPATH=/opt/<wbr>local/lib/libqca.dylib \<br>
> »   »   -DQSCINTILLA_INCLUDE_DIR:PATH=<wbr>/opt/local/libexec/qt5/include \<br>
> »   »   -DQSCINTILLA_LIBRARY:FILEPATH=<wbr>/opt/local/libexec/qt5/lib/<wbr>libqscintilla2.dylib \<br>
> »   »   -DQT_LRELEASE_EXECUTABLE:<wbr>FILEPATH=/opt/local/libexec/<wbr>qt5/bin/lrelease \<br>
><br>
> 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.<br>
><br>
> Best,<br>
> David<br>
><br>
>> Le 31 oct. 2016 à 16:12, Diane Perez <<a href="mailto:lintawa@gmail.com">lintawa@gmail.com</a>> a écrit :<br>
>><br>
>> Dear QGIS developers,<br>
>><br>
>> First of all, thank you very much for the great job, I have been a very happy user for years !<br>
>><br>
>> I would like to contribute now to the development, but I found myself stuck at the installation of dependencies.<br>
>><br>
>> 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.<br>
>><br>
>> 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...<br>
>><br>
>> 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 ?<br>
>><br>
>> 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.<br>
>><br>
>> I hope someone can give me pointers, as I would really like to contribute to QGIS (and hopefully fix a few bugs bugging me) !<br>
>><br>
>> Best regards,<br>
>> Diane<br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Qgis-developer mailing list<br>
>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br></div>