Re: [Qgis-User] QGis (Windows) Customization Help
Hi 2007/2/26, Elavazhagan.M <[EMAIL PROTECTED]>: Hi Martin, please clarify the following scenarios: 1. For dynamic linking, I need to know the classes available in the DLL I'm linking. Am I correct? If so, where can find such documentations? All the header files are available in the QGIS sources in svn. In the next stable release (0.8.1) I am bundling them in with the installer too. QGIS is open source everything is there for you to look at when you want to! 2. If I should link to the DLLs dynamically, what's the need of building my own QGis (creating .lib files)? And, why can't I dynamically link to the existing DLLs available under the QGis installation folder? You cant link MSVC apps to the dlls shipped with QGIS since QGIS is built using mingw/gcc which uses different symbol decorations to MSVC. Regards Tim Thanks. Ela. > -Original Message- > From: Martin Dobias [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 5:01 PM > To: Elavazhagan.M > Cc: qgis-user@lists.qgis.org > Subject: Re: [Qgis-User] QGis (Windows) Customization Help > > On 2/26/07, Elavazhagan.M <[EMAIL PROTECTED]> > wrote: > > Thanks for your response Martin!!! > > > > > > Do I need to link those DLLs dynamically from my Plug-in code? > > > > > > Yes, you need to link your plugin to QGIS libraries. > > > > I hope you mean "Static Linking" and not the "Dynamic Linking". Am I > right > > Martin? > > Plugins link dynamically to QGIS libraries as those are DLLs, not > static libs. Is there any reason to link them statically? > > Martin > > -- > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 > 5:01 PM > -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 5:01 PM ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- -- Tim Sutton Visit http://qgis.org for a great Open Source GIS Home Page: http://linfiniti.com Skype: timlinux MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] Jabber: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
RE: [Qgis-User] QGis (Windows) Customization Help
Hi Martin, please clarify the following scenarios: 1. For dynamic linking, I need to know the classes available in the DLL I'm linking. Am I correct? If so, where can find such documentations? 2. If I should link to the DLLs dynamically, what's the need of building my own QGis (creating .lib files)? And, why can't I dynamically link to the existing DLLs available under the QGis installation folder? Thanks. Ela. > -Original Message- > From: Martin Dobias [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 5:01 PM > To: Elavazhagan.M > Cc: qgis-user@lists.qgis.org > Subject: Re: [Qgis-User] QGis (Windows) Customization Help > > On 2/26/07, Elavazhagan.M <[EMAIL PROTECTED]> > wrote: > > Thanks for your response Martin!!! > > > > > > Do I need to link those DLLs dynamically from my Plug-in code? > > > > > > Yes, you need to link your plugin to QGIS libraries. > > > > I hope you mean "Static Linking" and not the "Dynamic Linking". Am I > right > > Martin? > > Plugins link dynamically to QGIS libraries as those are DLLs, not > static libs. Is there any reason to link them statically? > > Martin > > -- > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 > 5:01 PM > -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 5:01 PM ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-User] QGis (Windows) Customization Help
On 2/26/07, Elavazhagan.M <[EMAIL PROTECTED]> wrote: Thanks for your response Martin!!! > > Do I need to link those DLLs dynamically from my Plug-in code? > > Yes, you need to link your plugin to QGIS libraries. I hope you mean "Static Linking" and not the "Dynamic Linking". Am I right Martin? Plugins link dynamically to QGIS libraries as those are DLLs, not static libs. Is there any reason to link them statically? Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
RE: [Qgis-User] QGis (Windows) Customization Help
Thanks for your response Martin!!! > > Do I need to link those DLLs dynamically from my Plug-in code? > > Yes, you need to link your plugin to QGIS libraries. I hope you mean "Static Linking" and not the "Dynamic Linking". Am I right Martin? Thanks. Ela. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 5:01 PM ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-User] QGis (Windows) Customization Help
On 2/26/07, Elavazhagan.M <[EMAIL PROTECTED]> wrote: Hi Craig, I went through the slides you suggested and the code for creating a QGis Plug-in as well. I guess the steps are more appropriate for a Linux environment. But, as far as Windows is concerned, I think I need to have the .lib files to link the modules in the DLL files (I mean the DLLs found in the QGis installation directory). I could find all the required DLLs in the installation directory, but I couldn't find the .lib files required for linking those DLLs from C++ (Windows Environment). I am using Microsoft Visual C++ 2005 as my development environment. Is there any other means to create a Plug-in for an existing (already installed) QGis application under Windows? In case you'd like to develop with Visual C++, you'll need to compile QGIS by yourself to obtain library files - we compile QGIS with MinGW and its library files are incompatible with those in VC++. Also you'll need to compile QGIS dependencies first to be able to link QGIS with them. To avoid this you can use MinGW compiler and MSYS environment we use which contains all dependencies, thus making compilation much easier. http://qgis.org/uploadfiles/msys/msys.tar.gz (269 MB) Or Do I need to link those DLLs dynamically from my Plug-in code? Yes, you need to link your plugin to QGIS libraries. Or finally, you can try out current development version that introduces plugins in Python language. This means no dark magic with (re-)compilation, less code and simpler debugging. Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
RE: [Qgis-User] QGis (Windows) Customization Help
Hi Craig, I went through the slides you suggested and the code for creating a QGis Plug-in as well. I guess the steps are more appropriate for a Linux environment. But, as far as Windows is concerned, I think I need to have the .lib files to link the modules in the DLL files (I mean the DLLs found in the QGis installation directory). I could find all the required DLLs in the installation directory, but I couldn't find the .lib files required for linking those DLLs from C++ (Windows Environment). I am using Microsoft Visual C++ 2005 as my development environment. Is there any other means to create a Plug-in for an existing (already installed) QGis application under Windows? Or Do I need to link those DLLs dynamically from my Plug-in code? Kindly help me out in this regard. Thanks. Ela. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Leat Sent: Saturday, February 17, 2007 12:46 PM To: qgis-user@lists.qgis.org Subject: RE: [Qgis-User] QGis (Windows) Customization Help Hi Elavazhagan If you definitely need to write a plugin then start with chapter 10 in the User Guide of the 0.8 Titan release. If you are using the Titan installer for Windows, available for download on the Qgis website then the User Guide (userguide.pdf) should be located in: c:\Program Files\Quantum GIS\share\qgis\doc\ You could also take a look at Marco Hugentobler's plugin presentation from last year's FOSS4G conference. The presentation slides are available here: http://www.foss4g2006.org/contributionDisplay.py?contribId=50&sessionId=66&c onfId=1 I don't know what kind of customization you have in mind, but before creating something of your own check that GRASS (http://grass.itc.it/) doesn't already offer the functionality you require. Good luck. Craig Leat Partners in Development (Pty) Ltd 51 Roberts Road Pietermaritzburg KwaZulu-Natal South Africa www.pid.co.za Tel: 033 342 3012 Fax: 033 342 0636 -Original Message- Message: 1 Date: Sat, 17 Feb 2007 02:21:35 +0530 From: "Elavazhagan.M" <[EMAIL PROTECTED]> Subject: [Qgis-user] QGis (Windows) Customization Help To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="windows-1250" Hi, I am a novice QGis user and I am working under Windows environment. I need to customize (or create external plug-in for) QGis so that I can add my own functionalities to it. I have experience in customizing ESRI ArcMap application using ArcObjects. But, QGis seems to be totally different from that. I would be happy if someone could help me out with a walkthrough for customizing QGis under Windows. Your help in this regard is highly appreciated. Thank you. Regards, Elavazhagan ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 2/15/2007 5:40 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 2/19/2007 5:01 PM ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
RE: [Qgis-User] QGis (Windows) Customization Help
Hi Elavazhagan If you definitely need to write a plugin then start with chapter 10 in the User Guide of the 0.8 Titan release. If you are using the Titan installer for Windows, available for download on the Qgis website then the User Guide (userguide.pdf) should be located in: c:\Program Files\Quantum GIS\share\qgis\doc\ You could also take a look at Marco Hugentobler's plugin presentation from last year's FOSS4G conference. The presentation slides are available here: http://www.foss4g2006.org/contributionDisplay.py?contribId=50&sessionId=66&c onfId=1 I don't know what kind of customization you have in mind, but before creating something of your own check that GRASS (http://grass.itc.it/) doesn't already offer the functionality you require. Good luck. Craig Leat Partners in Development (Pty) Ltd 51 Roberts Road Pietermaritzburg KwaZulu-Natal South Africa www.pid.co.za Tel: 033 342 3012 Fax: 033 342 0636 -Original Message- Message: 1 Date: Sat, 17 Feb 2007 02:21:35 +0530 From: "Elavazhagan.M" <[EMAIL PROTECTED]> Subject: [Qgis-user] QGis (Windows) Customization Help To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="windows-1250" Hi, I am a novice QGis user and I am working under Windows environment. I need to customize (or create external plug-in for) QGis so that I can add my own functionalities to it. I have experience in customizing ESRI ArcMap application using ArcObjects. But, QGis seems to be totally different from that. I would be happy if someone could help me out with a walkthrough for customizing QGis under Windows. Your help in this regard is highly appreciated. Thank you. Regards, Elavazhagan ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] QGis (Windows) Customization Help
Hi Take a look at our blog http://blog.qgis.org where you can find various tutorials including one on writing your first plugin by Marco Hugentobler. There is a perl script under src/plugins/plugin_build.pl that will create the framework for a new plugin but at this point in time it works only on mac and linux platforms. Otherwise you can just clone an exising simple plugin or use the plugin_template as a starting point. Regards Tim 2007/2/16, Elavazhagan.M <[EMAIL PROTECTED]>: Hi, I am a novice QGis user and I am working under Windows environment. I need to customize (or create external plug-in for) QGis so that I can add my own functionalities to it. I have experience in customizing ESRI ArcMap application using ArcObjects. But, QGis seems to be totally different from that. I would be happy if someone could help me out with a walkthrough for customizing QGis under Windows. Your help in this regard is highly appreciated. Thank you. Regards, Elavazhagan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.36/681 - Release Date: 2/11/2007 6:50 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 2/15/2007 5:40 PM ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- -- Tim Sutton Visit http://qgis.org for a great Open Source GIS Home Page: http://linfiniti.com Skype: timlinux MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] Jabber: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user