Re: [QGIS-Developer] Build QGIS with MXE

2020-10-19 Thread Theuns Heydenrych
Hi
No, I did not, I wanted to go the route, where I can build it with the
provided build-mxe.sh script in the repo.
This way I can do debug builds and also I can change compilers in MXE
itself, for different builds.


On Mon, Oct 19, 2020 at 8:48 AM Alessandro Pasotti 
wrote:

> did you pull from elpaso/mxe-qt5-builder:latest ?
>
> that works for me
>
>
> On Sun, Oct 18, 2020 at 3:39 PM Theuns Heydenrych
>  wrote:
> >
> > HI
> > I have followed the instructions on how to build QGIS with MXE.
> > I have all the dependencies build via MXE
> >
> > I have changed the ms-windows/mxe/build-mxe.sh file to point the the MXE
> folder
> > I have also changed the TARGET value, to the one I used in the MXE
> settings.mk file.
> > I have checked out the release-3_10 branch of the QGIS repo
> >
> > When running the ms-windows/mxe/build-mxe.sh from within the QGIS folder
> I get the following error, the error output us in the file attached.
> > Also attached I the modified_build-mxe.sh file.
> > In the error output it shows that it try to use the following for a C
> compiler
> >
> "/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc"
> > and it fails with the error:
> > ccache: error: Could not find compiler "x86_64-w64-mingw32.shared-gcc"
> in PATH
> >
> > I executed the command
> >
> /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
> in the same terminal and got the same result, "ccache: error: Could not
> find compiler "x86_64-w64-mingw32.shared-gcc" in PATH".
> > I have checked the symbolic link to
> /home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
> and it looks fine, with executable rights and links to
> > /home/theuns/work/mxe/mxe/.ccache/bin/ccache
> > Please help, what can do to resolve this?
> > I am using Ubuntu 20.04.
> >
> > Regards
> >
> > ___
> > 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
>
>
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
>
___
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] Build QGIS with MXE

2020-10-18 Thread Theuns Heydenrych
HI
I have followed the instructions on how to build QGIS with MXE.
I have all the dependencies build via MXE

I have changed the ms-windows/mxe/build-mxe.sh file to point the the MXE
folder
I have also changed the TARGET value, to the one I used in the MXE
settings.mk file.
I have checked out the release-3_10 branch of the QGIS repo

When running the ms-windows/mxe/build-mxe.sh from within the QGIS folder I
get the following error, the error output us in the file attached.
Also attached I the modified_build-mxe.sh file.
In the error output it shows that it try to use the following for a C
compiler
"/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc"
and it fails with the error:
ccache: error: Could not find compiler "x86_64-w64-mingw32.shared-gcc" in
PATH

I executed the command
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
in the same terminal and got the same result, "ccache: error: Could not
find compiler "x86_64-w64-mingw32.shared-gcc" in PATH".
I have checked the symbolic link
to 
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
and it looks fine, with executable rights and links to
/home/theuns/work/mxe/mxe/.ccache/bin/ccache
Please help, what can do to resolve this?
I am using Ubuntu 20.04.

Regards
== Using MXE wrapper: 
/home/theuns/work/mxe/mxe/usr/bin/x86_64-w64-mingw32.shared-cmake
 - cmake version 3.17.3
 - warnings for unused CMAKE_POLICY_DEFAULT variables can be ignored
== Using MXE toolchain: 
/home/theuns/work/mxe/mxe/usr/x86_64-w64-mingw32.shared/share/cmake/mxe-conf.cmake
== Using MXE runresult: 
/home/theuns/work/mxe/mxe/usr/share/cmake/modules/TryRunResults.cmake
loading initial cache file 
/home/theuns/work/mxe/mxe/usr/share/cmake/modules/TryRunResults.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: 
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
-- Check for working C compiler: 
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
 - broken
CMake Error at 
/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60
 (message):
  The C compiler


"/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

Change Dir: /home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_1f7ad/fast && /usr/bin/make  -f 
CMakeFiles/cmTC_1f7ad.dir/build.make CMakeFiles/cmTC_1f7ad.dir/build
make[1]: Entering directory '/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj

/home/theuns/work/mxe/mxe/usr/x86_64-pc-linux-gnu/bin/x86_64-w64-mingw32.shared-gcc
-o CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj   -c 
/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp/testCCompiler.c
ccache: error: Could not find compiler "x86_64-w64-mingw32.shared-gcc" in 
PATH
make[1]: *** [CMakeFiles/cmTC_1f7ad.dir/build.make:86: 
CMakeFiles/cmTC_1f7ad.dir/testCCompiler.c.obj] Error 1
make[1]: Leaving directory '/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeTmp'
make: *** [Makefile:141: cmTC_1f7ad/fast] Error 2



  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:23 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeOutput.log".
See also "/home/theuns/work/mxe/QGIS/CMakeFiles/CMakeError.log".


modified_buid-mxe.sh
Description: application/shellscript
___
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 3 API - QgsVertexMarker and QgsRubberBand Inconsistency

2017-10-30 Thread Theuns Heydenrych
Just a quick question.
Is QgsGeometry::asPolyline() and  QgsGeometry::asPoint() also going to
change to return QgsPoint?

Regards
Theuns Heydenrych

On Thu, 26 Oct 2017 at 00:06 Nyall Dawson <nyall.daw...@gmail.com> wrote:

> On 26 October 2017 at 05:30, C Hamilton <adenacult...@gmail.com> wrote:
> > I just found that an API changed made a break with Lat Lon Tools which
> is
> > OK because I understand it is in flux.
> >
> > A while back a change was made to use QgsPointXY with QgsVertexMarker and
> > QgsRubberBand through QgsGeometry.fromPolyline(). In looking at the
> > documentation there is now a fromPolylineXY(), but from the API breaks
> > documentation it seems like the use of fromPolyline is preferred.
> >
>
> This is a perfectly valid use of fromPolylineXY - since the created
> geometry is only for display and presence of Z/M will have no effect.
>
> I think most of the purely-gui classes are now working with QgsPointXY
> (unless they've explicitly added overrides for QgsPoint objects). If
> you find a GUI/canvas class which *only* works with QgsPoint I'd say
> that's a bug and should be fixed in the API.
>
> Basically the rationale here is that we needed a really lightweight 2d
> point class (since QgsPoint is a QgsAbstractGeometry and comes with
> the associated overhead + complex api). Ideally we'd just use QPointF,
> but unfortunately QPointF uses qreal which is float on some platforms
> (and we need to be guaranteed a double for some use cases).
>
> Nyall
> ___
> 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 master build on Ubuntu 16.04 with python support

2017-10-09 Thread Theuns Heydenrych
HI Jorge, thank you for the reply.
My out for dpkg -l | grep pyqt5 | awk '{print $2}'  is:

pyqt5-dev
pyqt5-dev-tools
pyqt5.qsci-dev
python-pyqt5
python-pyqt5.qsci
python3-pyqt5
python3-pyqt5.qsci
python3-pyqt5.qtsql
python3-pyqt5.qtsvg

My WITH_QTWEBKIT is set to false.

Regards
Theuns Heydenrych


On Mon, 9 Oct 2017 at 15:33 Jorge Gustavo Rocha <j...@di.uminho.pt> wrote:

> Hi Theuns,
>
> Can you check which python/QT5 modules you have installed?
>
> In my Ubuntu 16.04:
>
> jgr@dusseldorf:~$ dpkg -l | grep pyqt5 | awk '{print $2}'
> pyqt5-dev
> pyqt5-dev-tools
> pyqt5.qsci-dev
> python-pyqt5
> python-pyqt5.qtsvg
> python-pyqt5.qtwebkit
> python3-pyqt5
> python3-pyqt5.qsci
> python3-pyqt5.qtsql
> python3-pyqt5.qtsvg
>
> Regards,
>
> Jorge
>
> On 09-10-2017 14:12, Theuns Heydenrych wrote:
> > Hi
> > I am building QGIS master on Ubuntu 16.04 with python support and the
> > build fails at 99%
> >
> > This is the error message I get.
> >
> > /[ 99%] Generating ui_DlgVersioning.py/
> > /cd
> >
> /home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/python/plugins/db_manager/db_plugins/postgis/plugins/versioning
> > && /home/dev/code/QGIS/scripts/pyuic-wrapper.sh /usr/bin/pyuic5
> >
> /home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/lib
> >
> /home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python
> > /usr/bin/python3
> >
> /home/dev/code/QGIS/python/plugins/db_manager/db_plugins/postgis/plugins/versioning/DlgVersioning.ui
> > -o
> >
> /home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py/
> > /Traceback (most recent call last):/
> > /  File "/home/dev/code/QGIS/scripts/pyuic-wrapper.py", line 26, in
> > /
> > /import qgis.PyQt.uic.pyuic/
> > /  File
> >
> "/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python/qgis/__init__.py",
> > line 72, in /
> > /from qgis.core import QgsFeature, QgsGeometry/
> > /  File
> >
> "/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python/qgis/core/__init__.py",
> > line 34, in /
> > /from qgis._core import */
> > /ImportError: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: undefined
> > symbol: _Z10qAllocMoreii/
> >
> /python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/build.make:62:
> > recipe for target
> >
> 'python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py'
> > failed/
> > /make[2]: ***
> >
> [python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py]
> > Error 1/
> > /make[2]: Leaving directory
> > '/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python'/
> > /CMakeFiles/Makefile2:3920: recipe for target
> >
> 'python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/all'
> > failed/
> > /make[1]: ***
> >
> [python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/all]
> > Error 2/
> > /make[1]: Leaving directory
> > '/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python'/
> > /Makefile:149: recipe for target 'all' failed/
> > /make: *** [all] Error 2/
> >
> > Seems like ImportError: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5:
> > undefined symbol: _Z10qAllocMoreii is the issue.
> > I have checked with:
> > /nm -D /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 | grep _Z10qAllocMoreii/
> > and the out put is:
> > / U _Z10qAllocMoreii/
> > Which show it is undefined. If I
> > check  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 I can see that the
> > function id defined.
> > /nm -D /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 | grep
> > _Z10qAllocMoreii/ and the output is:
> > /000a8c80 T _Z10qAllocMoreii/
> > /
> > /
> > So I dont know exactly how to fix this, it seems like the
> > /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 should be visible to the
> > complier or python at this build step?
> > Any thoughts how to handle this?
> >
> > Regards
> > Theuns Heydenrych
> >
> >
> >
> >
> > ___
> > 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/q

[QGIS-Developer] QGIS master build on Ubuntu 16.04 with python support

2017-10-09 Thread Theuns Heydenrych
Hi
I am building QGIS master on Ubuntu 16.04 with python support and the build
fails at 99%

This is the error message I get.

*[ 99%] Generating ui_DlgVersioning.py*
*cd
/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/python/plugins/db_manager/db_plugins/postgis/plugins/versioning
&& /home/dev/code/QGIS/scripts/pyuic-wrapper.sh /usr/bin/pyuic5
/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/lib
/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python
/usr/bin/python3
/home/dev/code/QGIS/python/plugins/db_manager/db_plugins/postgis/plugins/versioning/DlgVersioning.ui
-o
/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py*
*Traceback (most recent call last):*
*  File "/home/dev/code/QGIS/scripts/pyuic-wrapper.py", line 26, in
*
*import qgis.PyQt.uic.pyuic*
*  File
"/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python/qgis/__init__.py",
line 72, in *
*from qgis.core import QgsFeature, QgsGeometry*
*  File
"/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python/output/python/qgis/core/__init__.py",
line 34, in *
*from qgis._core import **
*ImportError: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: undefined symbol:
_Z10qAllocMoreii*
*python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/build.make:62:
recipe for target
'python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py'
failed*
*make[2]: ***
[python/plugins/db_manager/db_plugins/postgis/plugins/versioning/ui_DlgVersioning.py]
Error 1*
*make[2]: Leaving directory
'/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python'*
*CMakeFiles/Makefile2:3920: recipe for target
'python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/all'
failed*
*make[1]: ***
[python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeFiles/zzz-db_manager-5-depend.dir/all]
Error 2*
*make[1]: Leaving directory
'/home/dev/code/build-QGIS-Desktop_Qt_5_5_1_GCC_64bit-Debug-Python'*
*Makefile:149: recipe for target 'all' failed*
*make: *** [all] Error 2*

Seems like ImportError: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: undefined
symbol: _Z10qAllocMoreii is the issue.
I have checked with:
*nm -D /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 | grep _Z10qAllocMoreii*
and the out put is:
* U _Z10qAllocMoreii*
Which show it is undefined. If I
check  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 I can see that the
function id defined.
*nm -D /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 | grep _Z10qAllocMoreii*
and the output is:
*000a8c80 T _Z10qAllocMoreii*

So I dont know exactly how to fix this, it seems like the
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 should be visible to the complier
or python at this build step?
Any thoughts how to handle this?

Regards
Theuns Heydenrych
___
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] Hover events on QgsMapCanvasItem

