[Qgis-developer] Fwd: [Qt5] Compilation problems on windows
-- Forwarded message -- From: Anatoliy Golubev <darth.nai...@gmail.com> Date: 2016-11-15 1:49 GMT+03:00 Subject: [Qt5] Compilation problems on windows To: qgis-developer <qgis-developer@lists.osgeo.org> Hi devs! I compiled QGIS 2.18 with Qt 5.3.2 and Visual Studio 2013. There are some problems: 0. VS 2013 dont support `noexcept` keyword and throws qgsfield.h(383): error C3646: 'noexcept' : unknown override specifier Setting USE_CXX_11 to FALSE manually lead to following error: 3> Generating ui_qgsrelationreferenceconfigdlgbase.h 4>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h(211): warning C4005: 'noexcept' : macro redefinition 4> command-line arguments : see previous definition of 'noexcept' 4>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h(212): warning C4005: 'nullptr' : macro redefinition 4> command-line arguments : see previous definition of 'nullptr' 4>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h(246): warning C4005: 'override' : macro redefinition 4> command-line arguments : see previous definition of 'override' 4>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xkeycheck.h(250): fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. I added this defines to CMakeLists.txt to disable C1189 error and redefine only noexcept: ELSEIF (MSVC AND MSVC_VERSION GREATER 1600) SET(USE_CXX_11 TRUE) + ADD_DEFINITIONS("-D_ALLOW_KEYWORD_MACROS=1") + ADD_DEFINITIONS("-Dnoexcept=") 1. Q_WS_* macroses changed to Q_OS_* in Qt5 Q_WS_WIN macro in 'src/core/geometry/qgsgeometry.cpp:48' breaks compilation on Windows. 2. Linking of all executables fails with: 2>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 2>D:\Projects\QGIS\build\output\Release\qgis_help.exe : fatal error LNK1120: 1 unresolved externals It is related to CMake Warning: CMake Warning (dev) in src/helpviewer/CMakeLists.txt: Policy CMP0020 is not set: Automatically link Qt executables to qtmain target on Windows. Run "cmake --help-policy CMP0020" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Added 'CMAKE_POLICY (SET CMP0020 NEW)' to following files: - src/app/CMakeLists.txt - src/browser/CMakeLists.txt - src/helpviewer/CmakeLists.txt Setting this to root CMakeLists.txt has no effect, dont know why. 3. Running debug build fails with assert in method 'void QgsMapLayerModel::addLayers( const QList& layers )' line 96 (layers list is empty). qgis output - http://pastebin.com/zaHv0hpz call stack - http://pastebin.com/PVV8bsLW Adding 'if ( layers.isEmpty() ) return;' fix this. 4. Multiple warnings: 6>qgis_core.lib(qgis_core.dll) : warning LNK4006: "public: __thiscall QVector::QVector(class QVector const &)" (??0?$QVector@VQVariantQAE@ABV0@@Z) already defined in qgsgraph.obj; second definition ignored 6>qgis_core.lib(qgis_core.dll) : warning LNK4006: "public: __thiscall QVector::~QVector(void)" (??1?$QVector@VQVariantQAE@XZ) already defined in qgsgraph.obj; second definition ignored 6>qgis_core.lib(qgis_core.dll) : warning LNK4006: "public: class QVector & __thiscall QVector::operator=(class QVector const &)" (??4?$QVector@VQVariantQAEAAV0@ABV0@@Z) already defined in qgsgraph.obj; second definition ignored 6>qgis_core.lib(qgis_core.dll) : warning LNK4006: "public: __thiscall QVector::QVector(void)" (??0?$QVector@VQVariantQAE@XZ) already defined in qgsgraph.obj; second definition ignored. Thats all ^_^ ___ 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
[Qgis-developer] Map canvas zoom resets visibility of QgsRubberBand
Hi devs! I found another issue with QgsRubberBand which appear after fixing #12392. See #12486 for details. Im trying to fix this issue and have a questions about expected behavior of QgsRubberBand. When we create QgsRubberBand: QgsRubberBand *rb = new QgsRubberBand(mCanvas, 0); constructor calls reset() and as a result visibility sets to false. When we add valid geometry (not empty) calling addGeometry(geom, layer) to empty rb - visibility should be set to true. When we add point to empty rb without updating ( rb-addPoint(point, false) ) visibility should not change and stay false. When we add point to empty rb with updating ( rb-addPoint(point, true) ) visibility should be set to true. Is this correct behavior or we must manually call setVisible( true ) to show rubberband on map? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Map canvas zoom resets visibility of QgsRubberBand
This changes can be made in next major version with another API changes and for now I think it is better to save compatibility with existing user stuff. 2015-04-02 12:20 GMT+03:00 Sandro Santilli s...@keybit.net: My personal preference (for ease and intuitiveness) would be: - On construction - visibility=true (follows QWidget policy?) - Adding geometries - no visibility change What I'm unable to evaluate is how much would changing behavior affect existing user code. --strk; ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Possible bug with QgsRubberBand refreshing
Hi list! QgsRubberBand items sometimes not refreshing properly when another map canvas item (QgsVertexMarker) intersects them. This happens with 2.8, in 2.6.1 works as expected. See: https://www.dropbox.com/s/4egl61juue9ewop/rubberband.png?dl=0 as illustration How to reproduce: 1. Open empty project (epsg:4326) 2. Execute this script in python console: from PyQt4.QtCore import * from PyQt4.QtGui import * from qgis.gui import * from qgis.core import * mCursor = QgsVertexMarker(iface.mapCanvas()) mCursor.setIconType(QgsVertexMarker.ICON_BOX) mCursor.setIconSize(20) mCursor.setZValue(5) points = [[QgsPoint(0, 0), QgsPoint(20, 30), QgsPoint(0, 60)]] rb = QgsRubberBand(iface.mapCanvas(), True) rb.setToGeometry(QgsGeometry.fromPolygon(points), None) rb.setColor(QColor(125, 125, 0)) rb.show() def changeCursorPos(p): mCursor.setCenter(p) iface.mapCanvas().xyCoordinates.connect(changeCursorPos) 3. Move mouse cursor over rubber band. You can erase rubber band from bottom to some upper point. Tested on win7 32bit Anyone confirms? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Possible bug with QgsRubberBand refreshing
Ok, opened a ticket: https://hub.qgis.org/issues/12392 2015-03-17 18:47 GMT+03:00 Matthias Kuhn matth...@opengis.ch: On 03/17/2015 03:50 PM, Anatoliy Golubev wrote: Hi list! QgsRubberBand items sometimes not refreshing properly when another map canvas item (QgsVertexMarker) intersects them. This happens with 2.8, in 2.6.1 works as expected. See: https://www.dropbox.com/s/4egl61juue9ewop/rubberband.png?dl=0 as illustration How to reproduce: 1. Open empty project (epsg:4326) 2. Execute this script in python console: from PyQt4.QtCore import * from PyQt4.QtGui import * from qgis.gui import * from qgis.core import * mCursor = QgsVertexMarker(iface.mapCanvas()) mCursor.setIconType(QgsVertexMarker.ICON_BOX) mCursor.setIconSize(20) mCursor.setZValue(5) points = [[QgsPoint(0, 0), QgsPoint(20, 30), QgsPoint(0, 60)]] rb = QgsRubberBand(iface.mapCanvas(), True) rb.setToGeometry(QgsGeometry.fromPolygon(points), None) rb.setColor(QColor(125, 125, 0)) rb.show() def changeCursorPos(p): mCursor.setCenter(p) iface.mapCanvas().xyCoordinates.connect(changeCursorPos) 3. Move mouse cursor over rubber band. You can erase rubber band from bottom to some upper point. Tested on win7 32bit Anyone confirms? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer Confirmed on Fedora Linux 64bit, current master. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] qgsmaplayerrenderer.h not in public API
Yeah, i`ve seen Juergen`s commit, its ok now. Thanks! 2015-01-19 12:48 GMT+03:00 Martin Dobias wonder...@gmail.com: Hi On Fri, Jan 16, 2015 at 3:36 PM, Anatoliy Golubev darth.nai...@gmail.com wrote: Hi devs! I cant find qgsmaplayerrenderer.h in include directory of qgis. Is there a reason not to install it? There is no reason really - it was just an omission when I was adding the file. Recently Jurgen has fixed that in master branch. Regards Martin ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] qgsmaplayerrenderer.h not in public API
Hi devs! I cant find qgsmaplayerrenderer.h in include directory of qgis. Is there a reason not to install it? Thanks! ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Compilation qgis2.7.0 with VS2010 and Qt 5.3.2
Hi list! I am successfully build QGIS-dev with Qt5 in windows. Here are some notes: 1. PR#1743 is necessary for windows build, without it compilation fails trying to include linux headers (netinet/in.h); 2. CMake 3.1 throws many warnings like this: CMake Warning (dev) in src/core/CMakeLists.txt: Policy CMP0020 is not set: Automatically link Qt executables to qtmain target on Windows. Run cmake --help-policy CMP0020 for policy details. Use the cmake_policy command to set the policy and suppress this warning. With these warnings compilation fails at linking executables with errors like this: 1MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 1D:\Projects\other\qgis\qt5\build-debug\output\Debug\qgis_help.exe : fatal error LNK1120: 1 unresolved externals There is post at SO about this warning (http://stackoverflow.com/questions/14115024/how-to-link-qtmain-in-cmake-with-qt5): As of CMake 2.8.11 and Qt 5.1, linking to Qt5::WinMain is automatic/implicit if you specify WIN32 in your add_executable call, or otherwise set the WIN32_EXECUTABLE target property. – steveire Note that the automatic adding of Qt5::WinMain target is subject to the POLICY CMP0020 cmake policy. Default is the old behavior (not to add it). – codeling Your comment is misleading. The default behavior is NEW if the minimum required cmake version is 2.8.11. – steveire Changing CMAKE_MINIMUM_REQUIRED to 2.8.11 solved problems with linking, maybe setting this policy is better way, dont know. 3. There are some other warnings: CMake Warning (dev) at CMakeLists.txt:389 (IF): CMake Warning (dev) at src/core/CMakeLists.txt:294 (IF): CMake Warning (dev) at src/analysis/CMakeLists.txt:80 (IF): Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted. Run cmake --help-policy CMP0054 for policy details. Use the cmake_policy command to set the policy and suppress this warning. Quoted variables like MSVC will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. But they dont break anything for now. I dont work with CMake before, cant create patches for these, maybe someone more experienced can take a look. 4. QSpatiaLite driver compilation fails, coz there was some refactoring of sql-drivers in qt5. I can try fix it when have more free time, i think its not hard. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Compilation qgis2.7.0 with VS2010 and Qt 5.3.2
Hi Matthias! Thanks for reply! I know that Qt5 support was merged recently and want to test it. Before PR#1743 there were errors with linux-specific includes, such as netinet/in.h. Im compile qwt, qwtpolar and qscintilla with Qt5. It may be CMake rules that generate improper configuration for Qt5 windows build, coz compilation with Qt4 with same environment works fine. 2014-12-23 18:22 GMT+03:00 Matthias Kuhn matthias.k...@gmx.ch: Hi Anatoliy, Does that mean that it worked fine before PR #1743? In general Qt5 support is still pretty new and did not receive much testing. I don't know how many people have run such a setup on Windows. It requires to also link dependencies like qwt, qwtpolar and qscintilla against Qt5. That said, it is very welcome if people test and improve Qt5 support. But if you want to stay out of the way of problems you are better off if you stick to the well-tested Qt4. Anyway, the problem you have here looks like a linker problem to the MSVCRT, so Windows specific and not Qt5 specific. As I seldom use Windows I can't offer more help than this hint, sorry. Regards, Matthias ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] Compilation qgis2.7.0 with VS2010 and Qt 5.3.2
Hi list! Im trying to compile qgis 2.7.0 with Qt 5.3.2. After applying PR #1743 all compiles fine (except qspatialite), but linking executables failed with errors like this: Link: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:D:\Projects\other\qgis\qt5\build-debug\output\Debug\qgis_help.exe /INCREMENTAL /NOLOGO /LIBPATH:D:/Projects/other/qgis/qt5/build-debug/src/core /LIBPATH:D:/Projects/other/qgis/qt5/build-debug/src/core/Debug /LIBPATH:D:/Projects/other/qgis/qt5/build-debug/src/gui /LIBPATH:D:/Projects/other/qgis/qt5/build-debug/src/gui/Debug kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ..\core\Debug\qgis_core.lib d:\OSGeo4w\root\lib\sqlite3_i.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Concurrentd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5PrintSupportd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Svgd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Xmld.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5WebKitWidgetsd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Widgetsd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5WebKitd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Guid.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Networkd.lib C:\Qt\Qt-online\5.3\msvc2010_opengl\lib\Qt5Cored.lib wsock32.lib C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\SetupAPI.Lib C:\Qt\QScintilla-2.8.4\build-vs2010-qt5.3.2-debug\lib\qscintilla2d.lib d:\OSGeo4w\root\lib\proj_i.lib d:\OSGeo4w\root\lib\geos_c.lib d:\OSGeo4w\root\lib\gdal_i.lib d:\OSGeo4w\root\lib\spatialindex_i.lib d:\OSGeo4w\root\lib\libexpat.lib d:\OSGeo4w\root\lib\sqlite3_i.lib d:\OSGeo4w\root\lib\spatialite_i.lib /MANIFEST /ManifestFile:qgis_help.dir\Debug\qgis_help.exe.intermediate.manifest /MANIFESTUAC:level='asInvoker' uiAccess='false' /DEBUG /PDB:D:/Projects/other/qgis/qt5/build-debug/output/Debug/qgis_help.pdb /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:D:/Projects/other/qgis/qt5/build-debug/src/helpviewer/Debug/qgis_help.lib /MACHINE:X86 qgis_help.dir\Debug\qgis_win32.res qgis_help.dir\Debug\qgis_help.exe.embed.manifest.res qgis_help.dir\Debug\main.obj qgis_help.dir\Debug\qgshelpviewer.obj qgis_help.dir\Debug\moc_qgshelpviewer.obj qgis_help.dir\Debug\qrc_images.obj /machine:X86 /debug 1MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup 1D:\Projects\other\qgis\qt5\build-debug\output\Debug\qgis_help.exe : fatal error LNK1120: 1 unresolved externals 1Done Building Project D:\Projects\other\qgis\qt5\build-debug\src\helpviewer\qgis_help.vcxproj (build target(s)) -- FAILED. After some googling i find suggestion to change /SUBSYSTEM to CONSOLE, but i dont think that this can help. Any thoughts? System: Win 7 x86, VS2010, CMake 3.1.0, Qwt 6.1.1, Qwtpolar 1.1.1, QScintilla 2.8.4, other libs from OSGeo4w ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QgsMapToolZoom and virtual deactivate()
Hi, list! QgsMapToolZoom::deactivate() deletes internal rubber band without call QgsMapTool::deactivate(). So, if you have button that associated with this tool, map canvas didnt uncheck it when another map tool set. I think it should be something like: virtual void QgsMapToolZoom::deactivate() { delete mRubberBand; mRubberBand = 0; QgsMapTool::deactivate(); } Correct me, if I`m wrong. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS 1.7.4 build fail on Win7
Hi devs! I can`t build QGIS 1.7.4 in Windows 7 Pro with MSVS 2010 Express and Qt 4.8. Errors appear in qgis_core project: Generating qgssearchstringparser.cpp D:/Libs/qgis/1.7.4/src/src/core/qgssearchstringparser.yy: ъюэЇышъЄ√: 15 ёфтшур/т√тюфр 1D:\Libs\qgis\1.7.4\src\src\core\symbology-ng\qgsgraduatedsymbolrendererv2.cpp(577): error C3861: 'time': identifier not found QGIS 1.7.3 with same settings builds fine. Log included. Build started 21.02.2012 10:22:23. 1Project D:\Libs\qgis\1.7.4\build-debug\src\core\qgis_core.vcxproj on node 2 (rebuild target(s)). 1_PrepareForClean: Deleting file qgis_core.dir\Debug\qgis_core.lastbuildstate. InitializeBuildStatus: Touching qgis_core.dir\Debug\qgis_core.unsuccessfulbuild. CustomBuild: Generating flex_qgssearchstringlexer.cpp Generating qgssearchstringparser.cpp D:/Libs/qgis/1.7.4/src/src/core/qgssearchstringparser.yy: ъюэЇышъЄ√: 15 ёфтшур/т√тюфр Generating moc_qgsapplication.cxx Generating moc_qgscontexthelp.cxx Generating moc_qgscoordinatetransform.cxx Generating moc_qgsdataprovider.cxx Generating moc_qgshttptransaction.cxx Generating moc_qgsmaplayer.cxx Generating moc_qgsmaplayerregistry.cxx Generating moc_qgsmaprenderer.cxx Generating moc_qgsmessageoutput.cxx Generating moc_qgscredentials.cxx Generating moc_qgspluginlayer.cxx Generating moc_qgsproject.cxx Generating moc_qgsrunprocess.cxx Generating moc_qgsvectorlayer.cxx Generating moc_qgsrasterdataprovider.cxx Generating moc_qgsnetworkaccessmanager.cxx Generating moc_qgsvectordataprovider.cxx Generating composer/moc_qgsaddremoveitemcommand.cxx Generating composer/moc_qgscomposerlegend.cxx Generating composer/moc_qgscomposermap.cxx Generating composer/moc_qgscomposerpicture.cxx Generating composer/moc_qgscomposerscalebar.cxx Generating composer/moc_qgscomposeritem.cxx Generating composer/moc_qgscomposeritemgroup.cxx Generating composer/moc_qgscomposershape.cxx Generating composer/moc_qgscomposerattributetable.cxx Generating composer/moc_qgscomposition.cxx Generating composer/moc_qgslegendmodel.cxx Generating symbology/moc_qgsmarkercatalogue.cxx Generating raster/moc_qgsrasterlayer.cxx Generating gps/moc_qgsgpsconnection.cxx Generating gps/moc_qgsgpsdetector.cxx Generating gps/moc_qgsnmeaconnection.cxx Generating gps/moc_qgsgpsdconnection.cxx Generating gps/qextserialport/moc_qextserialport.cxx Generating gps/qextserialport/moc_qextserialenumerator.cxx Building Custom Rule D:/Libs/qgis/1.7.4/src/src/core/CMakeLists.txt CMake does not need to re-run because D:\Libs\qgis\1.7.4\build-debug\src\core\CMakeFiles\generate.stamp is up-to-date. ClCompile: C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /ID:/Libs/qgis/1.7.4/src/src/core/spatialite/headers/spatialite /IC:/Qt/4.8.0/include /IC:/Qt/4.8.0/include/QtSvg /IC:/Qt/4.8.0/include/QtWebKit /IC:/Qt/4.8.0/include/QtGui /IC:/Qt/4.8.0/include/QtXml /IC:/Qt/4.8.0/include/QtSql /IC:/Qt/4.8.0/include/QtNetwork /IC:/Qt/4.8.0/include/QtCore /ID:/Libs/qgis/1.7.4/build-debug /ID:/Libs/gdal-sdk/release-1600/include /ID:/Libs/qgis/1.7.4/src/src/core /ID:/Libs/qgis/1.7.4/src/src/core/composer /ID:/Libs/qgis/1.7.4/src/src/core/pal /ID:/Libs/qgis/1.7.4/src/src/core/raster /ID:/Libs/qgis/1.7.4/src/src/core/renderer /ID:/Libs/qgis/1.7.4/src/src/core/symbology /ID:/Libs/qgis/1.7.4/src/src/core/spatialindex/include /ID:/Libs/qgis/1.7.4/src/src/core/symbology-ng /ID:/Libs/qgis/1.7.4/src/src/core/gps/qextserialport /Zi /nologo /W4 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D CORE_EXPORT=__declspec(dllimport) /D GUI_EXPORT=__declspec(dllimport) /D PYTHON_EXPORT=__declspec(dllimport) /D ANALYSIS_EXPORT=__declspec(dllimport) /D CORE_EXPORT=__declspec(dllexport) /D QT_DLL /D QT_SVG_LIB /D QT_WEBKIT_LIB /D QT_GUI_LIB /D QT_XML_LIB /D QT_SQL_LIB /D QT_NETWORK_LIB /D QT_CORE_LIB /D QT_NO_CAST_TO_ASCII /D _USE_MATH_DEFINES /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_WARNINGS /D _TTY_WIN_ /D DLL_EXPORT /D _LARGE_FILE=1 /D _FILE_OFFSET_BITS=64 /D _LARGEFILE_SOURCE=1 /D SQLITE_ENABLE_RTREE=1 /D _HAVE_WINDOWS_H_ /D QT_DEBUG /D CMAKE_INTDIR=\Debug\ /D qgis_core_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Foqgis_core.dir\Debug\\ /FdD:/Libs/qgis/1.7.4/build-debug/src/core/Debug/qgis_core.pdb /Gd /TP /wd4100 /wd4127 /wd4510 /wd4512 /wd4610 /wd4706 /analyze- /errorReport:prompt D:\Libs\qgis\1.7.4\src\src\core\gps\qextserialport\qextserialport.cpp D:\Libs\qgis\1.7.4\src\src\core\gps\qextserialport\qextserialenumerator.cpp
[Qgis-developer] Strange debug messages
I have these messages to console after maximizing QGIS/moving toolbars, but resizing QGIS window doesnt show them: ... ..\..\..\src\src\core\qgsmaprenderer.cpp(616) : (QgsMapRenderer::render) Rendering completed in (seconds): 2.236 QPainter::begin: Paint device returned engine == 0, type: 1 QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::setRenderHint: Painter must be active to set rendering hints QPainter::worldTransform: Painter not active QPainter::save: Painter not active QPainter::restore: Unbalanced save/restore QPainter::setWorldTransform: Painter not active QPainter::save: Painter not active QPainter::setOpacity: Painter not active QPainter::restore: Unbalanced save/restore QPainter::setWorldTransform: Painter not active QPainter::end: Painter not active, aborted Is this something bad? Tested on QGIS 1.7.0/1.7.1, Win 7 Pro, Qt 4.7.4 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 1.7.0, crash with new labeling system
QGIS crashes when i click Ok/Apply buttons in labels dialog 22.09.2011 12:19, Ramon Andiñach ?: Did QGIS crash while you were using the labels dialogue, when you closed it or a little while later? I have the same setup as you describe, except 64-bit and don't seem to be having problems with your test file. The filename looks weird. The projection is coming up as a custom CRS and is definitely weird. Labels fine. -ramon. ___ 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 1.7.0, crash with new labeling system
DebugView shows nothing, but i got call stack from VS debugger: QtGuid4.dll!QExplicitlySharedDataPointerQFontPrivate::operator-() Line 139 + 0xa bytesC++ QtGuid4.dll!QFontMetricsF::height() Line 1200 + 0xa bytesC++ qgis_core.dll!QgsPalLabeling::drawLabel(pal::LabelPosition * label=0x04f86958, QPainter * painter=0x00adbff8, const QFont f={...}, const QColor c={...}, const QgsMapToPixel * xform=0x04ac1af8, double bufferSize=1., const QColor bufferColor={...}, bool drawBuffer=true) Line 1250 + 0x31 bytesC++ qgis_core.dll!QgsPalLabeling::drawLabeling(QgsRenderContext context={...}) Line 1104C++ qgis_core.dll!QgsMapRenderer::render(QPainter * painter=0x00adbff8) Line 612 + 0x24 bytesC++ qgis_gui.dll!QgsMapCanvasMap::render() Line 83 + 0x19 bytesC++ qgis_gui.dll!QgsMapCanvas::refresh() Line 389C++ qgis.exe!QgisApp::labeling() Line 3356 + 0x11 bytesC++ qgis.exe!QgisApp::qt_metacall(QMetaObject::Call _c=InvokeMetaMethod, int _id=155, void * * _a=0x00adc568) Line 522 + 0x8 bytesC++ QtCored4.dll!QMetaObject::metacall(QObject * object=0x0366a310, QMetaObject::Call cl=InvokeMetaMethod, int idx=186, void * * argv=0x00adc568) Line 238C++ QtCored4.dll!QMetaObject::activate(QObject * sender=0x0367a988, const QMetaObject * m=0x65d35960, int local_signal_index=1, void * * argv=0x00adc568) Line 3278 + 0x27 bytesC++ QtGuid4.dll!QAction::triggered(bool _t1=false) Line 263 + 0x15 bytesC++ QtGuid4.dll!QAction::activate(QAction::ActionEvent event=Trigger) Line 1259C++ QtGuid4.dll!QAction::trigger() Line 218 + 0x11 bytesC++ QtGuid4.dll!QToolButton::nextCheckState() Line 1148C++ QtGuid4.dll!QAbstractButtonPrivate::click() Line 529C++ QtGuid4.dll!QAbstractButton::mouseReleaseEvent(QMouseEvent * e=0x00adcf30) Line 1122C++ QtGuid4.dll!QToolButton::mouseReleaseEvent(QMouseEvent * e=0x00adcf30) Line 722C++ QtGuid4.dll!QWidget::event(QEvent * event=0x00adcf30) Line 8296C++ QtGuid4.dll!QAbstractButton::event(QEvent * e=0x00adcf30) Line 1081C++ QtGuid4.dll!QToolButton::event(QEvent * event=0x00adcf30) Line 1164C++ QtGuid4.dll!QApplicationPrivate::notify_helper(QObject * receiver=0x0370eee0, QEvent * e=0x00adcf30) Line 4481 + 0x11 bytesC++ QtGuid4.dll!QApplication::notify(QObject * receiver=0x0370eee0, QEvent * e=0x00adcf30) Line 4042 + 0x2f bytesC++ qgis_core.dll!QgsApplication::notify(QObject * receiver=0x0370eee0, QEvent * event=0x00adcf30) Line 118 + 0x13 bytesC++ QtCored4.dll!QCoreApplication::notifyInternal(QObject * receiver=0x0370eee0, QEvent * event=0x00adcf30) Line 787 + 0x15 bytesC++ QtCored4.dll!QCoreApplication::sendSpontaneousEvent(QObject * receiver=0x0370eee0, QEvent * event=0x00adcf30) Line 218 + 0x38 bytesC++ QtGuid4.dll!QApplicationPrivate::sendMouseEvent(QWidget * receiver=0x0370eee0, QMouseEvent * event=0x00adcf30, QWidget * alienWidget=0x0370eee0, QWidget * nativeWidget=0x0366a310, QWidget * * buttonDown=0x65d3724c, QPointerQWidget lastMouseReceiver={...}, bool spontaneous=true) Line 3139 + 0xe bytesC++ QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG msg={...}) Line 3321 + 0x2a bytesC++ QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00890c96, unsigned int message=514, unsigned int wParam=0, long lParam=3212506) Line 1659 + 0xc bytesC++ user32.dll!7616c4e7() [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] 22.09.2011 14:03, Ramon Andiñach пишет: Then I'm afraid I'm out of my depth, and you'll have wait for one of the more experienced folk. A passing thought; I've had problems with the new symbology + print manager when it took exception to one polygon in my shape file (for no apparent reason). This showed up in DebugView, and Andreas spotted it for me. If you ran DebugView while playing with the new labels, it might tell you what was wrong a little more precisely. (or you could add bits of the log here, and that would help someone tell you what was wrong). -ramon. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] C++ plugins delete
Hi, devs! I`m write simple C++ plugin from plugin_template for test purposes. QGIS not delete plugin when unload it from plugin manager. Neither destructor, nor QGISEXTERN void unload( QgisPlugin * thePluginPointer ) was called. I`m checked copyright_label plugin and it is not deleted too. Is this a bug with plugins deleting? ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS 1.5 freezes at some extent
Hi devs! I`m compile QGIS 1.5.0 with VS2008 with these settings: WITH_GRASS:BOOL=0 WITH_QWT:BOOL=0 WITH_BINDINGS:BOOL=0 WITH_POSTGRESQL:BOOL=0 WITH_INTERNAL_SPATIALITE:BOOL=0 WITH_SPATIALITE:BOOL=0 Compile ended successfully, but in some projects ( http://gis-lab.info/data/osm/arkhan/arkhan.7z ) qgis freezes when zooming in. QGIS 1.5.0 from OSGeo4W package open this project fine and not freezing in any extent. What can be a reason of this behavior? QGIS 1.4 compiled with mingw and similar settings works fine. I`m trying GDAL 1.5 and 1.7 WinXP SP2, Qt 4.6.3 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer