Re: [QGIS-Developer] [Qgis-user] Mac OS packages ...again!

2018-12-03 Thread Peter Petrik
Hi,

I need to investigate on this, for reference there is open issue
https://github.com/lutraconsulting/qgis-mac-packager/issues/41

Kind regards
Peter


On Mon, Dec 3, 2018 at 7:39 PM Tim Sutton  wrote:

>
>
> On 03 Dec 2018, at 20:29, Tim Sutton  wrote:
>
> Hi
>
>
>
> On 03 Dec 2018, at 09:32, Peter Petrik 
> wrote:
>
> Hi,
>
> Python is already bundled in our package. The package is really
> standalone, so you do not need to have anything else installed. The note
> about Python is that, unfortunately, the python distribution we use ATM is
> not compatible with MacOS 10.11 and 10.12. One way how to fix it is
> probably use Python official distribution and not Homebrew distribution in
> the process of creation of our package.
>
>
> Ah ok cool thanks for the clarification. I can confirm that the package I
> downloaded last night picks up the python interpreter inside the bundle
> nicely:
>
> import sys
> for p in sys.path:
> print(p)
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python/plugins/karika
> /Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python
> /Users/timlinux/Library/Application
> Support/QGIS/QGIS3/profiles/default/python/plugins
> /Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
> /Applications/QGIS3.4.2.app/Contents/Resources/python
>
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
>
>
> What is the recommended way to install additional deps (e.g. via pip) into
> the bundled python environment? If we try to just directly  use the python
> interpreter (see below) it does not have the correct python path:
>
>
>
> [timlinux@sandstone
>  
> /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$
>  ./python3.7
> Python 2.7.10 (default, Aug 17 2018, 17:41:52)
> [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> for p in sys.path:
> ... print(p)
> ...
>
> /Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
> /Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
> /Library/Python/2.7/site-packages/numpy-override
> /Library/Python/2.7/site-packages/matplotlib-override
> /Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
> /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
> /Library/Python/2.7/site-packages/pycharm-debug.egg
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
> /Users/timlinux/Library/Python/2.7/lib/python/site-packages
> /usr/local/lib/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages/pycharm-debug.egg
> /usr/local/lib/python2.7/site-packages/geos
> /usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
> /Library/Python/2.7/site-packages
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
> >>>
> KeyboardInterrupt
> >>> quit()
>
> Maybe we need to bundle in pip and a tool from within QGIS to call pip
> (some examples were given on this mailing list in the past) from within
> QGIS so that the python interpreter has the correct context….this would
> probably be useful for windows users too?
>
>
>
> Regards
>
> Tim
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [332] geoUmbriaSUIT approval notification.

2018-12-03 Thread noreply

Plugin geoUmbriaSUIT approval by pcav.
The plugin version "[332] geoUmbriaSUIT 2.99.0 Experimental" is now approved
Link: http://plugins.qgis.org/plugins/geoUmbriaSUIT/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [579] QuickOSM approval notification.

2018-12-03 Thread noreply

Plugin QuickOSM approval by Gustry.
The plugin version "[579] QuickOSM 1.10.0" is now approved
Link: http://plugins.qgis.org/plugins/QuickOSM/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [579] QuickOSM approval notification.

2018-12-03 Thread noreply

Plugin QuickOSM approval by Gustry.
The plugin version "[579] QuickOSM 1.10.0" is now unapproved
Link: http://plugins.qgis.org/plugins/QuickOSM/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Wrong line widths in legend when saving layout as pdf

2018-12-03 Thread Nyall Dawson
On Mon, 3 Dec 2018 at 22:35, magerlin  wrote:
>
> In QGIS 3.4.2 I have problems when saving a layout as PDF: The line widths
> are wrong in the PDF. When saving to all other formats the line widths are
> right.
>
> Saved as PDF:
> 
>
> Saved in other formats:
> 

I don't believe there's been any related changes here, unless it was
caused by the upgrade from Qt 5.9 -> Qt 5.11.

I wonder if you could download an earlier release of say 3.2.2 and
test with that to confirm?

Nyall

>
>
>
> -
> Regards Morten
>
> Currently using Qgis 2.18.23 (OSGeo4) and Qgis 3.4.2 in parallel
> Windows 7, 64bit
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-psc] Deadline 21Dec2018: Call for presentations and workshop for International QGIS UserConf

2018-12-03 Thread Tim Sutton
Done hopefully looks ok now? If you can share a pic of A Coruña I will add it 
to the post.

Regards

Tim

> On 03 Dec 2018, at 23:45, Luigi Pirelli  wrote:
> 
> thank you tim... please can you adjust the blog post formatting?
> 
> Luigi Pirelli
> 
> **
> * LinkedIn: https://www.linkedin.com/in/luigipirelli 
> 
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli 
> 
> * GitHub: https://github.com/luipir 
> * Mastering QGIS 2nd Edition:
> * 
> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>  
> 
> * Hire me: http://goo.gl/BYRQKg 
> **
> 
> 
> On Mon, 3 Dec 2018 at 19:09, Tim Sutton  > wrote:
> Thanks for this email Luigi - I made a blog post with more-or-less your text 
> below here:
> 
> http://blog.qgis.org/2018/12/03/call-for-presentations-qgis-user-conference-and-developer-meeting-2019/
>  
> 
> 
> Regards
> 
> Tim
> 
>> On 03 Dec 2018, at 18:10, Luigi Pirelli > > wrote:
>> 
>> Next International QGIS User Conference and Developer Meeting will take 
>> place in the week from 4 to 10 March 2019 in A Coruña (Spain).
>> 
>> The call for presentations and workshop registration in: 
>> https://goo.gl/u5rTFV 
>> deadline to present proposals is 21 Dec 2019
>> 
>> any info can be asked to: userconf2...@qgis.es 
>> 
>> The International QGIS User and Developer Conference wants to be the 
>> referential conference, and a meeting point for the family of users and 
>> developers orbiting around the QGIS project, in order to gather experiences 
>> and sharing knowledge about QGIS. The language of the Conference is English.
>> 
>> The event is organized by the Spanish QGIS Association [1], the Spanish user 
>> group, and the Galician Xeoinquedos community [2] with the help of A Coruña 
>> municipality [3]. The event is under the QGIS.org  
>> umbrella.
>> 
>> [1] http://qgis.es/ 
>> [2] https://xeoinquedos.wordpress.com/ 
>> [3] https://www.coruna.gal/ 
>> 
>> Luigi Pirelli on behalf of the organizer committee.
>> ___
>> Qgis-psc mailing list
>> qgis-...@lists.osgeo.org 
>> https://lists.osgeo.org/mailman/listinfo/qgis-psc 
>> 
> —
> 
> 
> 
> 
> 
> 
> 
> 
> Tim Sutton
> 
> Co-founder: Kartoza
> Ex Project chair: QGIS.org 
> 
> Visit http://kartoza.com  to find out about open source:
> 
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
> 
> Skype: timlinux 
> IRC: timlinux on #qgis at freenode.net 
> 

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-psc] Deadline 21Dec2018: Call for presentations and workshop for International QGIS UserConf

