[Qgis-developer] Re: Error building QGIS 1.5 in qextserialnumerator.cpp [Resolved]

ameet chaudhari ameet2k99 at yahoo.com
Thu Oct 21 08:25:04 EDT 2010



--- On Wed, 20/10/10, ameet chaudhari <ameet2k99 at yahoo.com> wrote:

> From: ameet chaudhari <ameet2k99 at yahoo.com>
> Subject: Error building QGIS 1.5 in qextserialnumerator.cpp
> To: qgis-developer at lists.osgeo.org
> Date: Wednesday, 20 October, 2010, 5:17 PM
> I m trying to build QGIS 1.5 from
> source on Win 7 as given in http://www.qgis.org/wiki/Building_QGIS_from_Source#CMake:.
> After generating Makefile using CMake 2.8, following error
> occurs while compiling [make]:
> 
> [2%] Building CXX object
> src/core/CMakeFiles/qgis_core.dir/gps/qextserialport/qextserialnumerator.cpp.obj
> C:\msys\...\qgis-1.5.0\src\core\gps\qextserialport\qextserialnumerator.cpp:
> In member function 'LRESULT
> QextSerialEnumerator::onDeviceChangeWin(WPARAM, LPARAM)':
> C:\msys\...\qextserialnumerator.cpp:145:42: error
> 'DBT_DEVTYP_DEVICEINTERFACE' was not declared in this scope
> C:\msys\...\qextserialnumerator.cpp:147:17: error
> 'PDEV_BROADCAST_DEVICEINTERFACE' was not declared in this
> scope
> C:\msys\...\qextserialnumerator.cpp:147:48: error xpected
> ';' before 'pDevInf'
> C:\msys\...\qextserialnumerator.cpp:149:36: error 'pDevInf'
> was not declared in this scope
> ---------------------------------------------------------------------
> What's the problem? Is some include file missing in this
> version of QGIS. I am keen to build QGIS 1.5, instead of
> some old/earlier version. pls help
> Note: All dependencies are installed and paths set
> according to instructions.
>
Update: I resolved the above error. The three out-of-scope symbols are defined in dbt.h included in qextserialnumerator.h. Following 3 lines should also be added in later header file.
#define _WIN32_WINNT 0x0500 
#define _WIN32_WINDOWS 0x0500
#define WINVER 0x0500 

Regards
Ameet 





More information about the Qgis-developer mailing list