2016-09-15 Thread Theuns Heydenrych
HI
Will I get hover events in a object that is inherited from QgsMapCanvasItem?
I created a class derived from QgsMapCanvasItem and implemented the three
methods hover events.

When instantiating the class I pass it a mapcanvas, and set the
acceptHoverEvents to true.
I also implemented the boundingrect method that returns the bounding rect,
and before I change the bounding rect, I am calling prepareGeometryChange
before updating the bounding rectangle.
I have also checked the hasMouseTracking setting on the mapcanvas and it is
set to true.
But when moving the mouse pointer over the object, no hover events is
coming in?
Should I get hover events, or is it "blocked" in the mapcanvas?

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGis debug build

2015-07-01 Thread Theuns Heydenrych
Thanks you, Richard

On Wed, 1 Jul 2015 at 13:13 Richard Duivenvoorde rdmaili...@duif.net
wrote:

 On 01-07-15 11:10, Luigi Pirelli wrote:
  control part of the out messages with
 
  http://qgis.org/api/classQgsLogger.html#details

 Yep: if you open QGIS on commandline in Linux, adding

 export QGIS_DEBUG=0
 and then
 qgis

 and you will have just a few lines of output

 Regards,

 Richard

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGis debug build

2015-07-01 Thread Theuns Heydenrych
Thank you,  Luigi

On Wed, 1 Jul 2015 at 11:10 Luigi Pirelli lui...@gmail.com wrote:

 control part of the out messages with

 http://qgis.org/api/classQgsLogger.html#details

 regards
 Luigi Pirelli


 **
 * LinkedIn: https://www.linkedin.com/in/luigipirelli
 * Elance: https://www.elance.com/s/edit/luigipirelli/
 * GitHub: https://github.com/luipir
 * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
 * Mastering QGIS:
 https://www.packtpub.com/application-development/mastering-qgis

 **


 On 1 July 2015 at 08:42, Theuns Heydenrych theunsheydenr...@gmail.com
 wrote:
  HI
  Is there a way to build a debug build of Qgis without all the debug
  messages?
 
  Regards
  Theuns Heydenrych
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QGis debug build

2015-07-01 Thread Theuns Heydenrych
HI
Is there a way to build a debug build of Qgis without all the debug
messages?

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] qgsrasterblock setcolor index out of range error message

2015-06-18 Thread Theuns Heydenrych
Hi List

The problem in the end was that I hit the 2Gig virtual memory address space
for a 32bit application. The application was build with debug libraries of
Qt and QGis, when fully loaded, the virtual memory was on 1.8Gig, and when
using the application, some of the GIS layers came on when zooming in, it
just crashed in the tiff layer. A weeks earlier, i saw that some of the
layers when zooming in just did not load, and that jobs was just removed
from the joblist when rendering. Jobs was removed due to the fact that a
QImage could not be allocated, for the layer, thus removed from the
joblist.
It was very misleading because according to the task manager, there was
still loads of memory for the task to create these QImages.

The solution for this was to make the application LARGEADDRESSAWARE , to do
this I have to build the application with the *-Wl,--large-address-aware*
linker option. (this is for MinGW, dont know what you have to use for MSVC
builds)
I also have to run bcdedit /set IncreaseUserVA 3072 (without the quotes)
in a cmd prompt with administrator privileges, to get access to 3Gig of
virtual address space for my process, and allows me to run
the application in debug mode, without any crashes.

Here is link to the memory limits of windows
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx


When building  my application and libraries and QGis with release versions
of the libraries, it performs well and there is no crashes.
The virtual memory for the process then comes in at 700 - 800mb

Regards
Theuns Heydenrych