2018-12-03 Thread Luigi Pirelli
thank you tim... please can you adjust the blog post formatting?

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
*
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
* Hire me: http://goo.gl/BYRQKg
**


On Mon, 3 Dec 2018 at 19:09, Tim Sutton  wrote:

> Thanks for this email Luigi - I made a blog post with more-or-less your
> text below here:
>
>
> http://blog.qgis.org/2018/12/03/call-for-presentations-qgis-user-conference-and-developer-meeting-2019/
>
> Regards
>
> Tim
>
> On 03 Dec 2018, at 18:10, Luigi Pirelli  wrote:
>
> Next* International QGIS User Conference and Developer Meeting* will take
> place in the week from *4 to 10 March 2019 in A Coruña (Spain).*
>
> The call for presentations and workshop *registration in: *
> *https://goo.gl/u5rTFV* 
> *deadline *to present proposals is* 21 Dec 2019*
>
> any info can be asked to: userconf2...@qgis.es
>
> The International QGIS User and Developer Conference wants to be the
> referential conference, and a meeting point for the family of users and
> developers orbiting around the QGIS project, in order to gather experiences
> and sharing knowledge about QGIS. The language of the Conference is English.
>
> The event is organized by the *Spanish QGIS Association* [1], the Spanish
> user group, and the Galician *Xeoinquedos* community [2] with the help of *A
> Coruña municipality* [3]. The event is under the QGIS.org umbrella.
>
> [1] http://qgis.es/
> [2] https://xeoinquedos.wordpress.com/
> [3] https://www.coruna.gal/
>
> Luigi Pirelli on behalf of the organizer committee.
> ___
> Qgis-psc mailing list
> qgis-...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>
>
> —
>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Plugin [1445] Kartverket Tilgjengelighet approval notification.

