NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] Paths problem, compiling with mingw version netcdf-3.6.2

Hello all,

I'm compiling with mingw version 3.6.2 using the following configuration:

./configure --prefix=/cygdrive/c/Programas/netCDF_3.6.2 --enable-dll
--disable-cxx --disable-f77

The compilers for FC and F90 are gcc and ifort. I'm having a path problem
while compiling, the output of make is the following:

Making check in libsrc
mingw32-make[1]: Entering directory `c:/Programas/libs/netcdf-3.6.2-src
/libsrc'
C:/cygwin/bin/sh.exe ../libtool --tag=CC --mode=link gcc.exe  -g -O2   -o
libnet
cdf.la -rpath /cygdrive/c/Programas/netCDF_3.6.2/lib  -version-info 4:0:0
-no-un
defined -Wl,--output-def,.libs/libnetcdf.def  attr.lo ncx.lo putget.lo
dim.lo er
ror.lo libvers.lo nc.lo string.lo v1hpg.lo var.lo  posixio.lo libnetcdf2.la
libtool: link: rm -fr  .libs/libnetcdf.def .libs/libnetcdf.lax
.libs/libnetcdf.l
ib
libtool: link: (cd .libs/libnetcdf.lax/libnetcdf2.a && ar x
/cygdrive/c/Programa
s/libs/netcdf-3.6.2-src/libsrc/./.libs/libnetcdf2.a)
/cygdrive/c/Programas/libs/netcdf-3.6.2-src/libsrc/./.libs/libnetcdf2.a: No
such
 file or directory
c:\Programas\msys\mingw\bin\ar.exe: mingw32-make[1]: *** [libnetcdf.la]
Error 9
mingw32-make[1]: Leaving directory `c:/Programas/libs/netcdf-3.6.2-src
/libsrc'
mingw32-make: *** [check-recursive] Error 1

The error is simple because the compiler is looking for path
/cygdrive/c/Programas/libs/netcdf-3.6.2-src/libsrc/./.libs/libnetcdf2.a but
the path should be
/cygdrive/c/Programas/libs/netcdf-3.6.2-src/libsrc/.libs/libnetcdf2.a
without "./".
I'm not being able to find exactly where i should change this path problem,
any help would be much apreciated.

Best Regards,
Miguel Fernendes

CIMA - Centro de Investigação Marinha e Ambiental
Universidade do Algarve
Portugal
  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: