[pgrouting-dev] Issue with compiling 64-bit under mingw64

Paragon Corporation lr at pcorp.us
Sun Apr 7 07:49:15 PDT 2013


Oh because it should be (the 64 I don't have that extract w64 after the
pg92)

/c/ming64/projects/pgx64/pg92/include/POSTGR~1/server
 

I'll fix on my end.  It really should be standardized more, but task for
another day.

Where is INCLUDEDIR-SERVER set?

Thanks,
Regina



-----Original Message-----
From: pgrouting-dev-bounces at lists.osgeo.org
[mailto:pgrouting-dev-bounces at lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Sunday, April 07, 2013 8:40 AM
To: pgrouting-dev at lists.osgeo.org
Subject: Re: [pgrouting-dev] Issue with compiling 64-bit under mingw64

OK, so this problem is related to the fact that 64 bit is not including

INCLUDEDIR-SERVER = c:/ming32/projects/pgx32/pg92w32/include/POSTGR~1/server

because this is where 'ERROR' is defined in:

/c/ming32/projects/pgx32/pg92w32/include/postgresql/server/utils/elog.h

I'm not sure why 32 is different from 64. I'll look more at this
tonight/tomorrow. A simple fix might be wo make sure the CFLAGS includes the
equivalent of "-I ${INCLUDEDIR-SERVER}"

-Steve

On 4/6/2013 11:54 PM, Stephen Woodbridge wrote:
> On 4/6/2013 10:44 PM, Paragon Corporation wrote:
>> Steve,
>>
>> We were able to compile pgRouting under mingw64-w64 chain before git 
>> pulling, but last pull and recompile gave us this error
>>
>> c:/ming64/projects/pgrouting/src/tsp/src/tsplib.c: In function 
>> 'findEulerianPath
>> ':
>> c:/ming64/projects/pgrouting/src/tsp/src/tsplib.c:183:14: error: 'ERROR'
>> undeclared (first use in this function)
>> c:/ming64/projects/pgrouting/src/tsp/src/tsplib.c:183:14: note: each 
>> undeclared identifier is reported only once for each function it 
>> appears in
>> c:/ming64/projects/pgrouting/src/tsp/src/tsplib.c: In function
>> 'find_tsp_solution':
>> c:/ming64/projects/pgrouting/src/tsp/src/tsplib.c:446:18: error: 'FATAL'
>> undecla
>> red (first use in this function)
>> make[2]: *** [src/tsp/src/CMakeFiles/routing_tsp.dir/tsplib.c.obj]
>> Error 1
>> make[1]: *** [src/tsp/src/CMakeFiles/routing_tsp.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> So not sure what we are missing here.  Strangely enough (unless we 
>> did something different), the same code base compiles fine Under 
>> mingw64-w32 chain.
>>
> I'll sort this out on Monday when I'm and have access to my 64bit 
> setup. I'm thinking that maybe -I... might be different or maybe a 
> missing header file. Should be easy to resolve.
>
> Thanks,
>    -Steve
> _______________________________________________
> pgrouting-dev mailing list
> pgrouting-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev




More information about the pgrouting-dev mailing list