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

Paragon Corporation lr at pcorp.us
Sun Apr 7 09:24:05 PDT 2013


Okay I guess I need the TSP switch.  Without the TSP switch the 

Regress test-runner.pl fails

> psql:src/tsp/test/tsp-any-01.test:1: ERROR:  function tsp(unknown,
unknown, in
teger) does not exist
> LINE 1: select * from tsp(\'select source_id,x,y from tsp_00 where so...
>                       ^
> HINT:  No function matches the given name and argument types. You might
need t
o add explicit type casts.'

 

-----Original Message-----
From: pgrouting-dev-bounces at lists.osgeo.org
[mailto:pgrouting-dev-bounces at lists.osgeo.org] On Behalf Of Paragon
Corporation
Sent: Sunday, April 07, 2013 12:12 PM
To: 'pgRouting developers mailing list'
Subject: Re: [pgrouting-dev] Issue with compiling 64-bit under mingw64

Steve,
This might be a false alarm.

I was using my local copy instead of the updated one you had
makepgroutingw64.sh, but with your version it compiles.

I noticed my local had
cmake -G "MSYS Makefiles" -DWITH_DD=ON -DWITH_TSP=ON  ..

And in your modified you had taken out the 

-DWITH_TSP=ON

So after changing to:
cmake -G "MSYS Makefiles" -DWITH_DD=ON ..

it seemed to compile.  However the librouting_tsp.dll is no longer being
generated as it was for the 32-bit.

I'm guessing this is part of your cleanup since it looks like you removed it
from the 32-bit as well (though my 32-bit with the -DWITH_TSP=ON still seems
to work and generates the additional dll.)

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


_______________________________________________
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