From: Jennifer A. <jm...@co...> - 2010-10-05 17:56:14
|
On Oct 5, 2010, at 1:10 PM, Arlindo da Silva wrote: > > > On Tue, Oct 5, 2010 at 11:37 AM, Jennifer Adams <jm...@co...> > wrote: > Thanks for the comments. This is NOT my area of expertise, and I > welcome your guidance. Clearly, the dynamic linking against system > installations is the easiest, but for the binary distributions, I > will have to figure out how to link statically. That long list of > dependent libraries is daunting! In my simple test program (rmf.c), > I am compiling/linking with this command: > > gcc -g rmf.c -o rmf -I/opt/local/include/cairo -L/opt/local/lib - > lcairo -L/usr/X11/lib -lX11 > > I have some more testing to do with fonts, and so I may have to add > some more libs to that list, but if my code doesn't require all > those dependent libs, I don't have to statically link them, do I? > > > At a minimum you *must* have: fontconfig, freetype, pixman; other > libraries such as jpeg, libpng, etc., we already have. Well, this is a basic question, but why don't I have to add -lpng12 to my test program if it is writing out PNG files? Is that somehow bundled into the macports version of libcairo.a? > > As for backends, I am planning to use cairo to draw to an X window, > PNG, Postscript, PDF, and SVG. I do not see why it's necessary to > add the platform-specific window backends; X has been working fine > for GrADS all these years. > > I'd love to be able to use a native Windows backend and get rid of > the X server... You can do whatever you want with the Windows builds. I don't want to hold you back you from making Windows builds easier to generate and use, but I am an MS nothing, and I can't support Windows code, so it'll have to be an opengrads feature. We haven't implemented anything in GrADS yet, but I don't see how we could close the door on the possibility of alternatives to X. > The Quartz backend would also give it a more native look on Mac OS > X, but that is less critical. Yeah, I really don't care about that as long as X11 is supported in OS X. --Jennifer |