2018-12-03 Thread noreply

Plugin Kartverket Tilgjengelighet approval by pcav.
The plugin version "[1445] Kartverket Tilgjengelighet 0.2.1 Experimental" is 
now approved
Link: http://plugins.qgis.org/plugins/Tilgjengelighet/
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-user] Mac OS packages ...again!

2018-12-03 Thread Tim Sutton


On 03 Dec 2018, at 20:29, Tim Sutton  wrote:

Hi



> On 03 Dec 2018, at 09:32, Peter Petrik  > wrote:
> 
> Hi, 
> 
> Python is already bundled in our package. The package is really standalone, 
> so you do not need to have anything else installed. The note about Python is 
> that, unfortunately, the python distribution we use ATM is not compatible 
> with MacOS 10.11 and 10.12. One way how to fix it is probably use Python 
> official distribution and not Homebrew distribution in the process of 
> creation of our package.
> 

Ah ok cool thanks for the clarification. I can confirm that the package I 
downloaded last night picks up the python interpreter inside the bundle nicely:

import sys
for p in sys.path:
print(p)
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins/karika
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Applications/QGIS3.4.2.app/Contents/Resources/python
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages


What is the recommended way to install additional deps (e.g. via pip) into the 
bundled python environment? If we try to just directly  use the python 
interpreter (see below) it does not have the correct python path:



[timlinux@sandstone 
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$
 ./python3.7
Python 2.7.10 (default, Aug 17 2018, 17:41:52) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for p in sys.path:
... print(p)
... 

/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
/Library/Python/2.7/site-packages/numpy-override
/Library/Python/2.7/site-packages/matplotlib-override
/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
/Library/Python/2.7/site-packages/pycharm-debug.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/timlinux/Library/Python/2.7/lib/python/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/pycharm-debug.egg
/usr/local/lib/python2.7/site-packages/geos
/usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
>>> 
KeyboardInterrupt
>>> quit()

Maybe we need to bundle in pip and a tool from within QGIS to call pip (some 
examples were given on this mailing list in the past) from within QGIS so that 
the python interpreter has the correct context….this would probably be useful 
for windows users too?



Regards

Tim

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-user] Mac OS packages ...again!

2018-12-03 Thread Tim Sutton
Hi



> On 03 Dec 2018, at 09:32, Peter Petrik  
> wrote:
> 
> Hi, 
> 
> Python is already bundled in our package. The package is really standalone, 
> so you do not need to have anything else installed. The note about Python is 
> that, unfortunately, the python distribution we use ATM is not compatible 
> with MacOS 10.11 and 10.12. One way how to fix it is probably use Python 
> official distribution and not Homebrew distribution in the process of 
> creation of our package.
> 

Ah ok cool thanks for the clarification. I can confirm that the package I 
downloaded last night picks up the python interpreter inside the bundle nicely:

import sys
for p in sys.path:
print(p)
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins/karika
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Applications/QGIS3.4.2.app/Contents/Resources/python
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages


What is the recommended way to install additional deps (e.g. via pip) into the 
bundled python environment? If we try to just directly  use the python 
interpreter (see below) it does not have the correct python path:



[timlinux@sandstone 
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$
 ./python3.7
Python 2.7.10 (default, Aug 17 2018, 17:41:52) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for p in sys.path:
... print(p)
... 

/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
/Library/Python/2.7/site-packages/numpy-override
/Library/Python/2.7/site-packages/matplotlib-override
/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
/Library/Python/2.7/site-packages/pycharm-debug.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/timlinux/Library/Python/2.7/lib/python/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/pycharm-debug.egg
/usr/local/lib/python2.7/site-packages/geos
/usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
>>> 
KeyboardInterrupt
>>> quit()

Maybe we need to bundle in pip and a tool from within QGIS to call pip (some 
examples were given on this mailing list in the past) from within QGIS so that 
the python interpreter has the correct context….this would probably be useful 
for windows users too?



Regards

Tim

> P.
> 
> 
> On Sun, Dec 2, 2018 at 10:16 PM Tim Sutton  > wrote:
> Hi
> 
> 
>> On 30 Nov 2018, at 16:28, Saber Razmjooei 
>> > > wrote:
>> 
>> Hi Tim and all,
>> 
>> We have managed to package QGIS with version number. So, you can have all 
>> versions of QGIS installed side-by-side:
>> https://lutraconsulting.github.io/qgis-mac-packager/ 
>> 
>> (master build is in progress and should be ready in an hour or so).
> 
> This is great, grabbing it now!
> 
>> 
>> Feel free to test and file tickets.
> 
> Cool, will do.
> 
> @Peter can you clarify what you meant by your reply regarding python? Are you 
> suggesting I need to install the python.org  package too? 
> Do you have plans to bundle python into your QGIS.app?
> 
> Regards
> 
> Tim
> 
>> 
>> Regards
>> Saber
>> 
>> 
>> 
>> On Wed, 21 Nov 2018 at 15:42, Peter Petrik 
>> > > wrote:
>> Python is taken directly 

Re: [QGIS-Developer] [Qgis-psc] Deadline 21Dec2018: Call for presentations and workshop for International QGIS UserConf

2018-12-03 Thread Tim Sutton
Thanks for this email Luigi - I made a blog post with more-or-less your text 
below here:

http://blog.qgis.org/2018/12/03/call-for-presentations-qgis-user-conference-and-developer-meeting-2019/

Regards

Tim

> On 03 Dec 2018, at 18:10, Luigi Pirelli  wrote:
> 
> Next International QGIS User Conference and Developer Meeting will take place 
> in the week from 4 to 10 March 2019 in A Coruña (Spain).
> 
> The call for presentations and workshop registration in: 
> https://goo.gl/u5rTFV 
> deadline to present proposals is 21 Dec 2019
> 
> any info can be asked to: userconf2...@qgis.es 
> 
> The International QGIS User and Developer Conference wants to be the 
> referential conference, and a meeting point for the family of users and 
> developers orbiting around the QGIS project, in order to gather experiences 
> and sharing knowledge about QGIS. The language of the Conference is English.
> 
> The event is organized by the Spanish QGIS Association [1], the Spanish user 
> group, and the Galician Xeoinquedos community [2] with the help of A Coruña 
> municipality [3]. The event is under the QGIS.org umbrella.
> 
> [1] http://qgis.es/ 
> [2] https://xeoinquedos.wordpress.com/ 
> [3] https://www.coruna.gal/ 
> 
> Luigi Pirelli on behalf of the organizer committee.
> ___
> Qgis-psc mailing list
> qgis-...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-psc

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Deadline 21Dec2018: Call for presentations and workshop for International QGIS UserConf

2018-12-03 Thread Luigi Pirelli
Next* International QGIS User Conference and Developer Meeting* will take
place in the week from *4 to 10 March 2019 in A Coruña (Spain).*

The call for presentations and workshop *registration in: *
*https://goo.gl/u5rTFV* 
*deadline *to present proposals is* 21 Dec 2019*

any info can be asked to: userconf2...@qgis.es

The International QGIS User and Developer Conference wants to be the
referential conference, and a meeting point for the family of users and
developers orbiting around the QGIS project, in order to gather experiences
and sharing knowledge about QGIS. The language of the Conference is English.

The event is organized by the *Spanish QGIS Association* [1], the Spanish
user group, and the Galician *Xeoinquedos* community [2] with the help of *A
Coruña municipality* [3]. The event is under the QGIS.org umbrella.

[1] http://qgis.es/
[2] https://xeoinquedos.wordpress.com/
[3] https://www.coruna.gal/

Luigi Pirelli on behalf of the organizer committee.
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Wrong line widths in legend when saving layout as pdf

2018-12-03 Thread magerlin
In QGIS 3.4.2 I have problems when saving a layout as PDF: The line widths
are wrong in the PDF. When saving to all other formats the line widths are
right.

Saved as PDF:
 

Saved in other formats:
 



-
Regards Morten

Currently using Qgis 2.18.23 (OSGeo4) and Qgis 3.4.2 in parallel
Windows 7, 64bit
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] unable to build MacOS master (OpenCL)

2018-12-03 Thread Peter Petrik
Thanks, looks that it works with this patch, please see
https://github.com/qgis/QGIS/pull/8590

P.

On Mon, Dec 3, 2018 at 9:51 AM Alessandro Pasotti 
wrote:

> On Mon, Dec 3, 2018 at 9:43 AM Peter Petrik <
> peter.pet...@lutraconsulting.co.uk> wrote:
>
>> Looks like 1.2 (compiled
>> https://github.com/yohanesgultom/parallel-programming-assignment/blob/master/PR2/opencl/device_query.c
>> )
>>
>
>
> So, please try to #ifdef for mac and set
>
> #define CL_HPP_MINIMUM_OPENCL_VERSION 120
> #define CL_HPP_TARGET_OPENCL_VERSION 120
> #define CL_TARGET_OPENCL_VERSION 120
>
> if that doesn't work, try with 110 instead of 120.
>
> You can run an OpenCL smoke test by enabling it in the
> options->acceleration and by using the hillshade renderer on a DEM raster
> (also enable rendering debug log in options->rendering and you'll see in
> the log is the hillshade is really using opencl).
>
>
> Please let me know if this works for you.
>
>
>
>>
>> Platform - 1
>>
>>   1.1 CL_PLATFORM_NAME: Apple
>>
>>   1.2 CL_PLATFORM_VENDOR: Apple
>>
>>   1.3 CL_PLATFORM_VERSION: OpenCL 1.2 (Oct 11 2018 21:04:03)
>>
>>   1.4 CL_PLATFORM_PROFILE: FULL_PROFILE
>>
>>   1.5 CL_PLATFORM_EXTENSIONS: cl_APPLE_SetMemObjectDestructor
>> cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names
>> cl_APPLE_gl_sharing cl_khr_gl_event
>>
>>   Device - 1:
>>
>> CL_DEVICE_NAME: Intel(R) UHD Graphics 630
>>
>> CL_DEVICE_VENDOR: Intel Inc.
>>
>> CL_DRIVER_VERSION: 1.2(Oct 11 2018 20:55:51)
>>
>> CL_DEVICE_VERSION: OpenCL 1.2
>>
>> CL_DEVICE_MAX_COMPUTE_UNITS: 24
>>
>>   Device - 2:
>>
>> CL_DEVICE_NAME: AMD Radeon Pro 560X Compute Engine
>>
>> CL_DEVICE_VENDOR: AMD
>>
>> CL_DRIVER_VERSION: 1.2 (Oct 16 2018 21:18:14)
>>
>> CL_DEVICE_VERSION: OpenCL 1.2
>>
>> CL_DEVICE_MAX_COMPUTE_UNITS: 16
>>
>>
>>
>> On Mon, Dec 3, 2018 at 9:19 AM Alessandro Pasotti 
>> wrote:
>>
>>> Hi Peter,
>>>
>>> the only change that come up to my mind is that we are now supporting
>>> also opencl versions > 1.1,
>>> can you please check what is the opencl version implemented on mac?
>>>
>>> It might be necessary to add a ifdef for mac to set
>>>
>>>
>>> #define CL_HPP_MINIMUM_OPENCL_VERSION 110
>>> #define CL_HPP_TARGET_OPENCL_VERSION 110
>>> #define CL_TARGET_OPENCL_VERSION 110
>>>
>>> as it was before the changes.
>>>
>>>
>>>
>>> On Mon, Dec 3, 2018 at 9:02 AM Peter Petrik <
>>> peter.pet...@lutraconsulting.co.uk> wrote:
>>>
 Hi,

 I am unable to build QGIS master after Friday's changes in opencl
 header. Any idea if I can still use official MACOS CL headers or how to
 proceed?

 Thanks.
 Peter

 [ 19%] Building CXX object
 src/core/CMakeFiles/qgis_core.dir/geometry/qgsabstractgeometry.cpp.o

 In file included from
 /Users/peter/Projects/qgis1/QGIS/src/core/raster/qgshillshaderenderer.cpp:33:

 In file included from
 /Users/peter/Projects/qgis1/QGIS/src/core/qgsopenclutils.h:25:

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
 error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_HOST_PROPERTIES'

 CL_HPP_PARAM_NAME_INFO_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)

 ^

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1277:23:
 note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

 F(cl_device_info, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
 cl_command_queue_properties) \

   ^

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
 error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES'

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1278:23:
 note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

 F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES,
 cl_command_queue_properties) \

   ^

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
 error: use of undeclared identifier
 'CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE'

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1279:23:
 note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

 F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE,
 cl_uint) \

   ^

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
 error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE'

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1280:23:
 note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

 F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, cl_uint) \

   ^

 /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
 error: use 

