[Qgis-developer] Project Responisibilities and 0.9 Release

Martin Dobias wonder.sk at gmail.com
Fri Aug 17 09:24:27 EDT 2007


On 8/16/07, lists at dwillis.gotadsl.co.uk <lists at dwillis.gotadsl.co.uk> wrote:
> > MinGW and MSVC compilers. Have you been successful with MinGW
> > compilation?
>
> I've not tried. Could you let me know what the compilation problems were? I'm
> guessing that I've missed out a #ifdef _MSC_VER somewhere. I should probably
> check it on Linux too. I'm currently in the middle of getting Linux up and
> running on my laptop so that should be a good workout for it...

This is the error I get:

In file included from c:\Martin\dev\qgis\src\core\qgsapplication.cpp:17:
c:\Martin\dev\qgis\src\core\qgsapplication.h:101: error: use of enum
`ENDIAN' without previous declaration
c:\Martin\dev\qgis\src\core\qgsapplication.h:101: error: expected
unqualified-id before '{' token
c:\Martin\dev\qgis\src\core\qgsapplication.h:105: error: ISO C++
forbids declaration of `endian_t' with no type
c:\Martin\dev\qgis\src\core\qgsapplication.h:108: error: `endian_t'
does not name a type
c:\Martin\dev\qgis\src\core\qgsapplication.cpp:208: error: expected
constructor, destructor, or type conversion before "QgsApplication"

Then when I tried to remove CORE_EXPORT from defiintion of enum
ENDIAN, qgsapplication.cpp compiled successfully. But then when
compiling gui library I get another error qgsprojectionselector.cpp

In file included from c:\Martin\dev\qgis\src\gui\qgsprojectionselector.cpp:20:
c:/Martin/dev/qgis/src/gui/../core/qgsapplication.h:73: error:
function `static const QString& QgsApplication::prefixPath()'
definition is marked dllimport.
c:/Martin/dev/qgis/src/gui/../core/qgsapplication.h:76: error:
function `static const QString& QgsApplication::pluginPath()'
definition is marked dllimport.
c:/Martin/dev/qgis/src/gui/../core/qgsapplication.h:79: error:
function `static const QString& QgsApplication::pkgDataPath()'
definition is marked dllimport.
c:/Martin/dev/qgis/src/gui/../core/qgsapplication.h:82: error:
function `static const QString& QgsApplication::themePath()'
definition is marked dllimport.

I haven't investigated further...

Btw. now I've managed to setup MSVC++ Express Edition, using these notes:
http://bfilter.sourceforge.net/doc/vc2005express.php
But this allowed me to use only "NMake Makefiles" cmake generator. To
use also "Visual Studio 8 2005" generator, I had to do these steps:
http://msdn2.microsoft.com/en-us/express/aa700755.aspx

Regards
Martin



More information about the Qgis-developer mailing list