[Proj] Building for and calling from g95-MinGW

Paul Hiemstra p.hiemstra at geo.uu.nl
Mon Feb 23 13:49:44 EST 2009


Hi Arjan,

I downloaded a fresh install of MinGW and Msys just now and the 
./configure && make && make install worked without a glitch. So probably 
upgrading to the newest version of MinGW shoudl solve your problems. 
Looking at the error in your example it is probably some .so the 
compiler is unable to find. Maybe this file is only included in newer 
version of MinGW than you are working with.

cheers,

Paul

ps some info on my system:

Paul at PAUL-DESKTOP /../../../d/proj-4.6.1
$ proj
Rel. 4.6.1, 21 August 2008

Paul at PAUL-DESKTOP /../../../d/proj-4.6.1
$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Paul at PAUL-DESKTOP /../../../d/proj-4.6.1
$ libtool --version
ltmain.sh (GNU libtool) 1.5.24 Debian 1.5.24-1ubuntu1 (1.1220.2.456 
2007/06/24 02:25:32)

Copyright (C) 2007  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Paul at PAUL-DESKTOP /../../../d/proj-4.6.1
$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-msys
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>


Arjan van Dijk schreef:
> Hi!
>
> I compile and run my program on linux and Windows boxes.
> Under Fortran-90 that is...
> Now I would like to use Proj. I have 2 questions about this:
>
> Question 1:
> How do I generate/download an archive file (e.g. libproj.a)
> that can be used from g95 under MinGW by just adding -lproj to the
> compile command of my program?
> The Windows binaries contain an executable and a dll, not a .a-file.
> Can I just use the linux .a-file under MinGW? I guess not.
> I downloaded the sources and called "./configure".
> This went okay. Then I tried "make", but the whole thing
> crashed... (see below this message for the rude curses it uttered)!
>
> Question 2:
> Are there any Fortran examples for using Proj?
>
> Regards,
>
>
> Arjan
>
>
>
> $ make
> Making all in src
> c:\mingw\bin\make.exe[1]: Entering directory `e:/Proj/proj-4.6.1/src'
> c:/mingw/bin/make.exe  all-am
> make.exe[2]: Entering directory `e:/Proj/proj-4.6.1/src'
> C:/msys/1.0/bin/sh.exe ../libtool --tag=CC   --mode=compile gcc 
> -DHAVE_CONFIG_H -I. -DPROJ_LIB=\"/usr/local/share/proj\"     -g -O2 
> -MT PJ_aeqd.lo -MD -MP -MF .deps/PJ_aeqd.Tpo -c -o PJ_aeqd.lo PJ_aeqd.c
> XPJ_aeqd.Tpo -c -o PJ_aeqd.lo PJ_aeqd.lo
> libtool: compile: libobj name `PJ_aeqd.Tpo -c -o PJ_aeqd.lo 
> PJ_aeqd.lo' may not contain shell special characters.
> rm: invalid option -- c
> Try `rm --help' for more information.
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. "-DPROJ_LIB=\\/usr/local/share/proj\" -g -O2 
> -MT PJ_aeqd.lo -MD -MP -MF .deps/PJ_aeqd.Tpo -c -o PJ_aeqd.lo 
> PJ_aeqd.c"  -DDLL_EXPORT -DPIC -o .libs/PJ_aeqd.Tpo -c -o PJ_aeqd.lo 
> PJ_aeqd.o
> gcc.exe: PJ_aeqd.o: No such file or directory
> gcc.exe: no input files
> make.exe[2]: *** [PJ_aeqd.lo] Error 1
> make.exe[2]: Leaving directory `e:/Proj/proj-4.6.1/src'
> c:\mingw\bin\make.exe[1]: *** [all] Error 2
> c:\mingw\bin\make.exe[1]: Leaving directory `e:/Proj/proj-4.6.1/src'
> c:\mingw\bin\make.exe: *** [all-recursive] Error 1
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:     +31302535773
Fax:    +31302531145
http://intamap.geo.uu.nl/~paul



More information about the Proj mailing list