Re: [QGIS-Developer] unable to build MacOS master (OpenCL)

2018-12-03 Thread Alessandro Pasotti
On Mon, Dec 3, 2018 at 9:43 AM Peter Petrik <
peter.pet...@lutraconsulting.co.uk> wrote:

> Looks like 1.2 (compiled
> https://github.com/yohanesgultom/parallel-programming-assignment/blob/master/PR2/opencl/device_query.c
> )
>


So, please try to #ifdef for mac and set

#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_TARGET_OPENCL_VERSION 120

if that doesn't work, try with 110 instead of 120.

You can run an OpenCL smoke test by enabling it in the
options->acceleration and by using the hillshade renderer on a DEM raster
(also enable rendering debug log in options->rendering and you'll see in
the log is the hillshade is really using opencl).


Please let me know if this works for you.



>
> Platform - 1
>
>   1.1 CL_PLATFORM_NAME: Apple
>
>   1.2 CL_PLATFORM_VENDOR: Apple
>
>   1.3 CL_PLATFORM_VERSION: OpenCL 1.2 (Oct 11 2018 21:04:03)
>
>   1.4 CL_PLATFORM_PROFILE: FULL_PROFILE
>
>   1.5 CL_PLATFORM_EXTENSIONS: cl_APPLE_SetMemObjectDestructor
> cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names
> cl_APPLE_gl_sharing cl_khr_gl_event
>
>   Device - 1:
>
> CL_DEVICE_NAME: Intel(R) UHD Graphics 630
>
> CL_DEVICE_VENDOR: Intel Inc.
>
> CL_DRIVER_VERSION: 1.2(Oct 11 2018 20:55:51)
>
> CL_DEVICE_VERSION: OpenCL 1.2
>
> CL_DEVICE_MAX_COMPUTE_UNITS: 24
>
>   Device - 2:
>
> CL_DEVICE_NAME: AMD Radeon Pro 560X Compute Engine
>
> CL_DEVICE_VENDOR: AMD
>
> CL_DRIVER_VERSION: 1.2 (Oct 16 2018 21:18:14)
>
> CL_DEVICE_VERSION: OpenCL 1.2
>
> CL_DEVICE_MAX_COMPUTE_UNITS: 16
>
>
>
> On Mon, Dec 3, 2018 at 9:19 AM Alessandro Pasotti 
> wrote:
>
>> Hi Peter,
>>
>> the only change that come up to my mind is that we are now supporting
>> also opencl versions > 1.1,
>> can you please check what is the opencl version implemented on mac?
>>
>> It might be necessary to add a ifdef for mac to set
>>
>>
>> #define CL_HPP_MINIMUM_OPENCL_VERSION 110
>> #define CL_HPP_TARGET_OPENCL_VERSION 110
>> #define CL_TARGET_OPENCL_VERSION 110
>>
>> as it was before the changes.
>>
>>
>>
>> On Mon, Dec 3, 2018 at 9:02 AM Peter Petrik <
>> peter.pet...@lutraconsulting.co.uk> wrote:
>>
>>> Hi,
>>>
>>> I am unable to build QGIS master after Friday's changes in opencl
>>> header. Any idea if I can still use official MACOS CL headers or how to
>>> proceed?
>>>
>>> Thanks.
>>> Peter
>>>
>>> [ 19%] Building CXX object
>>> src/core/CMakeFiles/qgis_core.dir/geometry/qgsabstractgeometry.cpp.o
>>>
>>> In file included from
>>> /Users/peter/Projects/qgis1/QGIS/src/core/raster/qgshillshaderenderer.cpp:33:
>>>
>>> In file included from
>>> /Users/peter/Projects/qgis1/QGIS/src/core/qgsopenclutils.h:25:
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_HOST_PROPERTIES'
>>>
>>> CL_HPP_PARAM_NAME_INFO_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)
>>>
>>> ^
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1277:23:
>>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>>
>>> F(cl_device_info, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
>>> cl_command_queue_properties) \
>>>
>>>   ^
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES'
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1278:23:
>>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>>
>>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES,
>>> cl_command_queue_properties) \
>>>
>>>   ^
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>>> error: use of undeclared identifier
>>> 'CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE'
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1279:23:
>>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>>
>>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, cl_uint)
>>> \
>>>
>>>   ^
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE'
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1280:23:
>>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>>
>>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, cl_uint) \
>>>
>>>   ^
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>>> error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_QUEUES'
>>>
>>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1281:23:
>>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>>
>>> F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_QUEUES, cl_uint) \
>>>
>>>   ^
>>>
>>> 

Re: [QGIS-Developer] unable to build MacOS master (OpenCL)

2018-12-03 Thread Peter Petrik
Looks like 1.2 (compiled
https://github.com/yohanesgultom/parallel-programming-assignment/blob/master/PR2/opencl/device_query.c
)

Platform - 1

  1.1 CL_PLATFORM_NAME: Apple

  1.2 CL_PLATFORM_VENDOR: Apple

  1.3 CL_PLATFORM_VERSION: OpenCL 1.2 (Oct 11 2018 21:04:03)

  1.4 CL_PLATFORM_PROFILE: FULL_PROFILE

  1.5 CL_PLATFORM_EXTENSIONS: cl_APPLE_SetMemObjectDestructor
cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names
cl_APPLE_gl_sharing cl_khr_gl_event

  Device - 1:

CL_DEVICE_NAME: Intel(R) UHD Graphics 630

CL_DEVICE_VENDOR: Intel Inc.

CL_DRIVER_VERSION: 1.2(Oct 11 2018 20:55:51)

CL_DEVICE_VERSION: OpenCL 1.2

CL_DEVICE_MAX_COMPUTE_UNITS: 24

  Device - 2:

CL_DEVICE_NAME: AMD Radeon Pro 560X Compute Engine

CL_DEVICE_VENDOR: AMD

CL_DRIVER_VERSION: 1.2 (Oct 16 2018 21:18:14)

CL_DEVICE_VERSION: OpenCL 1.2

CL_DEVICE_MAX_COMPUTE_UNITS: 16



On Mon, Dec 3, 2018 at 9:19 AM Alessandro Pasotti 
wrote:

> Hi Peter,
>
> the only change that come up to my mind is that we are now supporting also
> opencl versions > 1.1,
> can you please check what is the opencl version implemented on mac?
>
> It might be necessary to add a ifdef for mac to set
>
>
> #define CL_HPP_MINIMUM_OPENCL_VERSION 110
> #define CL_HPP_TARGET_OPENCL_VERSION 110
> #define CL_TARGET_OPENCL_VERSION 110
>
> as it was before the changes.
>
>
>
> On Mon, Dec 3, 2018 at 9:02 AM Peter Petrik <
> peter.pet...@lutraconsulting.co.uk> wrote:
>
>> Hi,
>>
>> I am unable to build QGIS master after Friday's changes in opencl header.
>> Any idea if I can still use official MACOS CL headers or how to proceed?
>>
>> Thanks.
>> Peter
>>
>> [ 19%] Building CXX object
>> src/core/CMakeFiles/qgis_core.dir/geometry/qgsabstractgeometry.cpp.o
>>
>> In file included from
>> /Users/peter/Projects/qgis1/QGIS/src/core/raster/qgshillshaderenderer.cpp:33:
>>
>> In file included from
>> /Users/peter/Projects/qgis1/QGIS/src/core/qgsopenclutils.h:25:
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_HOST_PROPERTIES'
>>
>> CL_HPP_PARAM_NAME_INFO_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)
>>
>> ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1277:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
>> cl_command_queue_properties) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1278:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES,
>> cl_command_queue_properties) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier
>> 'CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1279:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, cl_uint) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1280:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, cl_uint) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_QUEUES'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1281:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_QUEUES, cl_uint) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_EVENTS'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1282:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_EVENTS, cl_uint) \
>>
>>   ^
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
>> error: use of undeclared identifier 'CL_DEVICE_MAX_PIPE_ARGS'
>>
>> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1283:23:
>> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>>
>> F(cl_device_info, CL_DEVICE_MAX_PIPE_ARGS, cl_uint) \
>>
>>   

Re: [QGIS-Developer] unable to build MacOS master (OpenCL)

2018-12-03 Thread Alessandro Pasotti
Hi Peter,

the only change that come up to my mind is that we are now supporting also
opencl versions > 1.1,
can you please check what is the opencl version implemented on mac?

It might be necessary to add a ifdef for mac to set


#define CL_HPP_MINIMUM_OPENCL_VERSION 110
#define CL_HPP_TARGET_OPENCL_VERSION 110
#define CL_TARGET_OPENCL_VERSION 110

as it was before the changes.



On Mon, Dec 3, 2018 at 9:02 AM Peter Petrik <
peter.pet...@lutraconsulting.co.uk> wrote:

> Hi,
>
> I am unable to build QGIS master after Friday's changes in opencl header.
> Any idea if I can still use official MACOS CL headers or how to proceed?
>
> Thanks.
> Peter
>
> [ 19%] Building CXX object
> src/core/CMakeFiles/qgis_core.dir/geometry/qgsabstractgeometry.cpp.o
>
> In file included from
> /Users/peter/Projects/qgis1/QGIS/src/core/raster/qgshillshaderenderer.cpp:33:
>
> In file included from
> /Users/peter/Projects/qgis1/QGIS/src/core/qgsopenclutils.h:25:
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_HOST_PROPERTIES'
>
> CL_HPP_PARAM_NAME_INFO_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)
>
> ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1277:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
> cl_command_queue_properties) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1278:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES,
> cl_command_queue_properties) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier
> 'CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1279:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1280:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_QUEUES'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1281:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_QUEUES, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_EVENTS'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1282:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_EVENTS, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_MAX_PIPE_ARGS'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1283:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_MAX_PIPE_ARGS, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1284:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_PIPE_MAX_PACKET_SIZE'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1285:23:
> note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'
>
> F(cl_device_info, CL_DEVICE_PIPE_MAX_PACKET_SIZE, cl_uint) \
>
>   ^
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
> error: use of undeclared identifier 'CL_DEVICE_SVM_CAPABILITIES'
>
> /Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1286:23:
> note: expanded from macro 

[QGIS-Developer] unable to build MacOS master (OpenCL)

2018-12-03 Thread Peter Petrik
Hi,

I am unable to build QGIS master after Friday's changes in opencl header.
Any idea if I can still use official MACOS CL headers or how to proceed?

Thanks.
Peter

[ 19%] Building CXX object
src/core/CMakeFiles/qgis_core.dir/geometry/qgsabstractgeometry.cpp.o

In file included from
/Users/peter/Projects/qgis1/QGIS/src/core/raster/qgshillshaderenderer.cpp:33:

In file included from
/Users/peter/Projects/qgis1/QGIS/src/core/qgsopenclutils.h:25:

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_HOST_PROPERTIES'

CL_HPP_PARAM_NAME_INFO_2_0_(CL_HPP_DECLARE_PARAM_TRAITS_)

^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1277:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES,
cl_command_queue_properties) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1278:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES,
cl_command_queue_properties) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier
'CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1279:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1280:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_QUEUES'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1281:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_QUEUES, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_MAX_ON_DEVICE_EVENTS'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1282:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_MAX_ON_DEVICE_EVENTS, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_MAX_PIPE_ARGS'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1283:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_MAX_PIPE_ARGS, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1284:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_PIPE_MAX_PACKET_SIZE'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1285:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_PIPE_MAX_PACKET_SIZE, cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier 'CL_DEVICE_SVM_CAPABILITIES'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1286:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_SVM_CAPABILITIES,
cl_device_svm_capabilities) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier
'CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT'

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1287:23:
note: expanded from macro 'CL_HPP_PARAM_NAME_INFO_2_0_'

F(cl_device_info, CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT,
cl_uint) \

  ^

/Users/peter/Projects/qgis1/QGIS/external/opencl-clhpp/include/CL/cl2.hpp:1323:1:
error: use of undeclared identifier