<div dir="ltr">Hi Nyall,<div class="gmail_extra"><div><div class="gmail_signature"><br></div></div><div class="gmail_quote">On Fri, Dec 30, 2016 at 8:31 PM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 1 December 2016 at 10:32, Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>> wrote:<br>
> Hi,<br>
><br>
</span><span class="gmail-">> Another update. I have crafted a 'qgis3-dev' Homebrew formula:<br>
> <a href="https://github.com/qgis/homebrew-qgisdev/blob/master/Formula/qgis3-dev.rb" rel="noreferrer" target="_blank">https://github.com/qgis/<wbr>homebrew-qgisdev/blob/master/<wbr>Formula/qgis3-dev.rb</a><br>
><br>
> See README for basics on building the formula:<br>
> <a href="https://github.com/qgis/homebrew-qgisdev" rel="noreferrer" target="_blank">https://github.com/qgis/<wbr>homebrew-qgisdev</a><br>
><br>
> For those devs/testers with a ready-to-go Homebrew setup:<br>
> `brew tap qgis/qgisdev`<br>
> `brew info qgis3-dev` (to review options)<br>
> `brew install -dv qgis3-dev <extra options>` (though try without options<br>
> first)<br>
<br>
</span>I'm having trouble installing using this tap. If I run brew install<br>
-db qgis3-dev I get the error:<br>
<br>
qgis3-dev: Compilation can fail if these formulae are installed and linked:<br>
<br>
<br>
Unlink with `brew unlink qt` or remove with `brew uninstall qt`<br>
<br>
Error: An unsatisfied requirement failed this build.<br>
<br>
<br>
If I then "brew unlink qt" and attempt to reinstall I get the error:<br>
<br>
Error: You must `brew link qt5` before qgis/qgisdev/qgis3-dev can be installed<br>
<br>
Any ideas what's going on here?</blockquote><div><br></div><div>Yep: <a href="https://github.com/Homebrew/homebrew-core/pull/8306">https://github.com/Homebrew/homebrew-core/pull/8306</a></div><div><br></div><div>Qt5 is now the default, since ~ yesterday, and `qt` and `pyqt` are now aliases to Qt5 formulae. I've pushed some fixes, please `brew update` try again.</div><div><br></div><div>Please try following the dev tutorial, once you have it building. Any feedback appreciated (using the github issue tracker there).</div><div><br></div><div><a href="https://github.com/qgis/homebrew-qgisdev/tree/master/development">https://github.com/qgis/homebrew-qgisdev/tree/master/development</a><br></div><div><div class="gmail_signature"><br></div><div class="gmail_signature">Regards,</div><div class="gmail_signature"><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
<br>
<br>
<br>
><br>
> Takes ~ 18-20 mins to build on a newer Mac with 8 cores. There is a long<br>
> pause when compiling src/core/qgsxmlutils.cpp (not sure why it happens only<br>
> for a Homebrew formula).<br>
><br>
> Note: there are definitely macOS-related bugs in the resultant QGIS.app.<br>
> Please report them as QGIS bugs, unless you think it is related to the<br>
> formula, then report on github tracker for homebrew-qgisdev repo.<br>
><br>
> If you have the time, please test this and contribute however you can.<br>
> Thanks!<br>
><br>
> I am working on a 'qgis3-travis' formula, specific for use in main QGIS<br>
> source tree Travis CI testing. Also working on an updated tutorial for using<br>
> Qt Creator 4.1, etc. to develop on QGIS source based upon these formulae<br>
> Homebrew dependencies (much easier now).<br>
><br>
> Regards,<br>
><br>
> Larry Shaffer<br>
> Dakota Cartography<br>
> Black Hills, South Dakota<br>
><br>
> On Thu, Nov 17, 2016 at 6:55 PM, Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>><br>
> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> Quick update. Success! I've finally built QGIS 3 master branch off of<br>
>> unmodified Homebrew dependencies, though had to edit several bits of source<br>
>> code and pull some hair out.<br>
>><br>
>> QGIS version: 2.99.0-Master<br>
>> QGIS code revision: 6727ea7<br>
>> Compiled against: Qt 5.7.0<br>
>> Running against Qt: 5.7.0<br>
>> Compiled against GDAL/OGR: 2.1.2<br>
>> Running against GDAL/OGR: 2.1.2<br>
>> Compiled against GEOS: 3.5.0-CAPI-1.9.0<br>
>> Running against GEOS: 3.5.0-CAPI-1.9.0 r4084<br>
>> PostgreSQL Client Version: 9.6.1<br>
>> SpatiaLite Version: 4.3.0a<br>
>> QWT Version: 6.1.3<br>
>> PROJ.4 Version: 493<br>
>> QScintilla2 Version: 2.9.3<br>
>> This copy of QGIS writes debugging output.<br>
>><br>
>> and Python 3.5.2.<br>
>><br>
>> <a href="http://drive.dakotacarto.com/qgis/qgis3-master_homewbrew-macos-10.11.png" rel="noreferrer" target="_blank">http://drive.dakotacarto.com/<wbr>qgis/qgis3-master_homewbrew-<wbr>macos-10.11.png</a><br>
>><br>
>> It's take me a bit more time to commit proper changes, create the<br>
>> qgis3-dev formula and add the docs for:<br>
>><br>
>> <a href="https://github.com/qgis/homebrew-qgisdev" rel="noreferrer" target="_blank">https://github.com/qgis/<wbr>homebrew-qgisdev</a><br>
>><br>
>> Is anyone else already developing QGIS 3 master on Mac?<br>
>><br>
>> Regards,<br>
>><br>
>> Larry Shaffer<br>
>> Dakota Cartography<br>
>> Black Hills, South Dakota<br>
>><br>
>> On Tue, Nov 8, 2016 at 1:02 PM, Rouzaud Denis <<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi Larry,<br>
>>><br>
>>> Thanks a lot for tackling this!<br>
>>> Glad to read it’ll land soon, but no pressure ;)<br>
>>><br>
>>> Cheers,<br>
>>> Denis<br>
>>><br>
>>><br>
>>> On 8 Nov 2016, at 18:13, Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> On Sun, Nov 6, 2016 at 7:23 PM, Etienne Trimaille<br>
>>> <<a href="mailto:etienne.trimaille@gmail.com">etienne.trimaille@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Thanks David and Matthias for providing some feedbacks about QGIS 3 on<br>
>>>> mac.<br>
>>>> I also would like QGIS 3 compiling on mac.<br>
>>>><br>
>>>> I hope you will update the <a href="http://install.md" rel="noreferrer" target="_blank">install.md</a> on the repo when you will have a<br>
>>>> working workflow ? Thanks<br>
>>><br>
>>><br>
>>> I have been preparing Homebrew and OSGeo4Mac 'taps' for this move and am<br>
>>> now focusing on QGIS 3 formulae, probably starting on Thursday or Friday. I<br>
>>> hope to have everything building and docs completed by the end of the<br>
>>> weekend.<br>
>>><br>
>>> The new formulae will not be hosted in OSGeo4Mac or Homebrew (at least<br>
>>> not until there are stable releases), but in a specific tap for QGIS<br>
>>> development and Travis CI support:<br>
>>><br>
>>> <a href="https://github.com/qgis/homebrew-qgisdev" rel="noreferrer" target="_blank">https://github.com/qgis/<wbr>homebrew-qgisdev</a><br>
>>><br>
>>> So, look for changes there as things progress. Please contribute or post<br>
>>> bug reports there for those dev formulae or docs, once they are available.<br>
>>><br>
>>> Regards,<br>
>>><br>
>>> Larry Shaffer<br>
>>> Dakota Cartography<br>
>>> Black Hills, South Dakota<br>
>>><br>
>>>><br>
>>>> 2016-11-01 1:22 GMT+07:00 Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>>:<br>
>>>>><br>
>>>>> 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>
>>>>><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>
>>>>> Matthias<br>
>>>>><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<br>
>>>>> > (El capitan and Maverick):<br>
>>>>> ><br>
>>>>> > First I use Macport: MacPort use clang/libc++ by default (at least<br>
>>>>> > with XCode 5.3 on Maverick, 7.3 on El capitan) so this should solve one of<br>
>>>>> > 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<br>
>>>>> > variants and you need to tweak some portfiles: qscintilla and py-qscintilla<br>
>>>>> > 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<br>
>>>>> > portfiles was too painful, but I did not encounter any serious problems as<br>
>>>>> > far as I can remember.<br>
>>>>> ><br>
>>>>> > No source code was needed to be patched, only compilation<br>
>>>>> > configurations.<br>
>>>>> ><br>
>>>>> > Once you get all dependencies you need to set the cmake options<br>
>>>>> > 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>
>>>>> > »   »<br>
>>>>> > -DPYTHON_CUSTOM_FRAMEWORK:<wbr>PATH=/opt/local/Library/<wbr>Frameworks/Python.framework<br>
>>>>> > \<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>
>>>>> > »   »<br>
>>>>> > -DQT_QMAKE_EXECUTABLE:<wbr>FILEPATH=/opt/local/libexec/<wbr>qt5/bin/qmake \<br>
>>>>> > »   »<br>
>>>>> > -DQWT_INCLUDE_DIR:PATH=/usr/<wbr>local/qwt-6.1.3/lib/qwt.<wbr>framework/Versions/6/Headers<br>
>>>>> > \<br>
>>>>> > »   »<br>
>>>>> > -DQWT_LIBRARY:FILEPATH=/usr/<wbr>local/qwt-6.1.3/lib/qwt.<wbr>framework/Versions/6/qwt<br>
>>>>> > \<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>
>>>>> > \<br>
>>>>> > »   »<br>
>>>>> > -DQSCINTILLA_LIBRARY:FILEPATH=<wbr>/opt/local/libexec/qt5/lib/<wbr>libqscintilla2.dylib<br>
>>>>> > \<br>
>>>>> > »   »<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,<br>
>>>>> > but for now I have managed to compile Qgis from the master branch without<br>
>>>>> > 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<br>
>>>>> >> very happy user for years !<br>
>>>>> >><br>
>>>>> >> I would like to contribute now to the development, but I found<br>
>>>>> >> myself stuck at the installation of dependencies.<br>
>>>>> >><br>
>>>>> >> According to the instructions of the INSTALL file provided with the<br>
>>>>> >> source code, mac users should use Qt 4 and compile and install a bunch of<br>
>>>>> >> dependencies for which binaries are not available (mainly Spatialindex, SIP,<br>
>>>>> >> QScintilla2, PyQt, Qwt and bison) before being able to compile QGIS. I<br>
>>>>> >> followed the instructions and got stuck at compiling QGIS as the master now<br>
>>>>> >> requires Qt 5.<br>
>>>>> >><br>
>>>>> >> Now as I actually started by installing Qt 5 by mistake, I had the<br>
>>>>> >> opportunity to see that it leads to a lot of problems to compile the<br>
>>>>> >> dependencies. As far as I understand, Qt 5 requires C++11, which means one<br>
>>>>> >> must use the new libc++ library instead of the old libstdc++ (at least on my<br>
>>>>> >> configuration, with El Capitan and clang/llvm). Some modifications are such<br>
>>>>> >> that mixing both is not possible, so everything must be compiled from start<br>
>>>>> >> with C++11 and libc++. Unfortunately most of the dependencies I mention<br>
>>>>> >> above do not compile without tweaking, and I stopped doing it when it<br>
>>>>> >> 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<br>
>>>>> >> of all this than me. So my question is : how did you install those<br>
>>>>> >> 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<br>
>>>>> >> 5 and C++11 ? If so, how did you do it ? I got stuck at Qwt (6.1.3) which<br>
>>>>> >> uses lots of functions deprecated in Qt 5.<br>
>>>>> >><br>
>>>>> >> I hope someone can give me pointers, as I would really like to<br>
>>>>> >> 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><br>
>>>><br>
>>>><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>
>>><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>
>>><br>
>><br>
><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>
</div></div></blockquote></div><br></div></div>