On Mon, 15 Jun 2015 at 19:12 Theuns Heydenrych theunsheydenr...@gmail.com
wrote:

 HI
 I have written a Qt application using the QGis libraries.
 I have setup a QGis project in Qgis(downloaded version 2.6) itself, and
 loads the project from my application.
 In the project is a tiff raster image of 1.2Gig that have external
 pyramids created with QGis.

 While using the QGis project in my application by zooming in and out, I
 get the following error in the qgsrasterblock code. Its keep scrolling the
 following.
 *src\core\raster\qgsrasterblock.cpp: 381: (setColor) index  out of range*


 I have captured the output from where it starts with the error and pasted
 it on pastebin. http://pastebin.com/MUBd1Uq2

 What I have noticed is that on line no.8 the item is twice the size of
 the img is the correct, could this happen?
 *8: src\gui\qgsmapcanvasmap.cpp: 52: (paint) map paint DIFFERENT: sIZE:
 img 1553,972  item 3106,1944*

 After this on line no.47 the paint device returned no engine error.
 *47: QPainter::begin: Paint device returned engine == 0, type: 3*

 A bit further on, on line no.66 the img is 0,0 in width and height, and
 the item is the correct size (*1553,972*)
 *66: src\gui\qgsmapcanvasmap.cpp: 52: (paint) map paint DIFFERENT: sIZE:
 img 0,0  item 1553,972*

 After that on line no.122 it start to get index out of bounds errors, and
 the looks like the application is hanging.

 *122: src\core\raster\qgsrasterblock.cpp: 381: (setColor) index 0 out of
 range*

 Has anyone seen behaviour like this, so that I can have and idea where to
 look?

 Thank  you, in advance.
 Theuns Heydenrych







___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] qgsrasterblock setcolor index out of range error message

2015-06-15 Thread Theuns Heydenrych
HI
I have written a Qt application using the QGis libraries.
I have setup a QGis project in Qgis(downloaded version 2.6) itself, and
loads the project from my application.
In the project is a tiff raster image of 1.2Gig that have external pyramids
created with QGis.

While using the QGis project in my application by zooming in and out, I get
the following error in the qgsrasterblock code. Its keep scrolling the
following.
*src\core\raster\qgsrasterblock.cpp: 381: (setColor) index  out of range*

I have captured the output from where it starts with the error and pasted
it on pastebin. http://pastebin.com/MUBd1Uq2

What I have noticed is that on line no.8 the item is twice the size of
the img is the correct, could this happen?
*8: src\gui\qgsmapcanvasmap.cpp: 52: (paint) map paint DIFFERENT: sIZE:
img 1553,972  item 3106,1944*

After this on line no.47 the paint device returned no engine error.
*47: QPainter::begin: Paint device returned engine == 0, type: 3*

A bit further on, on line no.66 the img is 0,0 in width and height, and
the item is the correct size (*1553,972*)
*66: src\gui\qgsmapcanvasmap.cpp: 52: (paint) map paint DIFFERENT: sIZE:
img 0,0  item 1553,972*

After that on line no.122 it start to get index out of bounds errors, and
the looks like the application is hanging.

*122: src\core\raster\qgsrasterblock.cpp: 381: (setColor) index 0 out of
range*

Has anyone seen behaviour like this, so that I can have and idea where to
look?

Thank  you, in advance.
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Rendering layers on QgsMapCanvas render complete signal.

2015-06-14 Thread Theuns Heydenrych
Hi

I have written a Qt application using the QGis libraries.

I would like to render my 5 layers on top of the base map by using the
renderComplete signal from the mapcanvas.

The data in the 5 vector layers is dynamic, and I would like the the base
map not to rerender on a refresh, and then render the 5 dynamic layers on
the renderComplete signal, using QGis libraries if possible.

How can I use Qgis renders (sequential or parallel) to do this from my
application?
Any ideas?

Regards
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QGis 2.8.2 download build for windows

2015-06-04 Thread Theuns Heydenrych
Hi
With what version of MS Visual Studio is QGis 2.8.2 build , that is
available for download?

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Building QGis 2.8.2 with Qt5

2015-05-22 Thread Theuns Heydenrych
OK, thanks Jurgen

On Fri, 22 May 2015 at 09:27 Jürgen E. j...@norbit.de wrote:

 Hi Theuns,

 On Fri, 22. May 2015 at 09:10:44 +0200, Theuns Heydenrych wrote:
  I am trying to build QGis 2.8.2 with Qt5, and I see it uses , or ask for
  PyQt4 when using cmake,  is this correct, Qt5 with PyQt4?

 The python bindings don't work with Qt5 yet.


 Jürgen


 --
 Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
 Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
 Software Engineer   D-26506 Norden
 http://www.norbit.de
 QGIS release manager (PSC)  GermanyIRC: jef on FreeNode
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Building QGis 2.8.2 with Qt5

