Re: [QGIS-Developer] Error compiling qgsapplication.h
Good evening Jurgen, Thank you very much for your effort. I manually applied the changes in the patch. I also changed the FindQGIS.cmake to this one: https://github.com/qgis/QGIS/blob/master/cmake/FindQGIS.cmake and even replaced content of qgsapplication.h with https://github.com/qgis/QGIS/blob/release-2_18/src/core/qgsapplication.h I still get the same error. But indeed as the compiler says, in none of the functions below does the parameter have a type. They seem to member variables or am I ignorant on a C++ shorthand: static QObject* ABISYM( mFileOpenEventReceiver ); static QStringList ABISYM( mFileOpenEventList ); static QString ABISYM( mUIThemeName ); static QString ABISYM( mPrefixPath ); static QString ABISYM( mPluginPath ); static QString ABISYM( mPkgDataPath ); static QString ABISYM( mLibraryPath ); static QString ABISYM( mLibexecPath ); static QString ABISYM( mThemeName ); static QStringList ABISYM( mDefaultSvgPaths ); static QMap<QString, QString> ABISYM( mSystemEnvVars ); static QString ABISYM( mConfigPath ); ??? Any further help or education will be much appreciated. Kind Regards Magdaleen Ballot On 10 April 2018 at 14:21, Jürgen E. Fischer <j...@norbit.de> wrote: > Hi Magdaleen, > > On Tue, 10. Apr 2018 at 12:19:50 +0200, Magdaleen Ballot wrote: > > I am maintaining a c++ Radio Planning Plugin for QGis, QRap ( > www.QRap.org.za). > > > > I am trying to compile in Ubuntu 18.04, using QGis 2.18 (the libqgis-dev > > version is 1:2.18.18+28bionic. The compiler I am using is GNU 7.3. The > > error messages are below. > > > > I had the same problem under Ubuntu 16.04 using Qgis 2.14 and c++ 5. > > > > The last version I could complie successfully was QGIS 2.8. > > Builds fine on debian unstable with 2.18.18 for me: > > apt-get install libfann-dev libpoco-dev libqwt5-qt4-dev libeigen3-dev > svn checkout http://svn.code.sf.net/p/qrap/code/ qrap > mkdir qrap/build/ > cd qrap/build/ > # apply attached minor patch > cmake -D CMAKE_MODULE_PATH=/usr/share/qgis cmake -D > POSTGRES_LIBRARY=/usr/lib/x86_64-linux-gnu/libpq.so -D > PQXX_LIBRARY=/usr/lib/x86_64-linux-gnu/libpqxx.so .. > make && sudo make install > > > 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 > -- This message and attachments are subject to a disclaimer. Please refer to http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf <http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf> for full details. ___ 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] Error compiling qgsapplication.h
Hi, I am maintaining a c++ Radio Planning Plugin for QGis, QRap (www.QRap.org.za ). I am trying to compile in Ubuntu 18.04, using QGis 2.18 (the libqgis-dev version is 1:2.18.18+28bionic. The compiler I am using is GNU 7.3. The error messages are below. I had the same problem under Ubuntu 16.04 using Qgis 2.14 and c++ 5. The last version I could complie successfully was QGIS 2.8. Can somebody please help. Kind Regards Magdaleen Ballot In file included from /usr/include/qgis/qgswkbptr.h:19:0, from /usr/include/qgis/qgsabstractgeometryv2.h:22, from /usr/include/qgis/qgsrendercontext.h:23, from /usr/include/qgis/qgsmaprenderer.h:27, from /usr/include/qgis/qgstolerance.h:19, from /usr/include/qgis/qgssnapper.h:22, from /usr/include/qgis/qgsproject.h:33, from /home/magdaleen/qrap/qrap.h:64, from /home/magdaleen/qrap/qrap.cpp:27: /usr/include/qgis/qgsapplication.h:389:21: error: expected ‘;’ at end of member declaration static QObject* ABISYM( mFileOpenEventReceiver ); ^~ /usr/include/qgis/qgsapplication.h:389:52: error: ISO C++ forbids declaration of ‘mFileOpenEventReceiver’ with no type [-fpermissive] static QObject* ABISYM( mFileOpenEventReceiver ); ^ /usr/include/qgis/qgsapplication.h:390:32: error: ‘mFileOpenEventList’ has not been declared static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:390:51: error: ‘static QStringList QgsApplication::ABISYM(int)’ conflicts with a previous declaration static QStringList ABISYM( mFileOpenEventList ); ^ /usr/include/qgis/qgsapplication.h:389:21: note: previous declaration ‘QObject* QgsApplication::ABISYM’ static QObject* ABISYM( mFileOpenEventReceiver ); ^~ /usr/include/qgis/qgsapplication.h:392:28: error: ‘mUIThemeName’ has not been declared static QString ABISYM( mUIThemeName ); ^~~~ /usr/include/qgis/qgsapplication.h:392:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded static QString ABISYM( mUIThemeName ); ^~ /usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’ static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:393:28: error: ‘mPrefixPath’ has not been declared static QString ABISYM( mPrefixPath ); ^~~ /usr/include/qgis/qgsapplication.h:393:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded static QString ABISYM( mPrefixPath ); ^~ /usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’ static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:394:28: error: ‘mPluginPath’ has not been declared static QString ABISYM( mPluginPath ); ^~~ /usr/include/qgis/qgsapplication.h:394:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded static QString ABISYM( mPluginPath ); ^~ /usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’ static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:395:28: error: ‘mPkgDataPath’ has not been declared static QString ABISYM( mPkgDataPath ); ^~~~ /usr/include/qgis/qgsapplication.h:395:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded static QString ABISYM( mPkgDataPath ); ^~ /usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’ static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:396:28: error: ‘mLibraryPath’ has not been declared static QString ABISYM( mLibraryPath ); ^~~~ /usr/include/qgis/qgsapplication.h:396:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded static QString ABISYM( mLibraryPath ); ^~ /usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’ static QStringList ABISYM( mFileOpenEventList ); ^~ /usr/include/qgis/qgsapplication.h:397:28: error: ‘mLibexecPath’ has not been declared static QString ABISYM( mLibexecPath ); ^~~~ /usr/include/qgis/qgsapplication.h:397:20: error: ‘static QString
[Qgis-developer] QRap plugin: Mouse Click not capture
Good day, I am the sole developer left on the development of the QRap plugin (www.QRap.org.za / https://sourceforge.net/projects/qrap/ ). As this is not even my main focus, I tent not to update so often as only sync with LTR versions. Until QGis 2.8 the mouse clicked worked fine, but when I updated to 2.14 it no longer worked. Attached is the MouseEvent code I use. I originally had it inherit from QqsMapTool and then from QgsMapToolEmitPoint ... both works on QGis 2.8, but neither on 2.14. I tried using QgsMapToolEmitPoint directly but it said QgsMapToolEmitPoint::canvasClicked(QgsPoint&,Qt::MouseButton) does not exist when I run it ... it does not both in 2.8 and 2.14. I can confirm that MapCanvas()->SetMapTool run sucessfully (I caught the mapToolSet signal ... ) Does any of you with years of experience perhaps have a pointer that would help me resolve it. Kind Regards Magdaleen Ballot PS: Why is QRap not in the QGis repository ... because it is huge, and I still want to get rid of Poco (which is used for XML parsing and replace it with a Qt component) cMouseEvents.cpp Description: Binary data /* *QRAP Project * *Version : 0.1 *Date: 2008/04/01 *License : GNU GPLv3 *File: cMouseEvents.h *Copyright : University of Pretoria *Author : Dirk van der Merwe *: email: magdaleen.bal...@up.ac.za *Description : This probably come from QGIS ... sorry maggie doesn't * know true origin * ** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * ***/ #ifndef MOUSEEVENTS_H_ #define MOUSEEVENTS_H_ #include #include #include #include #include #include #include #include class QgsMapLayer; class QgsMapCanvas; class QMouseEvent; class QgsPoint; class QgsMapTool; class MouseEvents : public QgsMapToolEmitPoint { Q_OBJECT public: MouseEvents(QgsMapCanvas* canvas); virtual ~MouseEvents(); public slots: virtual void canvasReleaseEvent(QMouseEvent * e); virtual void canvasMoveEvent(QMouseEvent * e); signals: void RightPoint(QgsPoint ); void LeftPoint(QgsPoint ); void MouseMove(QgsPoint ); private: //! pointer to map canvas QgsMapCanvas* mCanvas; //! cursor used in map tool QCursor mCursor; }; #endif /*MOUSEEVENTS_H_*/ ___ 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] Fwd: Q-Rap plugin
Hi, I am currently th only active developer on Q-Rap, a Radio Planning plugin for QGis (source code at http://sourceforge.net/projects/qrap/). I recently updated it to work with Qgis version 2 (the upgrade on the Ubuntu repositories catch me a bit surprised as the Web-site still only talks about version 1.80). None the less, my main problem is that I am having trouble to have Q-Rap stick: It loads successfully, however when I close Q-Gis down and open it up again the tool bar is not there.BRQ-Rap is still selected, but it would seem like the constructor and initGui is not run again when I open up QGis. so now I have to un select the Q-Rap plugin and selects it again ... and then it loads. I had another look at the plugin-template and some other plugin implementations in the source code, but I BRreally don't get it. Q-Rap creates its own new ToolBar on the QGis-interface. (I had this problem in 1.8 as well ... in version 1.7 it worked fine) Is this a bug in QGis or am I blind to what I am doing wrong? On another topic; On the Q-Rap mailing list I got the following message for Giovanni: http://www.qgis.org/api/INSTALL.html ( http://www.qgis.org/api/INSTALL.html ) ( http://www.qgis.org/api/INSTALL.html ) I doubt anyway that you will be able to make qrap works with the latest QGIS source code as it does not seem to have been updated recently. QGIS C++ plugins should be added upstream and maintained updated there, otherwise they are going the become quickly obsolete and of course stop to work cheers -- Giovanni -- I also got a similar suggestion from Paolo Cavallini of the LinkedIn QuantumGIS group that I should be doing the same. The fact of the matter is that I would really like to do just that. How does one go about it? Is there any-one that can help me with this? As I am currently the only active developer and should actually be spending my time on research and teaching. (I have not yet try to compile it under windows.) Kind Regards Magdaleen Ballot. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Fwd: Q-Rap plugin
Thank you. Q-Rap seems to work now with QGis version 2 And the web-site is updated ;-) Tim Sutton li...@linfiniti.com 2013/09/20 12:41 PM Hi On Fri, Sep 20, 2013 at 11:28 AM, Magdaleen Ballot magdaleen.bal...@up.ac.za wrote: Hi, I am currently th only active developer on Q-Rap, a Radio Planning plugin for QGis (source code at http://sourceforge.net/projects/qrap/). I recently updated it to work with Qgis version 2 (the upgrade on the Ubuntu repositories catch me a bit surprised as the Web-site still only talks about version 1.80). We are announcing the release of 2.0 shortly - first we have been pushing packages out to the repositories. None the less, my main problem is that I am having trouble to have Q-Rap stick: It loads successfully, however when I close Q-Gis down and open it up again the tool bar is not there.BRQ-Rap is still selected, but it would seem like the constructor and initGui is not run again when I open up QGis. so now I have to un select the Q-Rap plugin and selects it again ... and then it loads. I had another look at the plugin-template and some other plugin implementations in the source code, but I BRreally don't get it. Q-Rap creates its own new ToolBar on the QGis-interface. (I had this problem in 1.8 as well ... in version 1.7 it worked fine) Is this a bug in QGis or am I blind to what I am doing wrong? Someone would need to build it and check it in order to be able to tell you that. On another topic; On the Q-Rap mailing list I got the following message for Giovanni: http://www.qgis.org/api/INSTALL.html ( http://www.qgis.org/api/INSTALL.html%3E%3E ) I doubt anyway that you will be able to make qrap works with the latest QGIS source code as it does not seem to have been updated recently. QGIS C++ plugins should be added upstream and maintained updated there, otherwise they are going the become quickly obsolete and of course stop to work cheers -- Giovanni -- I also got a similar suggestion from Paolo Cavallini of the LinkedIn QuantumGIS group that I should be doing the same. The fact of the matter is that I would really like to do just that. How does one go about it? Is there any-one that can help me with this? As I am currently the only active developer and should actually be spending my time on research and teaching. (I have not yet try to compile it under windows.) Great that you plan to update your plugin to 2.0. I don't think the QRAP plugin is a good candidate for inclusion of the QGIS upstream project directly as its scope is limited to a very niche group of users. Also anything going into core should have a dedicated maintainer, so it should not be seen as a vehicle to offload the maintainance to other developers. It would be better to make an appeal here on the list (and perhaps the users list) for other developers to join you on the project. In terms of hosting, we can certainly look at hosting QGIS in the github QGIS repository (or you could upload it to your own repo and make it public for others to fork). Regards Tim Kind Regards Magdaleen Ballot. ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Tim Sutton - QGIS Project Steering Committee Member == Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.net == ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer