'PVALUE' error with PROJ4 when building PHP MapScript??

Bob Bruce covariance at SHAW.CA
Fri Feb 18 05:35:32 PST 2005


On Thu, 17 Feb 2005 11:22:02 -0500, Frank Warmerdam <fwarmerdam at GMAIL.COM>
wrote:

>On Thu, 17 Feb 2005 08:38:54 -0600, Bob Bruce <covariance at shaw.ca> wrote:
>> I have been trying to build the nightly build of MapServer, specifically
>> PHP MapScript with PHP5 on a WIN2K system and have just got an error on a
>> link that has me stumped and am wondering if someone can help me -
please?
>>
>> The error is:
>> C:\Program Files\Microsoft Visual Studio\VC98\include\winreg.h(88) :
error
>> C2371: 'PVALUE' : re
>> definition; different basic types
>>         c:\projects\proj-4.4.9/src\projects.h(178) : see declaration
>> of 'PVALUE'
>
>Bob,
>
>I believe you need USE_PROJ_API_H defined (ie. -DUSE_PROJ_API_H
>in CFLAGS) so that MapServer won't use the old projects.h file.  It
>should be using proj_api.h which avoids conflicts with Win32.
>
>Perhaps this should be put into the makefile that builds the php stuff?
>
>On second thought, I have stripped out this test completely in the 4.5
>source tree.  We don't need to support ancient versions of PROJ.4 anymore.
>
>If changing your local makefile is a problem, just add the following at
>the very beginning of mapproject.h:
>
>#define USE_PROJ_API_H
>
>Best regards,
>--
>---------------------------------------+-----------------------------------
---
>I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
>light and sound - activate the windows | http://pobox.com/~warmerdam
>and watch the world go round - Rush    | Geospatial Programmer for Rent

Thanks for getting back to me, Frank, I tried these fixes first but was
unable to get them to work for me (I made sure that I cleaned up all of the
previously built .obj .lib and .pdb files first). I must have been doing
something wrong I guess.

    Bob Bruce, Winnipeg, Manitoba



More information about the MapServer-users mailing list