Ticket #4 (closed feature request: fixed)

Opened 3 years ago

Last modified 2 years ago

Building pgrouting 1.0.0.a on win32 error with tsp_solver.cpp

Reported by: davidtecher Owned by: anton
Priority: major Milestone:
Component: pgRouting package Version: 1.0.0a
Keywords: Cc:

Description

Building gaul with Dev-c++ on win32 according to  http://gaul.sourceforge.net/windows-DevCPP.html

I got this error

dllwrap  -o librouting.dll --dllname librouting.dll  --def routing.def dijkstra.o boost_wrapper.o astar.o astar_boost_wrapper.o drivedist.o boost_drivedist.o shooting_star.o shooting_star_boost_wrapper.o tsp.o tsp_solver.o   -Lc:/POSTGR~1/8222BD~1.4/lib -Lc:/POSTGR~1/8222BD~1.4/lib -lpostgres  -lstdc++ -L/usr/local/lib/libnn_util.a -L/usr/local/lib/gaul-util.a -L/usr/local/lib/gaul-devel.a -L/c/MinGW/lib -lpthread 
tsp_solver.o(.text+0x168): In function `Z15tsp_mutate_swapP12population_tP8entity_tS2_':
C:/msys/1.0/home/david/routing/tsp_solver.cpp:128: undefined reference to `random_int'
tsp_solver.o(.text+0x188):C:/msys/1.0/home/david/routing/tsp_solver.cpp:134: undefined reference to `random_int'
tsp_solver.o(.text+0x21a): In function `Z16tsp_mutate_shiftP12population_tP8entity_tS2_':
C:/msys/1.0/home/david/routing/tsp_solver.cpp:164: undefined reference to `random_int'
tsp_solver.o(.text+0x228):C:/msys/1.0/home/david/routing/tsp_solver.cpp:168: undefined reference to `random_int'
tsp_solver.o(.text+0x2b0): In function `Z10tsp_mutateP12population_tP8entity_tS2_':
C:/msys/1.0/home/david/routing/tsp_solver.cpp:199: undefined reference to `random_boolean_prob'
tsp_solver.o(.text+0x361): In function `Z13tsp_crossoverP12population_tP8entity_tS2_S2_S2_':
C:/msys/1.0/home/david/routing/tsp_solver.cpp:215: undefined reference to `random_boolean'
tsp_solver.o(.text+0x4a8): In function `find_tsp_solution':
C:/msys/1.0/home/david/routing/tsp_solver.cpp:285: undefined reference to `random_init'
tsp_solver.o(.text+0x4cd):C:/msys/1.0/home/david/routing/tsp_solver.cpp:289: undefined reference to `ga_extinction'
tsp_solver.o(.text+0x4da):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_select_two_randomrank'
tsp_solver.o(.text+0x4e2):C:/msys/1.0/home/david/routing/tsp_solver.cpp:290: undefined reference to `random_seed'
tsp_solver.o(.text+0x4f5):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_select_one_randomrank'
tsp_solver.o(.text+0x554):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_genesis_integer'
tsp_solver.o(.text+0x58a):C:/msys/1.0/home/david/routing/tsp_solver.cpp:310: undefined reference to `ga_population_set_parameters'
tsp_solver.o(.text+0x596):C:/msys/1.0/home/david/routing/tsp_solver.cpp:319: undefined reference to `ga_evolution'
tsp_solver.o(.text+0x5aa):C:/msys/1.0/home/david/routing/tsp_solver.cpp:325: undefined reference to `ga_get_entity_from_rank'
tsp_solver.o(.text+0x5cc):C:/msys/1.0/home/david/routing/tsp_solver.cpp:327: undefined reference to `ga_get_entity_from_rank'
tsp_solver.o(.text+0x5fa):C:/msys/1.0/home/david/routing/tsp_solver.cpp:332: undefined reference to `ga_get_entity_from_rank'
collect2: ld returned 1 exit status
c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1
make: *** [librouting.a] Error 1

Change History

  Changed 3 years ago by anton

  • owner set to anton
  • status changed from new to assigned

follow-up: ↓ 3   Changed 3 years ago by anton

David,

Did you try to use windows binaries for gaul from here -  http://prdownloads.sourceforge.net/gaul/gaul-devel-windows.zip?download ?

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 3 years ago by davidtecher

Replying to anton:

David, Did you try to use windows binaries for gaul from here -  http://prdownloads.sourceforge.net/gaul/gaul-devel-windows.zip?download ?

Yes I did! I've tryed Dev-C++ to compil it

in reply to: ↑ 3 ; follow-ups: ↓ 5 ↓ 6   Changed 3 years ago by davidtecher

Replying to davidtecher:

Replying to anton:

David, Did you try to use windows binaries for gaul from here -  http://prdownloads.sourceforge.net/gaul/gaul-devel-windows.zip?download ?

Yes I did! I've tryed Dev-C++ to compil it

Do you have the isntructions I should use in order to compiling it ? :)

thanks

in reply to: ↑ 4   Changed 3 years ago by anton

Replying to davidtecher:

Replying to davidtecher:

Replying to anton:

David, Did you try to use windows binaries for gaul from here -  http://prdownloads.sourceforge.net/gaul/gaul-devel-windows.zip?download ?

Yes I did! I've tryed Dev-C++ to compil it

Do you have the isntructions I should use in order to compiling it ? :) thanks

I will ask our engineer who made win binaries before. Please, wait foe a while.

in reply to: ↑ 4 ; follow-up: ↓ 7   Changed 3 years ago by anton

Replying to davidtecher:

Replying to davidtecher:

Replying to anton:

David, Did you try to use windows binaries for gaul from here -  http://prdownloads.sourceforge.net/gaul/gaul-devel-windows.zip?download ?

Yes I did! I've tryed Dev-C++ to compil it

Do you have the isntructions I should use in order to compiling it ? :) thanks

Please look at CreateWindowsBinary? page - there are instruction from the guy who made win binaries. Probably it will help.

in reply to: ↑ 6 ; follow-up: ↓ 8   Changed 3 years ago by davidtecher

Ok I will try it!

Many thanks for this link!

Kind regards.

--david;

in reply to: ↑ 7 ; follow-up: ↓ 9   Changed 3 years ago by davidtecher

OK It works :)

Thanks! Since I'm on XP using Vmware, I will do a few tests using PostgreSQL 8.2.4, PostgreSQL 1.2.1 on a actual laptop with XP...

I will send you my results after!

;)

in reply to: ↑ 8   Changed 3 years ago by anton

  • status changed from assigned to closed
  • resolution set to fixed

Replying to davidtecher:

OK It works :) Thanks! Since I'm on XP using Vmware, I will do a few tests using PostgreSQL 8.2.4, PostgreSQL 1.2.1 on a actual laptop with XP... I will send you my results after! ;)

That's cool! If everything will be ok, can you compile pgRouting with dijkstra and send us binaries?

  Changed 2 years ago by sunrise

This works ok for me.. but It probably needs feedback. postlbs Air Jordan
Note: See TracTickets for help on using tickets.