<div dir="ltr">I managed to compile WRFV 3.6 on CYGWIN without any errors. The real.exe and wrf.exe files are present under /main. I had to make the following changes to <div>LIB_EXTERNAL = \<div> -L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/local/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz -L$(WRF_SRC_ROOT_DIR)/external/io_grib2 -lio_grib2 -L/usr/local/lib -ljasper </div>
</div><div><br></div><div>to make it work. Although he did not reply to my message here on wrf-users I am indebted to </div><div><font color="#000000" face="Times New Roman" size="3">Dmitry N Mikushin. I read a lot of his old posts and this helped me to organize a strategy to compile WRF. </font></div>
<div><font color="#000000" face="Times New Roman" size="3">Oh well one down two to go - WPS and WRFDA to come. Hopefully they will be easier given the experience compiling WRF has given me. </font></div><div><font color="#000000" face="Times New Roman" size="3">Regards,</font></div>
<div><font color="#000000" face="Times New Roman" size="3">Ashwin. </font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 6:52 PM, ashwinD12 . <span dir="ltr"><<a href="mailto:winash12@gmail.com" target="_blank">winash12@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I went past these errors by making changes to external/io_netcdf/makefile by adding the hdf5 libraries to LIBS flag. <div>
When I compile again I get these errors now - </div><div><div>../external/io_grib2/libio_grib2.a(enc_jpeg2000.o):enc_jpeg2000.c:(.text+0x102):</div>
<div> undefined reference to `jas_stream_memopen'</div><div>../external/io_grib2/libio_grib2.a(enc_jpeg2000.o):enc_jpeg2000.c:(.text+0x124):</div><div> undefined reference to `jas_stream_memopen'</div><div>../external/io_grib2/libio_grib2.a(enc_jpeg2000.o):enc_jpeg2000.c:(.text+0x13a):</div>
<div> undefined reference to `jpc_encode'</div><div>../external/io_grib2/libio_grib2.a(enc_jpeg2000.o):enc_jpeg2000.c:(.text+0x14d):</div><div> undefined reference to `jas_stream_close'</div><div>../external/io_grib2/libio_grib2.a(enc_jpeg2000.o):enc_jpeg2000.c:(.text+0x155):</div>
<div> undefined reference to `jas_stream_close'</div><div>../external/io_grib2/libio_grib2.a(dec_jpeg2000.o):dec_jpeg2000.c:(.text+0x19): </div><div>undefined reference to `jas_stream_memopen'</div><div>../external/io_grib2/libio_grib2.a(dec_jpeg2000.o):dec_jpeg2000.c:(.text+0x2d): </div>
<div>undefined reference to `jpc_decode'</div><div>../external/io_grib2/libio_grib2.a(dec_jpeg2000.o):dec_jpeg2000.c:(.text+0x61): </div><div>undefined reference to `jas_matrix_create'</div><div>../external/io_grib2/libio_grib2.a(dec_jpeg2000.o):dec_jpeg2000.c:(.text+0x9a): </div>
<div>undefined reference to `jas_image_readcmpt'</div><div>../external/io_grib2/libio_grib2.a(dec_jpeg2000.o):dec_jpeg2000.c:(.text+0xe7): </div><div>undefined reference to `jas_matrix_destroy'</div></div><div><br>
</div><div><br></div><div>and several more of those errors. </div><div><br></div><div>LIB_BUNDLED does include grib2.a </div><div><br></div><div><div>LIB_BUNDLED = \</div><div> ../external/fftpack/fftpack5/libfftpack.a \</div>
<div> ../external/io_grib1/libio_grib1.a \</div><div> ../external/io_grib2/libio_grib2.a \</div><div> ../external/io_grib_share/libio_grib_share.a \</div><div> ../external/io_int/libwrfio_int.a \</div>
<div> $(ESMF_IO_LIB) \</div><div> CONFIGURE_COMMS_LIB \</div><div> ../frame/module_internal_header_util.o \</div><div> ../frame/pack_utils.o</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 13, 2014 at 4:17 PM, ashwinD12 . <span dir="ltr"><<a href="mailto:winash12@gmail.com" target="_blank">winash12@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div> I have tried to build WRF V3.6 on CYGWIN(gfortran and gcc) with the following instructions in configure_new.defaults - </div>
<div><br></div><div><p><span style="font-family:'Courier New'">
LIB_EXTERNAL = \<br>
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib
-lnetcdff -lnetcdf -L/usr/local/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lz <br><br></span></p><p><span style="font-family:'Courier New'">I get the following errors when I type ./compile em_real >& compile.log - </span></p>
<p><span style="font-family:'Courier New'"><br></span></p><p><span style="font-family:'Courier New'">removing external
declaration of iargc for gfortran<br>
gfortran -w -ffree-form -ffree-line-length-none
-fconvert=big-endian -frecord-marker=4
-c
-I/home/lenovo/gz/WRFV3/netcdf_links/include -I../ioapi_share
diffwrf.f<br>
diffwrf io_netcdf is being built now. <br>
/home/lenovo/gz/WRFV3/netcdf_links/lib/libnetcdf.a(libnetcdf4_la-nc4internal.o):
In function `nc4_rec_find_hdf_type':<br>
/home/lenovo/gz/netcdf-4.2.1.1/libsrc4/nc4internal.c:362: undefined reference
to `H5Tequal'<br>
/home/lenovo/gz/WRFV3/netcdf_links/lib/libnetcdf.a(libnetcdf4_la-nc4internal.o):
In function `find_var_shape_grp':<br>
/home/lenovo/gz/netcdf-4.2.1.1/libsrc4/nc4internal.c:109: undefined reference
to `H5Dget_space'<br>
</span></p><p><span style="font-family:'Courier New'"><br></span></p><p><span style="font-family:'Courier New'">There are about 480 errors. Under my /usr/local/lib folder </span></p><p>
<span style="font-family:'Courier New'">the required HDF5 libraries are present i.e libhdf5.a, etc.</span></p><p><span style="font-family:'Courier New'"><br></span></p><p><font face="Courier New">I am using netcdf-4.2.1 and it was built with netcdf4 enabled. Should I disable this and rebuild netcd4 and then build WRFV3.6 ?</font></p>
<p><font face="Courier New"><br></font></p><p><font face="Courier New">When I run the 'nm' program with the -a option all those missing references show up under those libraries so I really do not know where the problem is.</font></p>
<p><font face="Courier New"><br></font></p><p><font face="Courier New">Any pointers would be appreciated ?</font></p><p><font face="Courier New">Regards,</font></p><p><font face="Courier New">Ashwin. </font></p>
<p><span style="font-family:'Courier New'"><br></span></p><p><span style="font-family:'Courier New'"><br></span></p></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>