Hi.
I'm familiar with doing installs but the options.mk file is vague about what it wants for NETCDF_LIBS. For example,
in options.mk I have specified:
NETCDF_LIBS=/usr/local/netcdf/include
and the contents of /usr/local/netcdf/include is:
CMakeLists.txt cmake_uninstall.cmake.in install-sh nc-config.in
COMPILE.cmake.txt compile lib nc_test
COPYRIGHT comps.txt lib_flags.am nc_test4
FixBundle.cmake.in config.guess libcdmr ncdap_test
INSTALL config.h libdap2 ncdump
INSTALL.cmake config.h.in libdispatch ncgen
Makefile config.h.in.cmake liblib ncgen3
Makefile.am config.log librpc nctest
Makefile.in config.status libsrc netcdf-config-version.cmake.in
README config.sub libsrc4 netcdf-config.cmake.in
RELEASE_NOTES configure libtool netcdf.pc
VERSION configure.ac ltmain.sh netcdf.pc.in
acinclude.m4 depcomp m4 oc2
aclocal.m4 examples man4 share
bin h5_test missing stamp-h1
cmake include nc-config test_prog.c
Still, gmake can't find netcdf.h:
-------------------------------------------------------------------------------
Building libvdf.dylib for Darwin_x86_64 (DEBUG)
-------------------------------------------------------------------------------
make -f Makefile recurse INCLUDEDEPS=1
Compiling MetadataWRF.cpp
c++ -fno-common -o ../../targets/Darwin_x86_64/built/vdf/MetadataWRF.o -c -DDARWIN -Wall -Wno-format -Wno-sign-compare -fPIC -m64 -g -DDarwin -DQT_OPENGL_LIB -DQT_GUI_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../include -I. -I../../include/vaporinternal -D"BUILD_GUI" MetadataWRF.cpp
In file included from MetadataWRF.cpp:20:
../../include/vapor/WRF.h:14:10: fatal error: 'netcdf.h' file not found
#include <netcdf.h>
^
1 error generated.
make[3]: *** [../../targets/Darwin_x86_64/built/vdf/MetadataWRF.o] Error 1
make[2]: *** [dep] Error 2
make[1]: *** [vdf.subdir] Error 2
make: *** [lib.subdir] Error 2
What is the proper way to specfiy this and other libs to the gmake build?
Thanks.
You can safely ignore the NETCDF_LIBS variable (just leave the default setting). However, the LIB_SEARCH_DIRS and INC_SEARCH_DIRS will need to specify a space-delimited list of any directories containing third-party library and include file dependencies, respectively. So, for example, the INC_SEARCH_PATH macro will need to contain the path that contains the netcdf.h file, while the LIB_SEARCH_DIRS macro will need to include the path containing libnetcdf.dylib.
Having said all that, we strongly discourage building from source if it is not absolutely necessary. Is there a reason that you can't use the pre-compiled binaries?
Hi.
I'd be fine with that but the binary doesn't seem to have a working version of tiff2geotiff and that is something I need for my WRF runs.
Am I missing something?
J.
Can you provide a little more detail when you say tiff2geotiff isn't working? Are there error messages, what is the source of the image files, etc.?