Thanks for that reference. It works!! Except for "make test" which fails.
This is how to do it (in a tcsh shell):
setenv CFLAGS "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
./configure
make
make test
Copy the libnetcdf.a and netcdf.h to your Cocoa project, and don't
forget to set it to compile against the 10.4 universal SDK when you
recompile your app.
FYI, this is the output for the failing "make test":
% make test
Not making `fortran/all' because no FORTRAN compiler
Making `test' in directory /Users/username/Downloads/netcdf-3.6.0-p1/src/libsrc
cc -c -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
-I. t_nc.c
ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o
putget.o string.o v1hpg.o v2i.o var.o
ar: libnetcdf.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: libnetcdf.a: Inappropriate file type or format
make[2]: *** [libnetcdf.a] Error 1
make[1]: *** [subdir_target] Error 1
make: *** [libsrc/test] Error 2
My NetCDF Cocoa app now runs on PPC and Intel! Nice! :-)
Good weekend everyone!
Johan