----- Original Message ----- From: "Chris Marshall" <[email protected]>
> 2989905 PDL PROJ4 does not build on win32 > > From e-mail with Rob/Sisyphus, this problem has > been resolved and he has been able to build a > win32 PROJ4 for use with PDL. All that remains > here is for me to follow his directions to > build PROJ4 and then close the ticket. I recently sent you plplot build instructions, but I'm not sure that I've given you accurate instructions for Proj. (If it makes it easier for you, I could send you the plplot and proj libs in a tarball that simply needs to be unpacked at your end - then you'd at least be able to test, for yourself, how they work with PDL. Just let me know if you'd prefer static or shared libs ... or both.) Cygwin's gcc-4 compiler is currently incapable of cross-compiling for native Win32, but the following will build proj4 for native Win32 (*not* Cygwin). In the Cygwin-1.7.5 bash shell (having installed gcc-3) run: ./configure --disable-shared --enable-static --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc-3 -mno-cygwin' host_alias=i686-pc-mingw32 --prefix=/cygdrive/c/wherever Follow that up with: make && make check && make install If using Cygwin-1.5.25, change the CC configure arg to: CC='gcc -mno-cygwin' If you want a shared lib rather than a static one , you just need to "--disable-static --enable-shared" instead. You will probably need to edit src/PJ_mutex.c to get it to work. If you get an error (during the make stage) that pthread.h can't be found, just open up src/PJ_mutex.c and change: #ifdef MUTEX_pthread to #if defined(MUTEX_pthread) && !defined(WIN32) /* quick hack */ Then re-run 'make && make check && make install'. The directory that proj.exe gets installed into needs to be added to your path for all gis/proj tests to pass. Of course, if you want to build it for Cygwin, you just need to remove the CC, build, host, host_alias and prefix args from the above configure command. (In which case 1.7.5 will use gcc-4.) Additional packages that I think you'll need installed on Cygwin for any of the above to work include autoconf and m4. (There might be others - eg automake, perhaps. See how it goes.) Other than that, it can also be built for native Win32 in the msys shell, or by an M$ compiler using the makefile.vc that ships with the source. Unfortunately I couldn't dig up any makefiles written for dmake or mingw32-make. Cheers, Rob _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