2015-05-22 Thread Theuns Heydenrych
HI
I am trying to build QGis 2.8.2 with Qt5, and I see it uses , or ask for
PyQt4 when using cmake,  is this correct, Qt5 with PyQt4?

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Building QGis 2.8.2 with Qt5

2015-05-22 Thread Theuns Heydenrych
Hi, before i go further is it possible to build QGis 2.8.2 with Qt5,
without python bindings of course?
I am using Qt5.4.1

Regards

On Fri, 22 May 2015 at 09:42 Theuns Heydenrych theunsheydenr...@gmail.com
wrote:

 OK, thanks Jurgen

 On Fri, 22 May 2015 at 09:27 Jürgen E. j...@norbit.de wrote:

 Hi Theuns,

 On Fri, 22. May 2015 at 09:10:44 +0200, Theuns Heydenrych wrote:
  I am trying to build QGis 2.8.2 with Qt5, and I see it uses , or ask for
  PyQt4 when using cmake,  is this correct, Qt5 with PyQt4?

 The python bindings don't work with Qt5 yet.


 Jürgen


 --
 Jürgen E. Fischer   norBIT GmbH Tel.
 +49-4931-918175-31
 Dipl.-Inf. (FH) Rheinstraße 13  Fax.
 +49-4931-918175-50
 Software Engineer   D-26506 Norden
 http://www.norbit.de
 QGIS release manager (PSC)  GermanyIRC: jef on
 FreeNode
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] (no subject)

2014-11-25 Thread Theuns Heydenrych
Hi
In QGIS versions before 2.6 , I could right click and show a custom popup
menu from the QgsMapCanvas, but not anymore. Its like something is
consuming the right click event on the QgsMapCanvas.
Do anyone know anything about this?
How can I get a right click event from the QgsMapCanvas again?

