WG: [Qgis-developer] Compilation QGIS under Linux for Windows
marco.hugentobler at karto.baug.ethz.ch
Tue Aug 4 13:22:06 EDT 2009
Von: Hugentobler Marco
Gesendet: Di 04.08.2009 19:17
An: Jack R
Betreff: AW: [Qgis-developer] Compilation QGIS under Linux for Windows
You need to compile your plugin with the same compiler QGIS is compiled with (e.g. you need to use msvc to compile plugins that run with the msvc build). This is because every C++ compiler has its own calling convention, so you cannot link binaries of different compilers. This is only possible with C code, where you have a much simpler and standardised calling convention compared to C++.
Von: qgis-developer-bounces at lists.osgeo.org im Auftrag von Jack R
Gesendet: Di 04.08.2009 18:36
An: qgis-developer at lists.osgeo.org
Betreff: [Qgis-developer] Compilation QGIS under Linux for Windows
My goal is to develop a C++ plugin, which will run under QGIS. I'm
developing under Linux and having trouble making compiled plugin binary
work under Windows. Here is what I did:
I compiled QGIS from svn under Linux for Windows using Cmake and MinGW.
Then I tried to put compiled plugins in plugins folder for MSVC build
QGIS from http://qgis.org/en/download/unstable-software.html.
But after I run OSGeo/QGIS it does not see this plugins.
I then run MinGW/QGIS with its plugins and QGIS was able to load my
plugin under Win without problems. But when I put plugins from MSVC
build QGIS to MinGW build QGIS it cannot see them again.
My question is, does anybody know how to tune MinGW to build compatible
binaries of plugins whith MSVC build QGIS?
I will appreciate any advice.
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
More information about the Qgis-developer