I have connected a slot to the customContextMenuRequested signal of the
QWidget where on my QgsMapCanvas instance is displaying. In versions before
2.6 i could display my custom menu on a right click on the QgsMapCanvas,
but not anymore. :-(

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Right click event from QgsMapCanvas

2014-11-25 Thread Theuns Heydenrych
First I would like to apologise for sending a mail without a subject, had
some finger trouble there, sorry.

In QGIS versions before 2.6 , I could right click and show a custom popup
menu from the QgsMapCanvas, but not anymore. Its like something is
consuming the right click event on the QgsMapCanvas.
Do anyone know anything about this?
How can I get a right click event from the QgsMapCanvas again?

I have connected a slot to the customContextMenuRequested signal of the
QWidget where on my QgsMapCanvas instance is displaying. In versions before
2.6 i could display my custom menu on a right click on the QgsMapCanvas,
but not anymore. :-(

Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] (no subject)

2014-11-25 Thread Theuns Heydenrych
Problem solved.
I connected to the parent widget's customContextMenuRequested signal,
instead of the QgsMapCanvas's customContextMenuRequested signal.

On Tue, Nov 25, 2014 at 11:58 AM, Theuns Heydenrych 
theunsheydenr...@gmail.com wrote:

 Hi
 In QGIS versions before 2.6 , I could right click and show a custom popup
 menu from the QgsMapCanvas, but not anymore. Its like something is
 consuming the right click event on the QgsMapCanvas.
 Do anyone know anything about this?
 How can I get a right click event from the QgsMapCanvas again?

 I have connected a slot to the customContextMenuRequested signal of the
 QWidget where on my QgsMapCanvas instance is displaying. In versions before
 2.6 i could display my custom menu on a right click on the QgsMapCanvas,
 but not anymore. :-(

 Regards
 Theuns Heydenrych


 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Qgis and WMS Question

2013-03-12 Thread Theuns Heydenrych
When Qgis receive data from a wms service is the data cached?

Regards
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Compiling QuatumGis using Mingw on Win7

2013-03-04 Thread Theuns Heydenrych
HI
I am in the process of compiling Quantum GIS using mingw on win7.
I had a few hiccups, that i could overcome, but i am stuck with the
following error and dont know how to sort it out. I need some help please.

[ 46%] Building CXX object
src/app/CMakeFiles/qgis.dir/gps/qgsgpsinformationwidget.cpp.obj
In file included from
C:/dev/cpp/Quantum/src/app/../core/raster/qgsrasterlayer.h:47:0,
 from C:/dev/cpp/Quantum/src/app/qgisapp.h:92,
 from
C:\dev\cpp\Quantum\src\app\gps\qgsgpsinformationwidget.cpp:33:
C:/dev/cpp/Quantum/src/app/../core/raster/qgsrasterpipe.h:120:26: error:
expected unqualified-id before 'struct'
C:/dev/cpp/Quantum/src/app/../core/raster/qgsrasterpipe.h:120:24: error:
expected ';' at end of member declaration
C:/dev/cpp/Quantum/src/app/../core/raster/qgsrasterpipe.h:120:35: error:
expected identifier before '(' token
C:/dev/cpp/Quantum/src/app/../core/raster/qgsrasterpipe.h:120:42: error:
expected ')' before 'role'
src\app\CMakeFiles\qgis.dir\build.make:4699: recipe for target
'src/app/CMakeFiles/qgis.dir/gps/qgsgpsinformationwidget.cpp.obj' failed
mingw32-make[2]: ***
[src/app/CMakeFiles/qgis.dir/gps/qgsgpsinformationwidget.cpp.obj] Error 1
CMakeFiles\Makefile2:2268: recipe for target
'src/app/CMakeFiles/qgis.dir/all' failed
mingw32-make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
makefile:145: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Any help, suggestions will be appreciated.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Compiling QuatumGis using Mingw on Win7

2013-03-04 Thread Theuns Heydenrych
I am curious, why *#undef interface* ?




On Mon, Mar 4, 2013 at 3:33 PM, theunsgis theunsheydenr...@gmail.comwrote:

 In qgsrasterpipe.h line 32 - 34 the code look tlike this.
 /#ifdef _MSC_VER
 #undef interface
 #endif/

 I have commented the #ifdef and #endif out so that #undef interface is
 executed.

 Now it compiles further.




 --
 View this message in context:
 http://osgeo-org.1560.n6.nabble.com/Compiling-QuatumGis-using-Mingw-on-Win7-tp5038225p5038250.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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] QGis build with Mingw64

2013-02-24 Thread Theuns Heydenrych
To be honest there's no particular reason, but I will let you in on how
I/we decided on Mingw64

We are developing a cross platform application with GIS as one of the
application's modes.
We decide to use QGis libraries to provide the GIS functionality.
I played around with your(Tim Sutton) examples to use QGis widgets in a Qt
application, and with that created a Qt plugin that i tested in a sample
application to load the plugin, display the map canvas on a QFrame, to load
a geotiff , and to use the various maptools.

All this was done on a Ubuntu 12.04 64bit environment with Qt.

We would like to the same for Win7 64bit.
So I thought while i am going to use Qt 64bit on Win7 with Mingw64 i might
as well try to everything in Mingw64.

I hoped that the Qgis libs would already be available in 64bit for windows,
after reading mailing list postings of Nov 2012
http://osgeo-org.1560.n6.nabble.com/64bit-Windows-version-td5016852.html ,
but it looks like it did not materialise. According to the mailing
list thread it looks like there is interest for a 64bit version on Windows
for QGis.

So that's how i decided on Mingw64 and to be honest i have no experience in
the MS development tools, will it be possible then to build Qgis 64bit
 version with msvc 2008 and use the libraries in Qt64 bit?
I have no idea.

Suggestions will be appreciated, thank you.

Regards
Theuns Heydenrych



On Sun, Feb 24, 2013 at 11:29 AM, Tim Sutton li...@linfiniti.com wrote:

 Hi

 Any particular reason you are using mingw rather than msvc 2008 (which is
 well supported)?

 Regards

 Tim
 On 24 Feb 2013 9:33 AM, Theuns Heydenrych theunsheydenr...@gmail.com
 wrote:

 I am trying to build QGis with Mingw64 on windows.
 I have Qt64-4.8.4 on the machine and MSys and Mingw64.

 I have opened the CMakeLists.txt in QtCreator and set all
 the dependencies for Qgis in the opening wizard for QtCreator.
 When compiling i get the following error, can anybody give me some hints
 where to start looking, to get it compiled?

 Best Regards
 Theuns Heydenrych

 09:11:03: Running steps for project qgis1.9.0...
 09:11:03: Starting: C:\mingw\bin\mingw32-make.exe
 [  0%] Built target version
 [  0%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj
 src\core\CMakeFiles\qgis_core.dir\build.make:1234: recipe for target
 'src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj' failed
 CMakeFiles\Makefile2:1118: recipe for target
 'src/core/CMakeFiles/qgis_core.dir/all' failed
 makefile:145: recipe for target 'all' failed
 C:\dev\cpp\Quantum\src\core\qgis.cpp:48:27: error: external linkage
 required for symbol 'GEOPROJ4' because of 'dllexport' attribute
 C:\dev\cpp\Quantum\src\core\qgis.cpp:53:27: error: external linkage
 required for symbol 'GEOWKT' because of 'dllexport' attribute
 C:\dev\cpp\Quantum\src\core\qgis.cpp:66:27: error: external linkage
 required for symbol 'PROJECT_SCALES' because of 'dllexport' attribute
 C:\dev\cpp\Quantum\src\core\qgis.cpp:70:27: error: external linkage
 required for symbol 'GEO_EPSG_CRS_AUTHID' because of 'dllexport' attribute
 C:\dev\cpp\Quantum\src\core\qgis.cpp:72:27: error: external linkage
 required for symbol 'GEO_NONE' because of 'dllexport' attribute
 mingw32-make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj]
 Error 1
 mingw32-make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
 mingw32-make: *** [all] Error 2
 09:11:06: The process C:\mingw\bin\mingw32-make.exe exited with code 2.
 Error while building/deploying project qgis1.9.0 (kit: Desktop 64)
 When executing step 'Make'

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QGis build with Mingw64

2013-02-23 Thread Theuns Heydenrych
I am trying to build QGis with Mingw64 on windows.
I have Qt64-4.8.4 on the machine and MSys and Mingw64.

I have opened the CMakeLists.txt in QtCreator and set all
the dependencies for Qgis in the opening wizard for QtCreator.
When compiling i get the following error, can anybody give me some hints
where to start looking, to get it compiled?

Best Regards
Theuns Heydenrych

09:11:03: Running steps for project qgis1.9.0...
09:11:03: Starting: C:\mingw\bin\mingw32-make.exe
[  0%] Built target version
[  0%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj
src\core\CMakeFiles\qgis_core.dir\build.make:1234: recipe for target
'src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj' failed
CMakeFiles\Makefile2:1118: recipe for target
'src/core/CMakeFiles/qgis_core.dir/all' failed
makefile:145: recipe for target 'all' failed
C:\dev\cpp\Quantum\src\core\qgis.cpp:48:27: error: external linkage
required for symbol 'GEOPROJ4' because of 'dllexport' attribute
C:\dev\cpp\Quantum\src\core\qgis.cpp:53:27: error: external linkage
required for symbol 'GEOWKT' because of 'dllexport' attribute
C:\dev\cpp\Quantum\src\core\qgis.cpp:66:27: error: external linkage
required for symbol 'PROJECT_SCALES' because of 'dllexport' attribute
C:\dev\cpp\Quantum\src\core\qgis.cpp:70:27: error: external linkage
required for symbol 'GEO_EPSG_CRS_AUTHID' because of 'dllexport' attribute
C:\dev\cpp\Quantum\src\core\qgis.cpp:72:27: error: external linkage
required for symbol 'GEO_NONE' because of 'dllexport' attribute
mingw32-make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgis.cpp.obj] Error
1
mingw32-make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
mingw32-make: *** [all] Error 2
09:11:06: The process C:\mingw\bin\mingw32-make.exe exited with code 2.
Error while building/deploying project qgis1.9.0 (kit: Desktop 64)
When executing step 'Make'
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Build Quantum-GIS for Win64

2013-02-18 Thread Theuns Heydenrych
HI All
Any one can direct me to instructions to build Quantum-GIS for Win64?
I would prefer to use Mingw.

Best Regards
Theuns Heydenrych
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Developer mailing list search

2013-02-18 Thread Theuns Heydenrych
HI
Where can i search the QGIS developer mailing list?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer